From 70bdd2cc27981f415ee80cb44cc31ec99b12bc00 Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Thu, 11 Oct 2018 16:34:46 +0200 Subject: RPS API: Add API calls to rps header --- src/include/gnunet_rps_service.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h index f77c3dbc4..7fdfe491e 100644 --- a/src/include/gnunet_rps_service.h +++ b/src/include/gnunet_rps_service.h @@ -73,6 +73,29 @@ typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls, struct GNUNET_RPS_Handle * GNUNET_RPS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); + +/** + * @brief Start a sub with the given shared value + * + * @param h Handle to rps + * @param shared_value The shared value that defines the members of the sub (-gorup) + */ +void +GNUNET_RPS_sub_start (struct GNUNET_RPS_Handle *h, + const char *shared_value); + + +/** + * @brief Stop a sub with the given shared value + * + * @param h Handle to rps + * @param shared_value The shared value that defines the members of the sub (-gorup) + */ +void +GNUNET_RPS_sub_stop (struct GNUNET_RPS_Handle *h, + const char *shared_value); + + /** * Request n random peers. * @@ -169,6 +192,15 @@ GNUNET_RPS_stream_request (struct GNUNET_RPS_Handle *rps_handle, void *cls); +/** + * @brief Cancel a specific request for updates from the biased peer stream + * + * @param srh The request handle to cancel + */ +void +GNUNET_RPS_stream_cancel (struct GNUNET_RPS_StreamRequestHandle *srh); + + /** * Disconnect from the rps service * -- cgit v1.2.3