RPS API: Add API calls to rps header
authorJulius Bünger <buenger@mytum.de>
Thu, 11 Oct 2018 14:34:46 +0000 (16:34 +0200)
committerJulius Bünger <buenger@mytum.de>
Thu, 11 Oct 2018 14:34:46 +0000 (16:34 +0200)
src/include/gnunet_rps_service.h

index f77c3dbc4e97cab725b76942776db38585c2687b..7fdfe491ed92abf88e4f01b79824fe2b75cfc524 100644 (file)
@@ -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
  *