aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psycstore_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-08-04 20:10:17 +0000
committerGabor X Toth <*@tg-x.net>2016-08-04 20:10:17 +0000
commitcb073fc0a243ccd29cb0dc7eb5c7e7cb33b6e97f (patch)
treee07785a96079274c0162794b0bda68b8296c5572 /src/include/gnunet_psycstore_service.h
parent42fcd295dbcd71c399cf854525d86879095e4555 (diff)
downloadgnunet-cb073fc0a243ccd29cb0dc7eb5c7e7cb33b6e97f.tar.gz
gnunet-cb073fc0a243ccd29cb0dc7eb5c7e7cb33b6e97f.zip
psycstore: switch to MQ
Diffstat (limited to 'src/include/gnunet_psycstore_service.h')
-rw-r--r--src/include/gnunet_psycstore_service.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/include/gnunet_psycstore_service.h b/src/include/gnunet_psycstore_service.h
index f6c6bff03..b1be5246e 100644
--- a/src/include/gnunet_psycstore_service.h
+++ b/src/include/gnunet_psycstore_service.h
@@ -149,9 +149,9 @@ typedef void
149 * In case of a part, the last group generation the slave has access to. 149 * In case of a part, the last group generation the slave has access to.
150 * It has relevance when a larger message have fragments with different 150 * It has relevance when a larger message have fragments with different
151 * group generations. 151 * group generations.
152 * @param rcb 152 * @param result_cb
153 * Callback to call with the result of the storage operation. 153 * Callback to call with the result of the storage operation.
154 * @param rcb_cls 154 * @param cls
155 * Closure for the callback. 155 * Closure for the callback.
156 * 156 *
157 * @return Operation handle that can be used to cancel the operation. 157 * @return Operation handle that can be used to cancel the operation.
@@ -164,8 +164,8 @@ GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
164 uint64_t announced_at, 164 uint64_t announced_at,
165 uint64_t effective_since, 165 uint64_t effective_since,
166 uint64_t group_generation, 166 uint64_t group_generation,
167 GNUNET_PSYCSTORE_ResultCallback rcb, 167 GNUNET_PSYCSTORE_ResultCallback result_cb,
168 void *rcb_cls); 168 void *cls);
169 169
170 170
171/** 171/**
@@ -188,9 +188,9 @@ GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
188 * Group generation of the fragment of the message to test. 188 * Group generation of the fragment of the message to test.
189 * It has relevance if the message consists of multiple fragments with 189 * It has relevance if the message consists of multiple fragments with
190 * different group generations. 190 * different group generations.
191 * @param rcb 191 * @param result_cb
192 * Callback to call with the test result. 192 * Callback to call with the test result.
193 * @param rcb_cls 193 * @param cls
194 * Closure for the callback. 194 * Closure for the callback.
195 * 195 *
196 * @return Operation handle that can be used to cancel the operation. 196 * @return Operation handle that can be used to cancel the operation.
@@ -201,8 +201,8 @@ GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
201 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, 201 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
202 uint64_t message_id, 202 uint64_t message_id,
203 uint64_t group_generation, 203 uint64_t group_generation,
204 GNUNET_PSYCSTORE_ResultCallback rcb, 204 GNUNET_PSYCSTORE_ResultCallback result_cb,
205 void *rcb_cls); 205 void *cls);
206 206
207 207
208/** 208/**
@@ -213,8 +213,8 @@ GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
213 * @param msg Message to store. 213 * @param msg Message to store.
214 * @param psycstore_flags Flags indicating whether the PSYC message contains 214 * @param psycstore_flags Flags indicating whether the PSYC message contains
215 * state modifiers. 215 * state modifiers.
216 * @param rcb Callback to call with the result of the operation. 216 * @param result_cb Callback to call with the result of the operation.
217 * @param rcb_cls Closure for the callback. 217 * @param cls Closure for the callback.
218 * 218 *
219 * @return Handle that can be used to cancel the operation. 219 * @return Handle that can be used to cancel the operation.
220 */ 220 */
@@ -223,8 +223,8 @@ GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h,
223 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 223 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
224 const struct GNUNET_MULTICAST_MessageHeader *msg, 224 const struct GNUNET_MULTICAST_MessageHeader *msg,
225 enum GNUNET_PSYCSTORE_MessageFlags psycstore_flags, 225 enum GNUNET_PSYCSTORE_MessageFlags psycstore_flags,
226 GNUNET_PSYCSTORE_ResultCallback rcb, 226 GNUNET_PSYCSTORE_ResultCallback result_cb,
227 void *rcb_cls); 227 void *cls);
228 228
229 229
230/** 230/**
@@ -303,7 +303,7 @@ GNUNET_PSYCSTORE_fragment_get (struct GNUNET_PSYCSTORE_Handle *h,
303 * Maximum number of fragments to retrieve. 303 * Maximum number of fragments to retrieve.
304 * @param fragment_cb 304 * @param fragment_cb
305 * Callback to call with the retrieved fragments. 305 * Callback to call with the retrieved fragments.
306 * @param rcb 306 * @param result_cb
307 * Callback to call with the result of the operation. 307 * Callback to call with the result of the operation.
308 * @param cls 308 * @param cls
309 * Closure for the callbacks. 309 * Closure for the callbacks.
@@ -316,7 +316,7 @@ GNUNET_PSYCSTORE_fragment_get_latest (struct GNUNET_PSYCSTORE_Handle *h,
316 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, 316 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
317 uint64_t fragment_limit, 317 uint64_t fragment_limit,
318 GNUNET_PSYCSTORE_FragmentCallback fragment_cb, 318 GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
319 GNUNET_PSYCSTORE_ResultCallback rcb, 319 GNUNET_PSYCSTORE_ResultCallback result_cb,
320 void *cls); 320 void *cls);
321 321
322 322
@@ -392,7 +392,7 @@ GNUNET_PSYCSTORE_message_get_latest (struct GNUNET_PSYCSTORE_Handle *h,
392 uint64_t message_limit, 392 uint64_t message_limit,
393 const char *method_prefix, 393 const char *method_prefix,
394 GNUNET_PSYCSTORE_FragmentCallback fragment_cb, 394 GNUNET_PSYCSTORE_FragmentCallback fragment_cb,
395 GNUNET_PSYCSTORE_ResultCallback rcb, 395 GNUNET_PSYCSTORE_ResultCallback result_cb,
396 void *cls); 396 void *cls);
397 397
398 398
@@ -474,9 +474,9 @@ typedef void
474 * Handle for the PSYCstore. 474 * Handle for the PSYCstore.
475 * @param channel_key 475 * @param channel_key
476 * Public key that identifies the channel. 476 * Public key that identifies the channel.
477 * @param ccb 477 * @param counters_cb
478 * Callback to call with the result. 478 * Callback to call with the result.
479 * @param ccb_cls 479 * @param cls
480 * Closure for the @a ccb callback. 480 * Closure for the @a ccb callback.
481 * 481 *
482 * @return Handle that can be used to cancel the operation. 482 * @return Handle that can be used to cancel the operation.
@@ -484,8 +484,8 @@ typedef void
484struct GNUNET_PSYCSTORE_OperationHandle * 484struct GNUNET_PSYCSTORE_OperationHandle *
485GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h, 485GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h,
486 struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 486 struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
487 GNUNET_PSYCSTORE_CountersCallback ccb, 487 GNUNET_PSYCSTORE_CountersCallback counters_cb,
488 void *ccb_cls); 488 void *cls);
489 489
490 490
491/** 491/**
@@ -502,10 +502,10 @@ GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h,
502 * ID of the message that contains the @a modifiers. 502 * ID of the message that contains the @a modifiers.
503 * @param state_delta 503 * @param state_delta
504 * Value of the @e state_delta PSYC header variable of the message. 504 * Value of the @e state_delta PSYC header variable of the message.
505 * @param rcb 505 * @param result_cb
506 * Callback to call with the result of the operation. 506 * Callback to call with the result of the operation.
507 * @param rcb_cls 507 * @param cls
508 * Closure for the @a rcb callback. 508 * Closure for the @a result_cb callback.
509 * 509 *
510 * @return Handle that can be used to cancel the operation. 510 * @return Handle that can be used to cancel the operation.
511 */ 511 */
@@ -514,8 +514,8 @@ GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h,
514 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 514 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
515 uint64_t message_id, 515 uint64_t message_id,
516 uint64_t state_delta, 516 uint64_t state_delta,
517 GNUNET_PSYCSTORE_ResultCallback rcb, 517 GNUNET_PSYCSTORE_ResultCallback result_cb,
518 void *rcb_cls); 518 void *cls);
519 519
520 520
521/** 521/**
@@ -533,9 +533,9 @@ GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h,
533 * Number of elements in the @a modifiers array. 533 * Number of elements in the @a modifiers array.
534 * @param modifiers 534 * @param modifiers
535 * Full state to store. 535 * Full state to store.
536 * @param rcb 536 * @param result_cb
537 * Callback to call with the result of the operation. 537 * Callback to call with the result of the operation.
538 * @param rcb_cls 538 * @param cls
539 * Closure for the callback. 539 * Closure for the callback.
540 * 540 *
541 * @return Handle that can be used to cancel the operation. 541 * @return Handle that can be used to cancel the operation.
@@ -547,8 +547,8 @@ GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h,
547 uint64_t state_hash_message_id, 547 uint64_t state_hash_message_id,
548 size_t modifier_count, 548 size_t modifier_count,
549 const struct GNUNET_PSYC_Modifier *modifiers, 549 const struct GNUNET_PSYC_Modifier *modifiers,
550 GNUNET_PSYCSTORE_ResultCallback rcb, 550 GNUNET_PSYCSTORE_ResultCallback result_cb,
551 void *rcb_cls); 551 void *cls);
552 552
553 553
554 554
@@ -561,9 +561,9 @@ GNUNET_PSYCSTORE_state_sync (struct GNUNET_PSYCSTORE_Handle *h,
561 * Handle for the PSYCstore. 561 * Handle for the PSYCstore.
562 * @param channel_key 562 * @param channel_key
563 * The channel we are interested in. 563 * The channel we are interested in.
564 * @param rcb 564 * @param result_cb
565 * Callback to call with the result of the operation. 565 * Callback to call with the result of the operation.
566 * @param rcb_cls 566 * @param cls
567 * Closure for the callback. 567 * Closure for the callback.
568 * 568 *
569 * @return Handle that can be used to cancel the operation. 569 * @return Handle that can be used to cancel the operation.
@@ -572,8 +572,8 @@ struct GNUNET_PSYCSTORE_OperationHandle *
572GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h, 572GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h,
573 const struct GNUNET_CRYPTO_EddsaPublicKey 573 const struct GNUNET_CRYPTO_EddsaPublicKey
574 *channel_key, 574 *channel_key,
575 GNUNET_PSYCSTORE_ResultCallback rcb, 575 GNUNET_PSYCSTORE_ResultCallback result_cb,
576 void *rcb_cls); 576 void *cls);
577 577
578 578
579/** 579/**
@@ -587,9 +587,9 @@ GNUNET_PSYCSTORE_state_reset (struct GNUNET_PSYCSTORE_Handle *h,
587 * Message ID that contained the state @a hash. 587 * Message ID that contained the state @a hash.
588 * @param hash 588 * @param hash
589 * Hash of the serialized full state. 589 * Hash of the serialized full state.
590 * @param rcb 590 * @param result_cb
591 * Callback to call with the result of the operation. 591 * Callback to call with the result of the operation.
592 * @param rcb_cls 592 * @param cls
593 * Closure for the callback. 593 * Closure for the callback.
594 * 594 *
595 */ 595 */
@@ -598,8 +598,8 @@ GNUNET_PSYCSTORE_state_hash_update (struct GNUNET_PSYCSTORE_Handle *h,
598 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 598 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
599 uint64_t message_id, 599 uint64_t message_id,
600 const struct GNUNET_HashCode *hash, 600 const struct GNUNET_HashCode *hash,
601 GNUNET_PSYCSTORE_ResultCallback rcb, 601 GNUNET_PSYCSTORE_ResultCallback result_cb,
602 void *rcb_cls); 602 void *cls);
603 603
604 604
605/** 605/**
@@ -632,9 +632,9 @@ typedef int
632 * The channel we are interested in. 632 * The channel we are interested in.
633 * @param name 633 * @param name
634 * Name of variable to match, the returned variable might be less specific. 634 * Name of variable to match, the returned variable might be less specific.
635 * @param scb 635 * @param state_cb
636 * Callback to return the matching state variable. 636 * Callback to return the matching state variable.
637 * @param rcb 637 * @param result_cb
638 * Callback to call with the result of the operation. 638 * Callback to call with the result of the operation.
639 * @param cls 639 * @param cls
640 * Closure for the callbacks. 640 * Closure for the callbacks.
@@ -645,8 +645,8 @@ struct GNUNET_PSYCSTORE_OperationHandle *
645GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h, 645GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
646 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 646 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
647 const char *name, 647 const char *name,
648 GNUNET_PSYCSTORE_StateCallback scb, 648 GNUNET_PSYCSTORE_StateCallback state_cb,
649 GNUNET_PSYCSTORE_ResultCallback rcb, 649 GNUNET_PSYCSTORE_ResultCallback result_cb,
650 void *cls); 650 void *cls);
651 651
652 652
@@ -659,9 +659,9 @@ GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
659 * The channel we are interested in. 659 * The channel we are interested in.
660 * @param name_prefix 660 * @param name_prefix
661 * Prefix of state variable names to match. 661 * Prefix of state variable names to match.
662 * @param scb 662 * @param state_cb
663 * Callback to return matching state variables. 663 * Callback to return matching state variables.
664 * @param rcb 664 * @param result_cb
665 * Callback to call with the result of the operation. 665 * Callback to call with the result of the operation.
666 * @param cls 666 * @param cls
667 * Closure for the callbacks. 667 * Closure for the callbacks.
@@ -672,8 +672,8 @@ struct GNUNET_PSYCSTORE_OperationHandle *
672GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h, 672GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h,
673 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 673 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
674 const char *name_prefix, 674 const char *name_prefix,
675 GNUNET_PSYCSTORE_StateCallback scb, 675 GNUNET_PSYCSTORE_StateCallback state_cb,
676 GNUNET_PSYCSTORE_ResultCallback rcb, 676 GNUNET_PSYCSTORE_ResultCallback result_cb,
677 void *cls); 677 void *cls);
678 678
679 679
@@ -682,7 +682,7 @@ GNUNET_PSYCSTORE_state_get_prefix (struct GNUNET_PSYCSTORE_Handle *h,
682 * 682 *
683 * @param op Handle for the operation to cancel. 683 * @param op Handle for the operation to cancel.
684 */ 684 */
685void 685int
686GNUNET_PSYCSTORE_operation_cancel (struct GNUNET_PSYCSTORE_OperationHandle *op); 686GNUNET_PSYCSTORE_operation_cancel (struct GNUNET_PSYCSTORE_OperationHandle *op);
687 687
688 688