aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-02-15 17:20:04 +0000
committerJulius Bünger <buenger@mytum.de>2015-02-15 17:20:04 +0000
commit730f28702e7a5f6da67ab96947e7fe0724e0b228 (patch)
tree1b3ed546c0ab81b3c115737e6034ea5382311222 /src/rps/gnunet-service-rps_sampler.h
parent00353d428c10961d355381061922b113faac00d4 (diff)
downloadgnunet-730f28702e7a5f6da67ab96947e7fe0724e0b228.tar.gz
gnunet-730f28702e7a5f6da67ab96947e7fe0724e0b228.zip
- got rid of unneeded code
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 d022e6c9d..708de6980 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/rps/gnunet-service-rps_sampler.h
@@ -36,28 +36,6 @@ struct RPS_Sampler;
36 36
37 37
38/** 38/**
39 * Callback that is called when a new PeerID is inserted into a sampler.
40 *
41 * @param cls the closure given alongside this function.
42 * @param id the PeerID that is inserted
43 */
44typedef void
45(*RPS_sampler_insert_cb) (void *cls,
46 struct RPS_Sampler *sampler,
47 const struct GNUNET_PeerIdentity *id);
48
49/**
50 * Callback that is called when a new PeerID is removed from a sampler.
51 *
52 * @param cls the closure given alongside this function.
53 * @param id the PeerID that is removed
54 */
55typedef void
56(*RPS_sampler_remove_cb) (void *cls,
57 struct RPS_Sampler *sampler,
58 const struct GNUNET_PeerIdentity *id);
59
60/**
61 * Callback that is called from _get_n_rand_peers() when the PeerIDs are ready. 39 * Callback that is called from _get_n_rand_peers() when the PeerIDs are ready.
62 * 40 *
63 * @param cls the closure given alongside this function. 41 * @param cls the closure given alongside this function.
@@ -104,9 +82,7 @@ RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size);
104 */ 82 */
105struct RPS_Sampler * 83struct RPS_Sampler *
106RPS_sampler_init (size_t init_size, 84RPS_sampler_init (size_t init_size,
107 struct GNUNET_TIME_Relative max_round_interval, 85 struct GNUNET_TIME_Relative max_round_interval);
108 RPS_sampler_insert_cb ins_cb, void *ins_cls,
109 RPS_sampler_remove_cb rem_cb, void *rem_cls);
110 86
111 87
112/** 88/**