aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_container_lib.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-09-23 08:57:36 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-09-23 08:57:36 +0200
commit53a0dabcd40800f4ddf6593be4ef7ecf8f5b2225 (patch)
tree2441d033217784dd7b6fd6e3cc0d62f4b75a9fb7 /src/include/gnunet_container_lib.h
parent6304a090df056836158e485846eb632be508e32f (diff)
downloadgnunet-53a0dabcd40800f4ddf6593be4ef7ecf8f5b2225.tar.gz
gnunet-53a0dabcd40800f4ddf6593be4ef7ecf8f5b2225.zip
BUILD: Silence int/enum mismatch compiler warnings and curl deprecated defines
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r--src/include/gnunet_container_lib.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index ce1b8f296..df38317ca 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -52,6 +52,7 @@
52 * @} 52 * @}
53 */ 53 */
54 54
55#include "gnunet_common.h"
55#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) 56#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__)
56#error "Only <gnunet_util_lib.h> can be included directly." 57#error "Only <gnunet_util_lib.h> can be included directly."
57#endif 58#endif
@@ -177,7 +178,7 @@ GNUNET_CONTAINER_bloomfilter_init (const char *data,
177 * @param size the size of the given @a data array 178 * @param size the size of the given @a data array
178 * @return #GNUNET_SYSERR if the data array of the wrong size 179 * @return #GNUNET_SYSERR if the data array of the wrong size
179 */ 180 */
180int 181enum GNUNET_GenericReturnValue
181GNUNET_CONTAINER_bloomfilter_get_raw_data ( 182GNUNET_CONTAINER_bloomfilter_get_raw_data (
182 const struct GNUNET_CONTAINER_BloomFilter *bf, 183 const struct GNUNET_CONTAINER_BloomFilter *bf,
183 char *data, 184 char *data,
@@ -291,7 +292,7 @@ GNUNET_CONTAINER_bloomfilter_clear (struct GNUNET_CONTAINER_BloomFilter *bf);
291 * @param size size of @a data 292 * @param size size of @a data
292 * @return #GNUNET_OK on success 293 * @return #GNUNET_OK on success
293 */ 294 */
294int 295enum GNUNET_GenericReturnValue
295GNUNET_CONTAINER_bloomfilter_or (struct GNUNET_CONTAINER_BloomFilter *bf, 296GNUNET_CONTAINER_bloomfilter_or (struct GNUNET_CONTAINER_BloomFilter *bf,
296 const char *data, 297 const char *data,
297 size_t size); 298 size_t size);
@@ -307,7 +308,7 @@ GNUNET_CONTAINER_bloomfilter_or (struct GNUNET_CONTAINER_BloomFilter *bf,
307 * @param to_or the bloomfilter to or-in 308 * @param to_or the bloomfilter to or-in
308 * @return #GNUNET_OK on success 309 * @return #GNUNET_OK on success
309 */ 310 */
310int 311enum GNUNET_GenericReturnValue
311GNUNET_CONTAINER_bloomfilter_or2 ( 312GNUNET_CONTAINER_bloomfilter_or2 (
312 struct GNUNET_CONTAINER_BloomFilter *bf, 313 struct GNUNET_CONTAINER_BloomFilter *bf,
313 const struct GNUNET_CONTAINER_BloomFilter *to_or); 314 const struct GNUNET_CONTAINER_BloomFilter *to_or);
@@ -577,7 +578,7 @@ GNUNET_CONTAINER_multihashmap_size (
577 * @return the number of key value pairs processed, 578 * @return the number of key value pairs processed,
578 * #GNUNET_SYSERR if it aborted iteration 579 * #GNUNET_SYSERR if it aborted iteration
579 */ 580 */
580int 581enum GNUNET_GenericReturnValue
581GNUNET_CONTAINER_multihashmap_iterate ( 582GNUNET_CONTAINER_multihashmap_iterate (
582 struct GNUNET_CONTAINER_MultiHashMap *map, 583 struct GNUNET_CONTAINER_MultiHashMap *map,
583 GNUNET_CONTAINER_MultiHashMapIteratorCallback it, 584 GNUNET_CONTAINER_MultiHashMapIteratorCallback it,
@@ -646,7 +647,7 @@ GNUNET_CONTAINER_multihashmap_iterator_destroy (
646 * @return the number of key value pairs processed, 647 * @return the number of key value pairs processed,
647 * #GNUNET_SYSERR if it aborted iteration 648 * #GNUNET_SYSERR if it aborted iteration
648 */ 649 */
649int 650enum GNUNET_GenericReturnValue
650GNUNET_CONTAINER_multihashmap_get_multiple ( 651GNUNET_CONTAINER_multihashmap_get_multiple (
651 struct GNUNET_CONTAINER_MultiHashMap *map, 652 struct GNUNET_CONTAINER_MultiHashMap *map,
652 const struct GNUNET_HashCode *key, 653 const struct GNUNET_HashCode *key,
@@ -1423,7 +1424,7 @@ GNUNET_CONTAINER_multiuuidmap_size (
1423 * @return the number of key value pairs processed, 1424 * @return the number of key value pairs processed,
1424 * #GNUNET_SYSERR if it aborted iteration 1425 * #GNUNET_SYSERR if it aborted iteration
1425 */ 1426 */
1426int 1427enum GNUNET_GenericReturnValue
1427GNUNET_CONTAINER_multiuuidmap_iterate ( 1428GNUNET_CONTAINER_multiuuidmap_iterate (
1428 struct GNUNET_CONTAINER_MultiUuidmap *map, 1429 struct GNUNET_CONTAINER_MultiUuidmap *map,
1429 GNUNET_CONTAINER_MultiUuidmapIteratorCallback it, 1430 GNUNET_CONTAINER_MultiUuidmapIteratorCallback it,