From df3efc93aafc83fadd659ec4b8d49fa9302b0831 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 28 Jan 2015 16:39:02 +0000 Subject: - get size direcly from sampler --- src/rps/gnunet-service-rps_sampler.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/rps/gnunet-service-rps_sampler.h') 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 */ //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 -- cgit v1.2.3