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)
downloadgnunet-df3efc93aafc83fadd659ec4b8d49fa9302b0831.tar.gz
gnunet-df3efc93aafc83fadd659ec4b8d49fa9302b0831.zip
- 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 a7021b4fe..4949ef9c6 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/rps/gnunet-service-rps_sampler.h
@@ -65,6 +65,14 @@ typedef void
65 */ 65 */
66//struct RPS_Sampler; 66//struct RPS_Sampler;
67 67
68/**
69 * Get the size of the sampler.
70 *
71 * @return the size of the sampler
72 */
73unsigned int
74RPS_sampler_get_size ();
75
68 76
69/** 77/**
70 * Grow or shrink the size of the sampler. 78 * Grow or shrink the size of the sampler.
@@ -80,7 +88,7 @@ RPS_sampler_resize (unsigned int new_size);
80 * 88 *
81 * @param init_size the size the sampler is initialised with 89 * @param init_size the size the sampler is initialised with
82 * @param id with which all newly created sampler elements are initialised 90 * @param id with which all newly created sampler elements are initialised
83 * @param ins_cb the callback that will be called on every PeerID that is 91 * @param ins_cb the callback that will be called on every PeerID that is
84 * newly inserted into a sampler element 92 * newly inserted into a sampler element
85 * @param ins_cls the closure given to #ins_cb 93 * @param ins_cls the closure given to #ins_cb
86 * @param rem_cb the callback that will be called on every PeerID that is 94 * @param rem_cb the callback that will be called on every PeerID that is