diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:34:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:34:31 +0000 |
commit | 6e3599bab213760c66f13f6103ebf650bbe5b7e9 (patch) | |
tree | f56a0bbe3ce64c818c87bae6171ba800ab05b701 /src/include/gnunet_transport_service.h | |
parent | 2c0a286c8c29e135c68556658b6ac6cef48a874a (diff) | |
download | gnunet-6e3599bab213760c66f13f6103ebf650bbe5b7e9.tar.gz gnunet-6e3599bab213760c66f13f6103ebf650bbe5b7e9.zip |
migrate transport_core API to MQ
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r-- | src/include/gnunet_transport_service.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 96182424e..b40763b92 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -66,12 +66,6 @@ typedef void | |||
66 | 66 | ||
67 | 67 | ||
68 | /** | 68 | /** |
69 | * Opaque handle to the service. | ||
70 | */ | ||
71 | struct GNUNET_TRANSPORT_Handle; | ||
72 | |||
73 | |||
74 | /** | ||
75 | * Function called to notify transport users that another | 69 | * Function called to notify transport users that another |
76 | * peer connected to us. | 70 | * peer connected to us. |
77 | * | 71 | * |
@@ -82,6 +76,7 @@ typedef void | |||
82 | (*GNUNET_TRANSPORT_NotifyConnect) (void *cls, | 76 | (*GNUNET_TRANSPORT_NotifyConnect) (void *cls, |
83 | const struct GNUNET_PeerIdentity *peer); | 77 | const struct GNUNET_PeerIdentity *peer); |
84 | 78 | ||
79 | |||
85 | /** | 80 | /** |
86 | * Function called to notify transport users that another | 81 | * Function called to notify transport users that another |
87 | * peer disconnected from us. | 82 | * peer disconnected from us. |
@@ -288,13 +283,13 @@ struct GNUNET_TRANSPORT_GetHelloHandle; | |||
288 | * Obtain updates on changes to the HELLO message for this peer. The callback | 283 | * Obtain updates on changes to the HELLO message for this peer. The callback |
289 | * given in this function is never called synchronously. | 284 | * given in this function is never called synchronously. |
290 | * | 285 | * |
291 | * @param handle connection to transport service | 286 | * @param cfg configuration |
292 | * @param rec function to call with the HELLO | 287 | * @param rec function to call with the HELLO |
293 | * @param rec_cls closure for @a rec | 288 | * @param rec_cls closure for @a rec |
294 | * @return handle to cancel the operation | 289 | * @return handle to cancel the operation |
295 | */ | 290 | */ |
296 | struct GNUNET_TRANSPORT_GetHelloHandle * | 291 | struct GNUNET_TRANSPORT_GetHelloHandle * |
297 | GNUNET_TRANSPORT_get_hello (struct GNUNET_TRANSPORT_Handle *handle, | 292 | GNUNET_TRANSPORT_get_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, |
298 | GNUNET_TRANSPORT_HelloUpdateCallback rec, | 293 | GNUNET_TRANSPORT_HelloUpdateCallback rec, |
299 | void *rec_cls); | 294 | void *rec_cls); |
300 | 295 | ||
@@ -319,7 +314,7 @@ struct GNUNET_TRANSPORT_OfferHelloHandle; | |||
319 | * the transport service may just ignore this message if the HELLO is | 314 | * the transport service may just ignore this message if the HELLO is |
320 | * malformed or useless due to our local configuration. | 315 | * malformed or useless due to our local configuration. |
321 | * | 316 | * |
322 | * @param handle connection to transport service | 317 | * @param cfg configuration |
323 | * @param hello the hello message | 318 | * @param hello the hello message |
324 | * @param cont continuation to call when HELLO has been sent, | 319 | * @param cont continuation to call when HELLO has been sent, |
325 | * tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail | 320 | * tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail |
@@ -330,7 +325,7 @@ struct GNUNET_TRANSPORT_OfferHelloHandle; | |||
330 | * | 325 | * |
331 | */ | 326 | */ |
332 | struct GNUNET_TRANSPORT_OfferHelloHandle * | 327 | struct GNUNET_TRANSPORT_OfferHelloHandle * |
333 | GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, | 328 | GNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, |
334 | const struct GNUNET_MessageHeader *hello, | 329 | const struct GNUNET_MessageHeader *hello, |
335 | GNUNET_SCHEDULER_TaskCallback cont, | 330 | GNUNET_SCHEDULER_TaskCallback cont, |
336 | void *cont_cls); | 331 | void *cont_cls); |