aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-01-28 16:39:02 +0000
committerBart Polot <bart@net.in.tum.de>2015-01-28 16:39:02 +0000
commitdf3efc93aafc83fadd659ec4b8d49fa9302b0831 (patch)
treebe36562db4d9a1778b66d16e86f0108a95684d01 /src/rps/gnunet-service-rps_sampler.h
parent016510f7ddd6de31d6908134c9f3845e1faf2d27 (diff)
- get size direcly from sampler
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r--src/rps/gnunet-service-rps_sampler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h
index a7021b4fe5..4949ef9c6a 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/rps/gnunet-service-rps_sampler.h
@@ -65,6 +65,14 @@ typedef void
*/
//struct RPS_Sampler;
+/**
+ * Get the size of the sampler.
+ *
+ * @return the size of the sampler
+ */
+unsigned int
+RPS_sampler_get_size ();
+
/**
* Grow or shrink the size of the sampler.
@@ -80,7 +88,7 @@ RPS_sampler_resize (unsigned int new_size);
*
* @param init_size the size the sampler is initialised with
* @param id with which all newly created sampler elements are initialised
- * @param ins_cb the callback that will be called on every PeerID that is
+ * @param ins_cb the callback that will be called on every PeerID that is
* newly inserted into a sampler element
* @param ins_cls the closure given to #ins_cb
* @param rem_cb the callback that will be called on every PeerID that is