diff options
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r-- | src/rps/gnunet-service-rps_sampler.h | 26 |
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 | */ | ||
44 | typedef 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 | */ | ||
55 | typedef 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 | */ |
105 | struct RPS_Sampler * | 83 | struct RPS_Sampler * |
106 | RPS_sampler_init (size_t init_size, | 84 | RPS_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 | /** |