aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_hello_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_hello_lib.h')
-rw-r--r--src/include/gnunet_hello_lib.h39
1 files changed, 22 insertions, 17 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h
index f1b67121e..a3e4ba0f0 100644
--- a/src/include/gnunet_hello_lib.h
+++ b/src/include/gnunet_hello_lib.h
@@ -61,6 +61,13 @@ struct GNUNET_HELLO_Message;
61 * the target buffer was not big enough. 61 * the target buffer was not big enough.
62 */ 62 */
63size_t 63size_t
64
65
66
67
68
69
70
64GNUNET_HELLO_add_address (const char *tname, 71GNUNET_HELLO_add_address (const char *tname,
65 struct GNUNET_TIME_Absolute expiration, 72 struct GNUNET_TIME_Absolute expiration,
66 const void *addr, 73 const void *addr,
@@ -79,8 +86,8 @@ GNUNET_HELLO_add_address (const char *tname,
79 * end of the iteration. 86 * end of the iteration.
80 */ 87 */
81typedef size_t 88typedef size_t
82 (*GNUNET_HELLO_GenerateAddressListCallback) (void *cls, 89 (*GNUNET_HELLO_GenerateAddressListCallback) (void *cls,
83 size_t max, void *buf); 90 size_t max, void *buf);
84 91
85 92
86/** 93/**
@@ -136,12 +143,11 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_merge (const struct
136 * zero if the some addresses with expirations >= now 143 * zero if the some addresses with expirations >= now
137 * do not match at all 144 * do not match at all
138 */ 145 */
139struct GNUNET_TIME_Absolute 146struct GNUNET_TIME_Absolute
140GNUNET_HELLO_equals (const struct 147GNUNET_HELLO_equals (const struct
141 GNUNET_HELLO_Message *h1, 148 GNUNET_HELLO_Message *h1,
142 const struct 149 const struct
143 GNUNET_HELLO_Message *h2, 150 GNUNET_HELLO_Message *h2, struct GNUNET_TIME_Absolute now);
144 struct GNUNET_TIME_Absolute now);
145 151
146 152
147/** 153/**
@@ -157,11 +163,10 @@ GNUNET_HELLO_equals (const struct
157 * GNUNET_SYSERR to stop iterating (but keep current address) 163 * GNUNET_SYSERR to stop iterating (but keep current address)
158 */ 164 */
159typedef int 165typedef int
160 (*GNUNET_HELLO_AddressIterator) (void *cls, 166 (*GNUNET_HELLO_AddressIterator) (void *cls,
161 const char *tname, 167 const char *tname,
162 struct GNUNET_TIME_Absolute expiration, 168 struct GNUNET_TIME_Absolute expiration,
163 const void *addr, 169 const void *addr, uint16_t addrlen);
164 uint16_t addrlen);
165 170
166 171
167/** 172/**
@@ -182,8 +187,7 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_iterate_addresses (const struct
182 int 187 int
183 return_modified, 188 return_modified,
184 GNUNET_HELLO_AddressIterator 189 GNUNET_HELLO_AddressIterator
185 it, 190 it, void *it_cls);
186 void *it_cls);
187 191
188 192
189/** 193/**
@@ -230,7 +234,7 @@ GNUNET_HELLO_get_key (const struct GNUNET_HELLO_Message *hello,
230 */ 234 */
231int 235int
232GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, 236GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello,
233 struct GNUNET_PeerIdentity *peer); 237 struct GNUNET_PeerIdentity *peer);
234 238
235 239
236/** 240/**
@@ -241,8 +245,9 @@ GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello,
241 * 245 *
242 * @return header or NULL if the HELLO was malformed 246 * @return header or NULL if the HELLO was malformed
243 */ 247 */
244struct GNUNET_MessageHeader * 248struct GNUNET_MessageHeader *GNUNET_HELLO_get_header (struct
245GNUNET_HELLO_get_header (struct GNUNET_HELLO_Message *hello); 249 GNUNET_HELLO_Message
250 *hello);
246 251
247/* ifndef GNUNET_HELLO_LIB_H */ 252/* ifndef GNUNET_HELLO_LIB_H */
248#endif 253#endif