aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r--src/include/gnunet_transport_service.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index e90acab4d..84a13ed68 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -573,13 +573,20 @@ typedef void (*GNUNET_TRANSPORT_HelloUpdateCallback) (void *cls,
573 573
574 574
575/** 575/**
576 * Handle to cancel a 'GNUNET_TRANSPORT_get_hello' operation.
577 */
578struct GNUNET_TRANSPORT_GetHelloHandle;
579
580
581/**
576 * Obtain updates on changes to the HELLO message for this peer. 582 * Obtain updates on changes to the HELLO message for this peer.
577 * 583 *
578 * @param handle connection to transport service 584 * @param handle connection to transport service
579 * @param rec function to call with the HELLO 585 * @param rec function to call with the HELLO
580 * @param rec_cls closure for rec 586 * @param rec_cls closure for rec
587 * @return handle to cancel the operation, NULL on error
581 */ 588 */
582void 589struct GNUNET_TRANSPORT_GetHelloHandle *
583GNUNET_TRANSPORT_get_hello (struct GNUNET_TRANSPORT_Handle *handle, 590GNUNET_TRANSPORT_get_hello (struct GNUNET_TRANSPORT_Handle *handle,
584 GNUNET_TRANSPORT_HelloUpdateCallback rec, 591 GNUNET_TRANSPORT_HelloUpdateCallback rec,
585 void *rec_cls); 592 void *rec_cls);
@@ -588,14 +595,10 @@ GNUNET_TRANSPORT_get_hello (struct GNUNET_TRANSPORT_Handle *handle,
588/** 595/**
589 * Stop receiving updates about changes to our HELLO message. 596 * Stop receiving updates about changes to our HELLO message.
590 * 597 *
591 * @param handle connection to transport service 598 * @param ghh handle returned from 'GNUNET_TRANSPORT_get_hello')
592 * @param rec function previously registered to be called with the HELLOs
593 * @param rec_cls closure for rec
594 */ 599 */
595void 600void
596GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_Handle *handle, 601GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh);
597 GNUNET_TRANSPORT_HelloUpdateCallback rec,
598 void *rec_cls);
599 602
600 603
601/** 604/**