aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_hello_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_hello_service.h')
-rw-r--r--src/include/gnunet_transport_hello_service.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/include/gnunet_transport_hello_service.h b/src/include/gnunet_transport_hello_service.h
index 58a1e9979..fe863c058 100644
--- a/src/include/gnunet_transport_hello_service.h
+++ b/src/include/gnunet_transport_hello_service.h
@@ -24,6 +24,8 @@
24 * @file 24 * @file
25 * obtain information about our current address 25 * obtain information about our current address
26 * 26 *
27 * @deprecated, in TNG applications should query PEERSTORE directly!
28 *
27 * @defgroup transport Transport service 29 * @defgroup transport Transport service
28 * address information 30 * address information
29 * 31 *
@@ -35,9 +37,8 @@
35#define GNUNET_TRANSPORT_HELLO_SERVICE_H 37#define GNUNET_TRANSPORT_HELLO_SERVICE_H
36 38
37#ifdef __cplusplus 39#ifdef __cplusplus
38extern "C" 40extern "C" {
39{ 41#if 0 /* keep Emacsens' auto-indent happy */
40#if 0 /* keep Emacsens' auto-indent happy */
41} 42}
42#endif 43#endif
43#endif 44#endif
@@ -118,9 +119,9 @@ enum GNUNET_TRANSPORT_AddressClass
118 * @param cls closure 119 * @param cls closure
119 * @param hello our updated HELLO 120 * @param hello our updated HELLO
120 */ 121 */
121typedef void 122typedef void (*GNUNET_TRANSPORT_HelloUpdateCallback) (
122(*GNUNET_TRANSPORT_HelloUpdateCallback) (void *cls, 123 void *cls,
123 const struct GNUNET_MessageHeader *hello); 124 const struct GNUNET_MessageHeader *hello);
124 125
125 126
126/** 127/**
@@ -164,12 +165,12 @@ GNUNET_TRANSPORT_hello_get_cancel (struct GNUNET_TRANSPORT_HelloGetHandle *ghh);
164 * @param nt network type of the address 165 * @param nt network type of the address
165 * @param expiration when does this address expire? 166 * @param expiration when does this address expire?
166 */ 167 */
167typedef void 168typedef void (*GNUNET_TRANSPORT_AddressCallback) (
168(*GNUNET_TRANSPORT_AddressCallback) (void *cls, 169 void *cls,
169 const struct GNUNET_PeerIdentity *peer, 170 const struct GNUNET_PeerIdentity *peer,
170 const char *address, 171 const char *address,
171 enum GNUNET_NetworkType nt, 172 enum GNUNET_NetworkType nt,
172 struct GNUNET_TIME_Absolute expiration); 173 struct GNUNET_TIME_Absolute expiration);
173 174
174 175
175/** 176/**
@@ -187,7 +188,7 @@ GNUNET_TRANSPORT_hello_parse (const struct GNUNET_MessageHeader *hello,
187 void *cb_cls); 188 void *cb_cls);
188 189
189 190
190#if 0 /* keep Emacsens' auto-indent happy */ 191#if 0 /* keep Emacsens' auto-indent happy */
191{ 192{
192#endif 193#endif
193#ifdef __cplusplus 194#ifdef __cplusplus
@@ -197,6 +198,6 @@ GNUNET_TRANSPORT_hello_parse (const struct GNUNET_MessageHeader *hello,
197/* ifndef GNUNET_TRANSPORT_HELLO_SERVICE_H */ 198/* ifndef GNUNET_TRANSPORT_HELLO_SERVICE_H */
198#endif 199#endif
199 200
200/** @} */ /* end of group */ 201/** @} */ /* end of group */
201 202
202/* end of gnunet_transport_hello_service.h */ 203/* end of gnunet_transport_hello_service.h */