aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r--src/rps/gnunet-service-rps_sampler.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h
index f33aa6eb1..ab4a6bbbb 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/rps/gnunet-service-rps_sampler.h
@@ -25,6 +25,7 @@
25#ifndef RPS_SAMPLER_H 25#ifndef RPS_SAMPLER_H
26#define RPS_SAMPLER_H 26#define RPS_SAMPLER_H
27#include <inttypes.h> 27#include <inttypes.h>
28#include "rps-sampler_common.h"
28 29
29 30
30/** 31/**
@@ -39,19 +40,6 @@ struct RPS_SamplerRequestHandle;
39 40
40 41
41/** 42/**
42 * Callback that is called from _get_n_rand_peers() when the PeerIDs are ready.
43 *
44 * @param cls the closure given alongside this function.
45 * @param ids the PeerIDs that were returned
46 * to be freed
47 */
48 typedef void
49(*RPS_sampler_n_rand_peers_ready_cb) (const struct GNUNET_PeerIdentity *ids,
50 uint32_t num_peers,
51 void *cls);
52
53
54/**
55 * Get the size of the sampler. 43 * Get the size of the sampler.
56 * 44 *
57 * @param sampler the sampler to return the size of. 45 * @param sampler the sampler to return the size of.
@@ -84,18 +72,6 @@ RPS_sampler_init (size_t init_size,
84 72
85 73
86/** 74/**
87 * Initialise a modified tuple of sampler elements.
88 *
89 * @param init_size the size the sampler is initialised with
90 * @param max_round_interval maximum time a round takes
91 * @return a handle to a sampler that consists of sampler elements.
92 */
93struct RPS_Sampler *
94RPS_sampler_mod_init (size_t init_size,
95 struct GNUNET_TIME_Relative max_round_interval);
96
97
98/**
99 * Update every sampler element of this sampler with given peer 75 * Update every sampler element of this sampler with given peer
100 * 76 *
101 * @param sampler the sampler to update. 77 * @param sampler the sampler to update.