diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-07-23 17:26:35 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-07-23 17:26:35 +0000 |
commit | 18bc05a535be767b07473e29ac85cebe79ce83cf (patch) | |
tree | e17580c67403eb892e4e0e868035b16356eed0ab /src/set/gnunet-service-set.h | |
parent | 2584d09e42fcd0f8199b905ca5a43809bbc42aaa (diff) | |
download | gnunet-18bc05a535be767b07473e29ac85cebe79ce83cf.tar.gz gnunet-18bc05a535be767b07473e29ac85cebe79ce83cf.zip |
- set iteration
Diffstat (limited to 'src/set/gnunet-service-set.h')
-rw-r--r-- | src/set/gnunet-service-set.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/set/gnunet-service-set.h b/src/set/gnunet-service-set.h index 6ababe92f..c93cc660a 100644 --- a/src/set/gnunet-service-set.h +++ b/src/set/gnunet-service-set.h | |||
@@ -170,6 +170,15 @@ typedef void (*CancelImpl) (struct SetState *set, | |||
170 | 170 | ||
171 | 171 | ||
172 | /** | 172 | /** |
173 | * Signature of functions that implement sending all the set's | ||
174 | * elements to the client. | ||
175 | * | ||
176 | * @param set set that should be iterated over | ||
177 | */ | ||
178 | typedef void (*IterateImpl) (struct Set *set); | ||
179 | |||
180 | |||
181 | /** | ||
173 | * Dispatch table for a specific set operation. | 182 | * Dispatch table for a specific set operation. |
174 | * Every set operation has to implement the callback | 183 | * Every set operation has to implement the callback |
175 | * in this struct. | 184 | * in this struct. |
@@ -222,6 +231,11 @@ struct SetVT | |||
222 | * its ID. | 231 | * its ID. |
223 | */ | 232 | */ |
224 | CancelImpl cancel; | 233 | CancelImpl cancel; |
234 | |||
235 | /** | ||
236 | * Callback for iterating over all set elements. | ||
237 | */ | ||
238 | IterateImpl iterate; | ||
225 | }; | 239 | }; |
226 | 240 | ||
227 | 241 | ||