diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/include/gnunet_peerstore_service.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 63 |
1 files changed, 29 insertions, 34 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index ad80a3fa3..ac390ada2 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -71,9 +71,7 @@ extern "C" { | |||
71 | /** | 71 | /** |
72 | * Options for storing values in PEERSTORE | 72 | * Options for storing values in PEERSTORE |
73 | */ | 73 | */ |
74 | enum GNUNET_PEERSTORE_StoreOption | 74 | enum GNUNET_PEERSTORE_StoreOption { |
75 | { | ||
76 | |||
77 | /** | 75 | /** |
78 | * Possibly store multiple values under given key. | 76 | * Possibly store multiple values under given key. |
79 | */ | 77 | */ |
@@ -84,7 +82,6 @@ enum GNUNET_PEERSTORE_StoreOption | |||
84 | * storing the given value. | 82 | * storing the given value. |
85 | */ | 83 | */ |
86 | GNUNET_PEERSTORE_STOREOPTION_REPLACE = 1 | 84 | GNUNET_PEERSTORE_STOREOPTION_REPLACE = 1 |
87 | |||
88 | }; | 85 | }; |
89 | 86 | ||
90 | /** | 87 | /** |
@@ -100,9 +97,7 @@ struct GNUNET_PEERSTORE_StoreContext; | |||
100 | /** | 97 | /** |
101 | * Single PEERSTORE record | 98 | * Single PEERSTORE record |
102 | */ | 99 | */ |
103 | struct GNUNET_PEERSTORE_Record | 100 | struct GNUNET_PEERSTORE_Record { |
104 | { | ||
105 | |||
106 | /** | 101 | /** |
107 | * Responsible sub system string | 102 | * Responsible sub system string |
108 | */ | 103 | */ |
@@ -169,7 +164,7 @@ typedef void (*GNUNET_PEERSTORE_Processor) ( | |||
169 | * @return NULL on error | 164 | * @return NULL on error |
170 | */ | 165 | */ |
171 | struct GNUNET_PEERSTORE_Handle * | 166 | struct GNUNET_PEERSTORE_Handle * |
172 | GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | 167 | GNUNET_PEERSTORE_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); |
173 | 168 | ||
174 | 169 | ||
175 | /** | 170 | /** |
@@ -181,7 +176,7 @@ GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | |||
181 | * @param sync_first send any pending STORE requests before disconnecting | 176 | * @param sync_first send any pending STORE requests before disconnecting |
182 | */ | 177 | */ |
183 | void | 178 | void |
184 | GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first); | 179 | GNUNET_PEERSTORE_disconnect(struct GNUNET_PEERSTORE_Handle *h, int sync_first); |
185 | 180 | ||
186 | 181 | ||
187 | /** | 182 | /** |
@@ -201,16 +196,16 @@ GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first); | |||
201 | * @param cont_cls Closure for @a cont | 196 | * @param cont_cls Closure for @a cont |
202 | */ | 197 | */ |
203 | struct GNUNET_PEERSTORE_StoreContext * | 198 | struct GNUNET_PEERSTORE_StoreContext * |
204 | GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | 199 | GNUNET_PEERSTORE_store(struct GNUNET_PEERSTORE_Handle *h, |
205 | const char *sub_system, | 200 | const char *sub_system, |
206 | const struct GNUNET_PeerIdentity *peer, | 201 | const struct GNUNET_PeerIdentity *peer, |
207 | const char *key, | 202 | const char *key, |
208 | const void *value, | 203 | const void *value, |
209 | size_t size, | 204 | size_t size, |
210 | struct GNUNET_TIME_Absolute expiry, | 205 | struct GNUNET_TIME_Absolute expiry, |
211 | enum GNUNET_PEERSTORE_StoreOption options, | 206 | enum GNUNET_PEERSTORE_StoreOption options, |
212 | GNUNET_PEERSTORE_Continuation cont, | 207 | GNUNET_PEERSTORE_Continuation cont, |
213 | void *cont_cls); | 208 | void *cont_cls); |
214 | 209 | ||
215 | 210 | ||
216 | /** | 211 | /** |
@@ -219,7 +214,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
219 | * @param sc Store request context | 214 | * @param sc Store request context |
220 | */ | 215 | */ |
221 | void | 216 | void |
222 | GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc); | 217 | GNUNET_PEERSTORE_store_cancel(struct GNUNET_PEERSTORE_StoreContext *sc); |
223 | 218 | ||
224 | 219 | ||
225 | /** | 220 | /** |
@@ -233,12 +228,12 @@ GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc); | |||
233 | * @param callback_cls closure for @a callback | 228 | * @param callback_cls closure for @a callback |
234 | */ | 229 | */ |
235 | struct GNUNET_PEERSTORE_IterateContext * | 230 | struct GNUNET_PEERSTORE_IterateContext * |
236 | GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | 231 | GNUNET_PEERSTORE_iterate(struct GNUNET_PEERSTORE_Handle *h, |
237 | const char *sub_system, | 232 | const char *sub_system, |
238 | const struct GNUNET_PeerIdentity *peer, | 233 | const struct GNUNET_PeerIdentity *peer, |
239 | const char *key, | 234 | const char *key, |
240 | GNUNET_PEERSTORE_Processor callback, | 235 | GNUNET_PEERSTORE_Processor callback, |
241 | void *callback_cls); | 236 | void *callback_cls); |
242 | 237 | ||
243 | 238 | ||
244 | /** | 239 | /** |
@@ -248,7 +243,7 @@ GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h, | |||
248 | * @param ic Iterate request context as returned by GNUNET_PEERSTORE_iterate() | 243 | * @param ic Iterate request context as returned by GNUNET_PEERSTORE_iterate() |
249 | */ | 244 | */ |
250 | void | 245 | void |
251 | GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic); | 246 | GNUNET_PEERSTORE_iterate_cancel(struct GNUNET_PEERSTORE_IterateContext *ic); |
252 | 247 | ||
253 | 248 | ||
254 | /** | 249 | /** |
@@ -264,12 +259,12 @@ GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic); | |||
264 | * @return Handle to watch request | 259 | * @return Handle to watch request |
265 | */ | 260 | */ |
266 | struct GNUNET_PEERSTORE_WatchContext * | 261 | struct GNUNET_PEERSTORE_WatchContext * |
267 | GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h, | 262 | GNUNET_PEERSTORE_watch(struct GNUNET_PEERSTORE_Handle *h, |
268 | const char *sub_system, | 263 | const char *sub_system, |
269 | const struct GNUNET_PeerIdentity *peer, | 264 | const struct GNUNET_PeerIdentity *peer, |
270 | const char *key, | 265 | const char *key, |
271 | GNUNET_PEERSTORE_Processor callback, | 266 | GNUNET_PEERSTORE_Processor callback, |
272 | void *callback_cls); | 267 | void *callback_cls); |
273 | 268 | ||
274 | 269 | ||
275 | /** | 270 | /** |
@@ -278,7 +273,7 @@ GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h, | |||
278 | * @param wc handle to the watch request | 273 | * @param wc handle to the watch request |
279 | */ | 274 | */ |
280 | void | 275 | void |
281 | GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc); | 276 | GNUNET_PEERSTORE_watch_cancel(struct GNUNET_PEERSTORE_WatchContext *wc); |
282 | 277 | ||
283 | 278 | ||
284 | #if 0 /* keep Emacsens' auto-indent happy */ | 279 | #if 0 /* keep Emacsens' auto-indent happy */ |