From 829ea8a6c2ee8ac83dcd9874973a9895013837da Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Wed, 11 Jul 2012 20:24:10 +0000 Subject: [PATCH] -more api --- src/gns/gns_api.c | 4 ++-- src/include/gnunet_gns_service.h | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index 79bd096c5..0ab7ed731 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c @@ -738,7 +738,7 @@ GNUNET_GNS_cancel_lookup_request (struct GNUNET_GNS_LookupRequest *lr) /** * Cancel pending shorten request * - * @param lr the lookup request to cancel + * @param sr the lookup request to cancel */ void GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr) @@ -762,7 +762,7 @@ GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr) /** * Cancel pending get auth request * - * @param lr the lookup request to cancel + * @param gar the lookup request to cancel */ void GNUNET_GNS_cancel_get_auth_request (struct GNUNET_GNS_GetAuthRequest *gar) diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index a138e96f9..91df6373d 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h @@ -195,6 +195,15 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, GNUNET_GNS_LookupResultProcessor proc, void *proc_cls); + +/** + * Cancel pending lookup request + * + * @param lr the lookup request to cancel + */ +void +GNUNET_GNS_cancel_lookup_request (struct GNUNET_GNS_LookupRequest *lr); + /* *************** Standard API: shorten ******************* */ @@ -250,6 +259,15 @@ GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle, GNUNET_GNS_ShortenResultProcessor proc, void *proc_cls); + +/** + * Cancel pending shorten request + * + * @param sr the lookup request to cancel + */ +void +GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr); + /* *************** Standard API: get authority ******************* */ @@ -279,6 +297,15 @@ GNUNET_GNS_get_authority (struct GNUNET_GNS_Handle *handle, GNUNET_GNS_GetAuthResultProcessor proc, void *proc_cls); + +/** + * Cancel pending get auth request + * + * @param gar the lookup request to cancel + */ +void +GNUNET_GNS_cancel_get_auth_request (struct GNUNET_GNS_GetAuthRequest *gar) + #if 0 /* keep Emacsens' auto-indent happy */ { #endif -- 2.25.1