diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_identity_service.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/include/gnunet_identity_service.h')
-rw-r--r-- | src/include/gnunet_identity_service.h | 84 |
1 files changed, 43 insertions, 41 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h index 8a77e76e0..674176e0e 100644 --- a/src/include/gnunet_identity_service.h +++ b/src/include/gnunet_identity_service.h | |||
@@ -80,7 +80,7 @@ struct GNUNET_IDENTITY_Operation; | |||
80 | * @return associated ECC key, valid as long as the ego is valid | 80 | * @return associated ECC key, valid as long as the ego is valid |
81 | */ | 81 | */ |
82 | const struct GNUNET_CRYPTO_EcdsaPrivateKey * | 82 | const struct GNUNET_CRYPTO_EcdsaPrivateKey * |
83 | GNUNET_IDENTITY_ego_get_private_key(const struct GNUNET_IDENTITY_Ego *ego); | 83 | GNUNET_IDENTITY_ego_get_private_key (const struct GNUNET_IDENTITY_Ego *ego); |
84 | 84 | ||
85 | 85 | ||
86 | /** | 86 | /** |
@@ -89,7 +89,7 @@ GNUNET_IDENTITY_ego_get_private_key(const struct GNUNET_IDENTITY_Ego *ego); | |||
89 | * @return handle for the anonymous user, must not be freed | 89 | * @return handle for the anonymous user, must not be freed |
90 | */ | 90 | */ |
91 | const struct GNUNET_IDENTITY_Ego * | 91 | const struct GNUNET_IDENTITY_Ego * |
92 | GNUNET_IDENTITY_ego_get_anonymous(void); | 92 | GNUNET_IDENTITY_ego_get_anonymous (void); |
93 | 93 | ||
94 | 94 | ||
95 | /** | 95 | /** |
@@ -99,8 +99,8 @@ GNUNET_IDENTITY_ego_get_anonymous(void); | |||
99 | * @param pk set to ego's public key | 99 | * @param pk set to ego's public key |
100 | */ | 100 | */ |
101 | void | 101 | void |
102 | GNUNET_IDENTITY_ego_get_public_key(const struct GNUNET_IDENTITY_Ego *ego, | 102 | GNUNET_IDENTITY_ego_get_public_key (const struct GNUNET_IDENTITY_Ego *ego, |
103 | struct GNUNET_CRYPTO_EcdsaPublicKey *pk); | 103 | struct GNUNET_CRYPTO_EcdsaPublicKey *pk); |
104 | 104 | ||
105 | 105 | ||
106 | /** | 106 | /** |
@@ -152,9 +152,9 @@ typedef void (*GNUNET_IDENTITY_Callback) (void *cls, | |||
152 | * @return handle to communicate with identity service | 152 | * @return handle to communicate with identity service |
153 | */ | 153 | */ |
154 | struct GNUNET_IDENTITY_Handle * | 154 | struct GNUNET_IDENTITY_Handle * |
155 | GNUNET_IDENTITY_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | 155 | GNUNET_IDENTITY_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, |
156 | GNUNET_IDENTITY_Callback cb, | 156 | GNUNET_IDENTITY_Callback cb, |
157 | void *cb_cls); | 157 | void *cb_cls); |
158 | 158 | ||
159 | 159 | ||
160 | /** | 160 | /** |
@@ -167,10 +167,10 @@ GNUNET_IDENTITY_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
167 | * @return handle to abort the operation | 167 | * @return handle to abort the operation |
168 | */ | 168 | */ |
169 | struct GNUNET_IDENTITY_Operation * | 169 | struct GNUNET_IDENTITY_Operation * |
170 | GNUNET_IDENTITY_get(struct GNUNET_IDENTITY_Handle *id, | 170 | GNUNET_IDENTITY_get (struct GNUNET_IDENTITY_Handle *id, |
171 | const char *service_name, | 171 | const char *service_name, |
172 | GNUNET_IDENTITY_Callback cb, | 172 | GNUNET_IDENTITY_Callback cb, |
173 | void *cb_cls); | 173 | void *cb_cls); |
174 | 174 | ||
175 | 175 | ||
176 | /** | 176 | /** |
@@ -194,11 +194,11 @@ typedef void (*GNUNET_IDENTITY_Continuation) (void *cls, const char *emsg); | |||
194 | * @return handle to abort the operation | 194 | * @return handle to abort the operation |
195 | */ | 195 | */ |
196 | struct GNUNET_IDENTITY_Operation * | 196 | struct GNUNET_IDENTITY_Operation * |
197 | GNUNET_IDENTITY_set(struct GNUNET_IDENTITY_Handle *id, | 197 | GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *id, |
198 | const char *service_name, | 198 | const char *service_name, |
199 | struct GNUNET_IDENTITY_Ego *ego, | 199 | struct GNUNET_IDENTITY_Ego *ego, |
200 | GNUNET_IDENTITY_Continuation cont, | 200 | GNUNET_IDENTITY_Continuation cont, |
201 | void *cont_cls); | 201 | void *cont_cls); |
202 | 202 | ||
203 | 203 | ||
204 | /** | 204 | /** |
@@ -207,7 +207,7 @@ GNUNET_IDENTITY_set(struct GNUNET_IDENTITY_Handle *id, | |||
207 | * @param h identity service to disconnect | 207 | * @param h identity service to disconnect |
208 | */ | 208 | */ |
209 | void | 209 | void |
210 | GNUNET_IDENTITY_disconnect(struct GNUNET_IDENTITY_Handle *h); | 210 | GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h); |
211 | 211 | ||
212 | 212 | ||
213 | /** | 213 | /** |
@@ -234,10 +234,10 @@ typedef void (*GNUNET_IDENTITY_CreateContinuation) ( | |||
234 | * @return handle to abort the operation | 234 | * @return handle to abort the operation |
235 | */ | 235 | */ |
236 | struct GNUNET_IDENTITY_Operation * | 236 | struct GNUNET_IDENTITY_Operation * |
237 | GNUNET_IDENTITY_create(struct GNUNET_IDENTITY_Handle *id, | 237 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, |
238 | const char *name, | 238 | const char *name, |
239 | GNUNET_IDENTITY_CreateContinuation cont, | 239 | GNUNET_IDENTITY_CreateContinuation cont, |
240 | void *cont_cls); | 240 | void *cont_cls); |
241 | 241 | ||
242 | 242 | ||
243 | /** | 243 | /** |
@@ -251,11 +251,11 @@ GNUNET_IDENTITY_create(struct GNUNET_IDENTITY_Handle *id, | |||
251 | * @return handle to abort the operation | 251 | * @return handle to abort the operation |
252 | */ | 252 | */ |
253 | struct GNUNET_IDENTITY_Operation * | 253 | struct GNUNET_IDENTITY_Operation * |
254 | GNUNET_IDENTITY_rename(struct GNUNET_IDENTITY_Handle *id, | 254 | GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id, |
255 | const char *old_name, | 255 | const char *old_name, |
256 | const char *new_name, | 256 | const char *new_name, |
257 | GNUNET_IDENTITY_Continuation cb, | 257 | GNUNET_IDENTITY_Continuation cb, |
258 | void *cb_cls); | 258 | void *cb_cls); |
259 | 259 | ||
260 | 260 | ||
261 | /** | 261 | /** |
@@ -268,10 +268,10 @@ GNUNET_IDENTITY_rename(struct GNUNET_IDENTITY_Handle *id, | |||
268 | * @return handle to abort the operation | 268 | * @return handle to abort the operation |
269 | */ | 269 | */ |
270 | struct GNUNET_IDENTITY_Operation * | 270 | struct GNUNET_IDENTITY_Operation * |
271 | GNUNET_IDENTITY_delete(struct GNUNET_IDENTITY_Handle *id, | 271 | GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id, |
272 | const char *name, | 272 | const char *name, |
273 | GNUNET_IDENTITY_Continuation cb, | 273 | GNUNET_IDENTITY_Continuation cb, |
274 | void *cb_cls); | 274 | void *cb_cls); |
275 | 275 | ||
276 | 276 | ||
277 | /** | 277 | /** |
@@ -283,7 +283,7 @@ GNUNET_IDENTITY_delete(struct GNUNET_IDENTITY_Handle *id, | |||
283 | * @param op operation to cancel | 283 | * @param op operation to cancel |
284 | */ | 284 | */ |
285 | void | 285 | void |
286 | GNUNET_IDENTITY_cancel(struct GNUNET_IDENTITY_Operation *op); | 286 | GNUNET_IDENTITY_cancel (struct GNUNET_IDENTITY_Operation *op); |
287 | 287 | ||
288 | 288 | ||
289 | /* ************* convenience API to lookup an ego ***************** */ | 289 | /* ************* convenience API to lookup an ego ***************** */ |
@@ -314,10 +314,10 @@ struct GNUNET_IDENTITY_EgoLookup; | |||
314 | * @return NULL on error | 314 | * @return NULL on error |
315 | */ | 315 | */ |
316 | struct GNUNET_IDENTITY_EgoLookup * | 316 | struct GNUNET_IDENTITY_EgoLookup * |
317 | GNUNET_IDENTITY_ego_lookup(const struct GNUNET_CONFIGURATION_Handle *cfg, | 317 | GNUNET_IDENTITY_ego_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg, |
318 | const char *name, | 318 | const char *name, |
319 | GNUNET_IDENTITY_EgoCallback cb, | 319 | GNUNET_IDENTITY_EgoCallback cb, |
320 | void *cb_cls); | 320 | void *cb_cls); |
321 | 321 | ||
322 | 322 | ||
323 | /** | 323 | /** |
@@ -326,7 +326,7 @@ GNUNET_IDENTITY_ego_lookup(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
326 | * @param el handle for lookup to abort | 326 | * @param el handle for lookup to abort |
327 | */ | 327 | */ |
328 | void | 328 | void |
329 | GNUNET_IDENTITY_ego_lookup_cancel(struct GNUNET_IDENTITY_EgoLookup *el); | 329 | GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el); |
330 | 330 | ||
331 | /** | 331 | /** |
332 | * Function called with the result. | 332 | * Function called with the result. |
@@ -360,10 +360,11 @@ struct GNUNET_IDENTITY_EgoSuffixLookup; | |||
360 | * @return handle to abort the operation | 360 | * @return handle to abort the operation |
361 | */ | 361 | */ |
362 | struct GNUNET_IDENTITY_EgoSuffixLookup * | 362 | struct GNUNET_IDENTITY_EgoSuffixLookup * |
363 | GNUNET_IDENTITY_ego_lookup_by_suffix(const struct GNUNET_CONFIGURATION_Handle *cfg, | 363 | GNUNET_IDENTITY_ego_lookup_by_suffix (const struct |
364 | const char *suffix, | 364 | GNUNET_CONFIGURATION_Handle *cfg, |
365 | GNUNET_IDENTITY_EgoSuffixCallback cb, | 365 | const char *suffix, |
366 | void *cb_cls); | 366 | GNUNET_IDENTITY_EgoSuffixCallback cb, |
367 | void *cb_cls); | ||
367 | 368 | ||
368 | 369 | ||
369 | /** | 370 | /** |
@@ -372,7 +373,8 @@ GNUNET_IDENTITY_ego_lookup_by_suffix(const struct GNUNET_CONFIGURATION_Handle *c | |||
372 | * @param el handle for lookup to abort | 373 | * @param el handle for lookup to abort |
373 | */ | 374 | */ |
374 | void | 375 | void |
375 | GNUNET_IDENTITY_ego_lookup_by_suffix_cancel(struct GNUNET_IDENTITY_EgoSuffixLookup *el); | 376 | GNUNET_IDENTITY_ego_lookup_by_suffix_cancel (struct |
377 | GNUNET_IDENTITY_EgoSuffixLookup *el); | ||
376 | 378 | ||
377 | #if 0 /* keep Emacsens' auto-indent happy */ | 379 | #if 0 /* keep Emacsens' auto-indent happy */ |
378 | { | 380 | { |