diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-30 17:46:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-30 17:46:52 +0000 |
commit | 38e7ff9a88f530803cd2514c5823f02642827d1f (patch) | |
tree | 40645107b829b59789228f7d025839e35622571e /src/include/gnunet_transport_service.h | |
parent | 40826ec2467ee0e6e4b89c0d073aebf5af99099c (diff) | |
download | gnunet-38e7ff9a88f530803cd2514c5823f02642827d1f.tar.gz gnunet-38e7ff9a88f530803cd2514c5823f02642827d1f.zip |
remove now obsolete get_hello-API
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r-- | src/include/gnunet_transport_service.h | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 91e9aad4f..94d190f9f 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -54,49 +54,6 @@ extern "C" | |||
54 | 54 | ||
55 | /* *************************** HELLO *************************** */ | 55 | /* *************************** HELLO *************************** */ |
56 | 56 | ||
57 | |||
58 | /** | ||
59 | * Function called whenever there is an update to the | ||
60 | * HELLO of this peer. | ||
61 | * | ||
62 | * @param cls closure | ||
63 | * @param hello our updated HELLO | ||
64 | */ | ||
65 | typedef void | ||
66 | (*GNUNET_TRANSPORT_HelloUpdateCallback) (void *cls, | ||
67 | const struct GNUNET_MessageHeader *hello); | ||
68 | |||
69 | |||
70 | /** | ||
71 | * Handle to cancel a #GNUNET_TRANSPORT_get_hello() operation. | ||
72 | */ | ||
73 | struct GNUNET_TRANSPORT_GetHelloHandle; | ||
74 | |||
75 | |||
76 | /** | ||
77 | * Obtain updates on changes to the HELLO message for this peer. The callback | ||
78 | * given in this function is never called synchronously. | ||
79 | * | ||
80 | * @param cfg configuration | ||
81 | * @param rec function to call with the HELLO | ||
82 | * @param rec_cls closure for @a rec | ||
83 | * @return handle to cancel the operation | ||
84 | */ | ||
85 | struct GNUNET_TRANSPORT_GetHelloHandle * | ||
86 | GNUNET_TRANSPORT_get_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
87 | GNUNET_TRANSPORT_HelloUpdateCallback rec, | ||
88 | void *rec_cls); | ||
89 | |||
90 | |||
91 | /** | ||
92 | * Stop receiving updates about changes to our HELLO message. | ||
93 | * | ||
94 | * @param ghh handle to cancel | ||
95 | */ | ||
96 | void | ||
97 | GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh); | ||
98 | |||
99 | |||
100 | /** | 57 | /** |
101 | * Handle for a #GNUNET_TRANSPORT_offer_hello operation | 58 | * Handle for a #GNUNET_TRANSPORT_offer_hello operation |
102 | */ | 59 | */ |
@@ -114,7 +71,7 @@ struct GNUNET_TRANSPORT_OfferHelloHandle; | |||
114 | * tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail | 71 | * tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail |
115 | * tc reasong #GNUNET_SCHEDULER_REASON_READ_READY for success | 72 | * tc reasong #GNUNET_SCHEDULER_REASON_READ_READY for success |
116 | * @param cont_cls closure for @a cont | 73 | * @param cont_cls closure for @a cont |
117 | * @return a GNUNET_TRANSPORT_OfferHelloHandle handle or NULL on failure, | 74 | * @return a `struct GNUNET_TRANSPORT_OfferHelloHandle` handle or NULL on failure, |
118 | * in case of failure @a cont will not be called | 75 | * in case of failure @a cont will not be called |
119 | * | 76 | * |
120 | */ | 77 | */ |