diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-01-28 16:56:47 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-01-28 16:56:47 +0000 |
commit | f211dbecd475ad630e54b29e2bd054c139aa1273 (patch) | |
tree | 414ff9e5452d477cd00a6a2cd0998001192e0489 /src/rps/gnunet-service-rps_sampler.h | |
parent | 9a73ec66434eb1bb579dda36cb7a1c4c6fd10b8b (diff) | |
download | gnunet-f211dbecd475ad630e54b29e2bd054c139aa1273.tar.gz gnunet-f211dbecd475ad630e54b29e2bd054c139aa1273.zip |
- never resize to 0
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r-- | src/rps/gnunet-service-rps_sampler.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h index 4949ef9c6..d0ac11d0d 100644 --- a/src/rps/gnunet-service-rps_sampler.h +++ b/src/rps/gnunet-service-rps_sampler.h | |||
@@ -84,6 +84,15 @@ RPS_sampler_resize (unsigned int new_size); | |||
84 | 84 | ||
85 | 85 | ||
86 | /** | 86 | /** |
87 | * Empty the sampler. | ||
88 | * | ||
89 | * @param new_size the new size of the sampler | ||
90 | */ | ||
91 | void | ||
92 | RPS_sampler_empty (); | ||
93 | |||
94 | |||
95 | /** | ||
87 | * Initialise a tuple of samplers. | 96 | * Initialise a tuple of samplers. |
88 | * | 97 | * |
89 | * @param init_size the size the sampler is initialised with | 98 | * @param init_size the size the sampler is initialised with |