summaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_typemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gnunet-service-core_typemap.h')
-rw-r--r--src/core/gnunet-service-core_typemap.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/core/gnunet-service-core_typemap.h b/src/core/gnunet-service-core_typemap.h
index 0fdb918f3..7acdec53b 100644
--- a/src/core/gnunet-service-core_typemap.h
+++ b/src/core/gnunet-service-core_typemap.h
@@ -42,8 +42,8 @@ struct GSC_TypeMap;
42 * @param tlen number of entries in @a types 42 * @param tlen number of entries in @a types
43 */ 43 */
44void 44void
45GSC_TYPEMAP_add(const uint16_t *types, 45GSC_TYPEMAP_add (const uint16_t *types,
46 unsigned int tlen); 46 unsigned int tlen);
47 47
48 48
49/** 49/**
@@ -53,8 +53,8 @@ GSC_TYPEMAP_add(const uint16_t *types,
53 * @param tlen number of entries in @a types 53 * @param tlen number of entries in @a types
54 */ 54 */
55void 55void
56GSC_TYPEMAP_remove(const uint16_t *types, 56GSC_TYPEMAP_remove (const uint16_t *types,
57 unsigned int tlen); 57 unsigned int tlen);
58 58
59 59
60/** 60/**
@@ -63,7 +63,7 @@ GSC_TYPEMAP_remove(const uint16_t *types,
63 * @return this peers current type map message. 63 * @return this peers current type map message.
64 */ 64 */
65struct GNUNET_MessageHeader * 65struct GNUNET_MessageHeader *
66GSC_TYPEMAP_compute_type_map_message(void); 66GSC_TYPEMAP_compute_type_map_message (void);
67 67
68 68
69/** 69/**
@@ -73,7 +73,7 @@ GSC_TYPEMAP_compute_type_map_message(void);
73 * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not 73 * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not
74 */ 74 */
75int 75int
76GSC_TYPEMAP_check_hash(const struct GNUNET_HashCode *hc); 76GSC_TYPEMAP_check_hash (const struct GNUNET_HashCode *hc);
77 77
78 78
79/** 79/**
@@ -83,8 +83,8 @@ GSC_TYPEMAP_check_hash(const struct GNUNET_HashCode *hc);
83 * @param hc where to store the hash code 83 * @param hc where to store the hash code
84 */ 84 */
85void 85void
86GSC_TYPEMAP_hash(const struct GSC_TypeMap *tm, 86GSC_TYPEMAP_hash (const struct GSC_TypeMap *tm,
87 struct GNUNET_HashCode *hc); 87 struct GNUNET_HashCode *hc);
88 88
89 89
90/** 90/**
@@ -96,7 +96,7 @@ GSC_TYPEMAP_hash(const struct GSC_TypeMap *tm,
96 * @return NULL on error 96 * @return NULL on error
97 */ 97 */
98struct GSC_TypeMap * 98struct GSC_TypeMap *
99GSC_TYPEMAP_get_from_message(const struct GNUNET_MessageHeader *msg); 99GSC_TYPEMAP_get_from_message (const struct GNUNET_MessageHeader *msg);
100 100
101 101
102/** 102/**
@@ -109,9 +109,9 @@ GSC_TYPEMAP_get_from_message(const struct GNUNET_MessageHeader *msg);
109 * @return #GNUNET_YES if a type is in the map, #GNUNET_NO if not 109 * @return #GNUNET_YES if a type is in the map, #GNUNET_NO if not
110 */ 110 */
111int 111int
112GSC_TYPEMAP_test_match(const struct GSC_TypeMap *tmap, 112GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap,
113 const uint16_t *types, 113 const uint16_t *types,
114 unsigned int tcnt); 114 unsigned int tcnt);
115 115
116 116
117/** 117/**
@@ -123,9 +123,9 @@ GSC_TYPEMAP_test_match(const struct GSC_TypeMap *tmap,
123 * @return updated type map (fresh copy) 123 * @return updated type map (fresh copy)
124 */ 124 */
125struct GSC_TypeMap * 125struct GSC_TypeMap *
126GSC_TYPEMAP_extend(const struct GSC_TypeMap *tmap, 126GSC_TYPEMAP_extend (const struct GSC_TypeMap *tmap,
127 const uint16_t *types, 127 const uint16_t *types,
128 unsigned int tcnt); 128 unsigned int tcnt);
129 129
130 130
131/** 131/**
@@ -134,7 +134,7 @@ GSC_TYPEMAP_extend(const struct GSC_TypeMap *tmap,
134 * @return an empty type map 134 * @return an empty type map
135 */ 135 */
136struct GSC_TypeMap * 136struct GSC_TypeMap *
137GSC_TYPEMAP_create(void); 137GSC_TYPEMAP_create (void);
138 138
139 139
140/** 140/**
@@ -143,21 +143,21 @@ GSC_TYPEMAP_create(void);
143 * @param tmap a type map 143 * @param tmap a type map
144 */ 144 */
145void 145void
146GSC_TYPEMAP_destroy(struct GSC_TypeMap *tmap); 146GSC_TYPEMAP_destroy (struct GSC_TypeMap *tmap);
147 147
148 148
149/** 149/**
150 * Initialize typemap subsystem. 150 * Initialize typemap subsystem.
151 */ 151 */
152void 152void
153GSC_TYPEMAP_init(void); 153GSC_TYPEMAP_init (void);
154 154
155 155
156/** 156/**
157 * Shutdown typemap subsystem. 157 * Shutdown typemap subsystem.
158 */ 158 */
159void 159void
160GSC_TYPEMAP_done(void); 160GSC_TYPEMAP_done (void);
161 161
162#endif 162#endif
163/* end of gnunet-service-core_typemap.h */ 163/* end of gnunet-service-core_typemap.h */