convert fs publish to MQ
[oweals/gnunet.git] / src / include / gnunet_rps_service.h
index e99072cbfab7878f234ae93e936cbd07c164d652..c91804a60230833da493c350195b6356945c450c 100644 (file)
@@ -1,6 +1,6 @@
 /*
       This file is part of GNUnet
-      Copyright (C) 
+      Copyright (C)
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
  */
 
 /**
- * @file include/gnunet_rps_service.h
- * @brief API to the rps service
  * @author Julius Bünger
+ *
+ * @file
+ * API to the rps service
+ *
+ * @defgroup rps  RPS service
+ * Random Peer Sampling
+ * @{
  */
 #ifndef GNUNET_RPS_SERVICE_H
 #define GNUNET_RPS_SERVICE_H
@@ -56,7 +61,9 @@ struct GNUNET_RPS_Request_Handle;
  * @param num_peers the number of peers returned
  * @param peers array with num_peers PeerIDs
  */
-typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls, uint64_t num_peers, const struct GNUNET_PeerIdentity *peers);
+typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls,
+    uint64_t num_peers,
+    const struct GNUNET_PeerIdentity *peers);
 
 /**
  * Connect to the rps service
@@ -125,7 +132,8 @@ GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh);
 GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h,
                           uint32_t type,
                           uint32_t num_peers,
-                          const struct GNUNET_PeerIdentity *ids);
+                          const struct GNUNET_PeerIdentity *ids,
+                          const struct GNUNET_PeerIdentity *target_peer);
 #endif /* ENABLE_MALICIOUS */
 
 
@@ -137,6 +145,7 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h,
   void
 GNUNET_RPS_disconnect (struct GNUNET_RPS_Handle *h);
 
+
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif
@@ -145,3 +154,5 @@ GNUNET_RPS_disconnect (struct GNUNET_RPS_Handle *h);
 #endif
 
 #endif
+
+/** @} */  /* end of group */