From: Christian Grothoff Date: Sun, 18 Oct 2015 13:53:25 +0000 (+0000) Subject: -doxygen X-Git-Tag: initial-import-from-subversion-38251~1246 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a93366a9273b903fa50f47f5a8cc019c7565e332;p=oweals%2Fgnunet.git -doxygen --- diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 07470047e..f3cbeb400 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h @@ -409,15 +409,16 @@ struct GNUNET_TRANSPORT_OfferHelloHandle; * @param cont continuation to call when HELLO has been sent, * tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail * tc reasong #GNUNET_SCHEDULER_REASON_READ_READY for success - * @param cls closure for continuation + * @param cont_cls closure for @a cont * @return a GNUNET_TRANSPORT_OfferHelloHandle handle or NULL on failure, - * in case of failure cont will not be called + * in case of failure @a cont will not be called * */ struct GNUNET_TRANSPORT_OfferHelloHandle * GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, const struct GNUNET_MessageHeader *hello, - GNUNET_SCHEDULER_TaskCallback cont, void *cls); + GNUNET_SCHEDULER_TaskCallback cont, + void *cont_cls); /** diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index dca9b4b78..502968553 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -1742,16 +1742,16 @@ GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle, * @param cont continuation to call when HELLO has been sent, * tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail * tc reasong #GNUNET_SCHEDULER_REASON_READ_READY for success - * @param cls closure for continuation + * @param cont_cls closure for @a cont * @return a `struct GNUNET_TRANSPORT_OfferHelloHandle` handle or NULL on failure, - * in case of failure cont will not be called + * in case of failure @a cont will not be called * */ struct GNUNET_TRANSPORT_OfferHelloHandle * GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, const struct GNUNET_MessageHeader *hello, GNUNET_SCHEDULER_TaskCallback cont, - void *cls) + void *cont_cls) { struct GNUNET_TRANSPORT_OfferHelloHandle *ohh; struct GNUNET_MessageHeader *msg; @@ -1780,11 +1780,15 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, ohh = GNUNET_new (struct GNUNET_TRANSPORT_OfferHelloHandle); ohh->th = handle; ohh->cont = cont; - ohh->cls = cls; + ohh->cls = cont_cls; ohh->msg = msg; - ohh->tth = schedule_control_transmit (handle, size, - &send_hello, ohh); - GNUNET_CONTAINER_DLL_insert (handle->oh_head, handle->oh_tail, ohh); + ohh->tth = schedule_control_transmit (handle, + size, + &send_hello, + ohh); + GNUNET_CONTAINER_DLL_insert (handle->oh_head, + handle->oh_tail, + ohh); return ohh; }