diff options
Diffstat (limited to 'src/core/gnunet-service-core_typemap.h')
-rw-r--r-- | src/core/gnunet-service-core_typemap.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/core/gnunet-service-core_typemap.h b/src/core/gnunet-service-core_typemap.h index d589c0b1c..ab106a161 100644 --- a/src/core/gnunet-service-core_typemap.h +++ b/src/core/gnunet-service-core_typemap.h | |||
@@ -39,16 +39,14 @@ struct GSC_TypeMap; | |||
39 | * Add a set of types to our type map. | 39 | * Add a set of types to our type map. |
40 | */ | 40 | */ |
41 | void | 41 | void |
42 | GSC_TYPEMAP_add (const uint16_t *types, | 42 | GSC_TYPEMAP_add (const uint16_t * types, unsigned int tlen); |
43 | unsigned int tlen); | ||
44 | 43 | ||
45 | 44 | ||
46 | /** | 45 | /** |
47 | * Remove a set of types from our type map. | 46 | * Remove a set of types from our type map. |
48 | */ | 47 | */ |
49 | void | 48 | void |
50 | GSC_TYPEMAP_remove (const uint16_t *types, | 49 | GSC_TYPEMAP_remove (const uint16_t * types, unsigned int tlen); |
51 | unsigned int tlen); | ||
52 | 50 | ||
53 | 51 | ||
54 | /** | 52 | /** |
@@ -78,11 +76,10 @@ GSC_TYPEMAP_get_from_message (const struct GNUNET_MessageHeader *msg); | |||
78 | * @param types array of types | 76 | * @param types array of types |
79 | * @param tcnt number of entries in types | 77 | * @param tcnt number of entries in types |
80 | * @return GNUNET_YES if a type is in the map, GNUNET_NO if not | 78 | * @return GNUNET_YES if a type is in the map, GNUNET_NO if not |
81 | */ | 79 | */ |
82 | int | 80 | int |
83 | GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap, | 81 | GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap, const uint16_t * types, |
84 | const uint16_t *types, | 82 | unsigned int tcnt); |
85 | unsigned int tcnt); | ||
86 | 83 | ||
87 | 84 | ||
88 | /** | 85 | /** |
@@ -92,11 +89,10 @@ GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap, | |||
92 | * @param types array of types to add | 89 | * @param types array of types to add |
93 | * @param tcnt number of entries in types | 90 | * @param tcnt number of entries in types |
94 | * @return updated type map (fresh copy) | 91 | * @return updated type map (fresh copy) |
95 | */ | 92 | */ |
96 | struct GSC_TypeMap * | 93 | struct GSC_TypeMap * |
97 | GSC_TYPEMAP_extend (const struct GSC_TypeMap *tmap, | 94 | GSC_TYPEMAP_extend (const struct GSC_TypeMap *tmap, const uint16_t * types, |
98 | const uint16_t *types, | 95 | unsigned int tcnt); |
99 | unsigned int tcnt); | ||
100 | 96 | ||
101 | /** | 97 | /** |
102 | * Create an empty type map. | 98 | * Create an empty type map. |