diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-05 14:02:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-05 14:02:24 +0200 |
commit | e94c5914935ca0842ca762d343cb167c68b8a79a (patch) | |
tree | 4719d48bbcd9be334854d0ed88ba76f5b259b296 /src/include/gnunet_transport_hello_service.h | |
parent | b84057d7593651e16a161de9f2ec51f93c98589d (diff) | |
download | gnunet-e94c5914935ca0842ca762d343cb167c68b8a79a.tar.gz gnunet-e94c5914935ca0842ca762d343cb167c68b8a79a.zip |
use new PriorityPreferences consistently, note on deprecation
Diffstat (limited to 'src/include/gnunet_transport_hello_service.h')
-rw-r--r-- | src/include/gnunet_transport_hello_service.h | 29 |
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 |
38 | extern "C" | 40 | extern "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 | */ |
121 | typedef void | 122 | typedef 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 | */ |
167 | typedef void | 168 | typedef 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 */ |