diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-06 12:51:27 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-06 12:51:27 +0200 |
commit | 8c3c9d1ae8086a8498b0e5159b8168fb47bf50e0 (patch) | |
tree | 5963fe1172e4fb78fb259a2036aa66f43e3eeb24 /src/include/gnunet_escrow_lib.h | |
parent | e35aa4c6b22ae0ae81a23e973eda3655f29e29b5 (diff) | |
download | gnunet-8c3c9d1ae8086a8498b0e5159b8168fb47bf50e0.tar.gz gnunet-8c3c9d1ae8086a8498b0e5159b8168fb47bf50e0.zip |
clean up plugin operations
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r-- | src/include/gnunet_escrow_lib.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h index 112f0afdb..4eeaff3fd 100644 --- a/src/include/gnunet_escrow_lib.h +++ b/src/include/gnunet_escrow_lib.h | |||
@@ -112,6 +112,7 @@ typedef void (*GNUNET_ESCROW_EgoCreateContinuation) ( | |||
112 | * @param escrowAnchor the escrow anchor needed to get the data back | 112 | * @param escrowAnchor the escrow anchor needed to get the data back |
113 | */ | 113 | */ |
114 | typedef void (*GNUNET_ESCROW_AnchorContinuation) ( | 114 | typedef void (*GNUNET_ESCROW_AnchorContinuation) ( |
115 | void *cls, | ||
115 | struct GNUNET_ESCROW_Anchor *escrowAnchor); | 116 | struct GNUNET_ESCROW_Anchor *escrowAnchor); |
116 | 117 | ||
117 | /** | 118 | /** |
@@ -121,6 +122,7 @@ typedef void (*GNUNET_ESCROW_AnchorContinuation) ( | |||
121 | * @param ego a new identity ego restored from the escrow | 122 | * @param ego a new identity ego restored from the escrow |
122 | */ | 123 | */ |
123 | typedef void (*GNUNET_ESCROW_EgoContinuation) ( | 124 | typedef void (*GNUNET_ESCROW_EgoContinuation) ( |
125 | void *cls, | ||
124 | const struct GNUNET_IDENTITY_Ego *ego); | 126 | const struct GNUNET_IDENTITY_Ego *ego); |
125 | 127 | ||
126 | /** | 128 | /** |
@@ -132,6 +134,7 @@ typedef void (*GNUNET_ESCROW_EgoContinuation) ( | |||
132 | * GNUNET_ESCROW_INVALID otherwise | 134 | * GNUNET_ESCROW_INVALID otherwise |
133 | */ | 135 | */ |
134 | typedef void (*GNUNET_ESCROW_VerifyContinuation) ( | 136 | typedef void (*GNUNET_ESCROW_VerifyContinuation) ( |
137 | void *cls, | ||
135 | int verificationResult); | 138 | int verificationResult); |
136 | 139 | ||
137 | 140 | ||
@@ -195,7 +198,7 @@ struct GNUNET_ESCROW_Operation | |||
195 | /** | 198 | /** |
196 | * The ego. | 199 | * The ego. |
197 | */ | 200 | */ |
198 | struct GNUNET_IDENTITY_Ego *ego; | 201 | const struct GNUNET_IDENTITY_Ego *ego; |
199 | 202 | ||
200 | /** | 203 | /** |
201 | * The verification result. | 204 | * The verification result. |
@@ -216,6 +219,11 @@ struct GNUNET_ESCROW_Operation | |||
216 | * Continuation for a VERIFY operation. | 219 | * Continuation for a VERIFY operation. |
217 | */ | 220 | */ |
218 | GNUNET_ESCROW_VerifyContinuation cb_verify; | 221 | GNUNET_ESCROW_VerifyContinuation cb_verify; |
222 | |||
223 | /** | ||
224 | * Closure for the callback | ||
225 | */ | ||
226 | void *cb_cls; | ||
219 | }; | 227 | }; |
220 | 228 | ||
221 | 229 | ||
@@ -248,6 +256,7 @@ GNUNET_ESCROW_fini ( | |||
248 | * @param ego the identity ego to put in escrow | 256 | * @param ego the identity ego to put in escrow |
249 | * @param method the escrow method to use | 257 | * @param method the escrow method to use |
250 | * @param cb function to call with the escrow anchor on completion | 258 | * @param cb function to call with the escrow anchor on completion |
259 | * @param cb_cls closure for @a cb | ||
251 | * | 260 | * |
252 | * @return handle to abort the operation | 261 | * @return handle to abort the operation |
253 | */ | 262 | */ |
@@ -256,7 +265,8 @@ GNUNET_ESCROW_put ( | |||
256 | struct GNUNET_ESCROW_Handle *h, | 265 | struct GNUNET_ESCROW_Handle *h, |
257 | const struct GNUNET_IDENTITY_Ego *ego, | 266 | const struct GNUNET_IDENTITY_Ego *ego, |
258 | enum GNUNET_ESCROW_Key_Escrow_Method method, | 267 | enum GNUNET_ESCROW_Key_Escrow_Method method, |
259 | GNUNET_ESCROW_AnchorContinuation cb); | 268 | GNUNET_ESCROW_AnchorContinuation cb, |
269 | void *cb_cls); | ||
260 | 270 | ||
261 | 271 | ||
262 | /** | 272 | /** |
@@ -267,6 +277,7 @@ GNUNET_ESCROW_put ( | |||
267 | * @param egoName the name of the ego to get back | 277 | * @param egoName the name of the ego to get back |
268 | * @param method the escrow method to use | 278 | * @param method the escrow method to use |
269 | * @param cb function to call with the restored ego on completion | 279 | * @param cb function to call with the restored ego on completion |
280 | * @param cb_cls closure for @a cb | ||
270 | * | 281 | * |
271 | * @return handle to abort the operation | 282 | * @return handle to abort the operation |
272 | */ | 283 | */ |
@@ -276,7 +287,8 @@ GNUNET_ESCROW_get ( | |||
276 | struct GNUNET_ESCROW_Anchor *escrowAnchor, | 287 | struct GNUNET_ESCROW_Anchor *escrowAnchor, |
277 | char *egoName, | 288 | char *egoName, |
278 | enum GNUNET_ESCROW_Key_Escrow_Method method, | 289 | enum GNUNET_ESCROW_Key_Escrow_Method method, |
279 | GNUNET_ESCROW_EgoContinuation cb); | 290 | GNUNET_ESCROW_EgoContinuation cb, |
291 | void *cb_cls); | ||
280 | 292 | ||
281 | 293 | ||
282 | /** | 294 | /** |
@@ -287,6 +299,7 @@ GNUNET_ESCROW_get ( | |||
287 | * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method | 299 | * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method |
288 | * @param method the escrow method to use | 300 | * @param method the escrow method to use |
289 | * @param cb function to call with the verification result on completion | 301 | * @param cb function to call with the verification result on completion |
302 | * @param cb_cls closure for @a cb | ||
290 | * | 303 | * |
291 | * @return handle to abort the operation | 304 | * @return handle to abort the operation |
292 | */ | 305 | */ |
@@ -296,7 +309,8 @@ GNUNET_ESCROW_verify ( | |||
296 | const struct GNUNET_IDENTITY_Ego *ego, | 309 | const struct GNUNET_IDENTITY_Ego *ego, |
297 | struct GNUNET_ESCROW_Anchor *escrowAnchor, | 310 | struct GNUNET_ESCROW_Anchor *escrowAnchor, |
298 | enum GNUNET_ESCROW_Key_Escrow_Method method, | 311 | enum GNUNET_ESCROW_Key_Escrow_Method method, |
299 | GNUNET_ESCROW_VerifyContinuation cb); | 312 | GNUNET_ESCROW_VerifyContinuation cb, |
313 | void *cb_cls); | ||
300 | 314 | ||
301 | 315 | ||
302 | /** | 316 | /** |