aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-09-16 04:59:05 +0000
committerGabor X Toth <*@tg-x.net>2013-09-16 04:59:05 +0000
commitf78e9753a91497f1deb5e20d10868c27ab4a6013 (patch)
treef49653367e00fd4b611ec6ec281144d4568bd111 /src/include/gnunet_psyc_service.h
parentfbae7143d25a258b9dfabefa9ca3956e9228cb0e (diff)
downloadgnunet-f78e9753a91497f1deb5e20d10868c27ab4a6013.tar.gz
gnunet-f78e9753a91497f1deb5e20d10868c27ab4a6013.zip
PSYCstore service and API implementation
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index c86e5048b..e849cffd9 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -701,29 +701,6 @@ struct GNUNET_PSYC_StateQuery;
701 701
702 702
703/** 703/**
704 * Return all channel state variables whose name matches a given prefix.
705 *
706 * A name matches if it starts with the given @a name_prefix, thus requesting the
707 * empty prefix ("") will match all values; requesting "_a_b" will also return
708 * values stored under "_a_b_c".
709 *
710 * The @a state_cb is invoked on all matching state variables asynchronously, as
711 * the state is stored in and retrieved from the PSYCstore,
712 *
713 * @param channel Channel handle.
714 * @param name_prefix Prefix of the state variable name to match.
715 * @param cb Function to call with the matching state variables.
716 * @param cb_cls Closure for the callbacks.
717 * @return Handle that can be used to cancel the query operation.
718 */
719struct GNUNET_PSYC_StateQuery *
720GNUNET_PSYC_channel_state_get_all (struct GNUNET_PSYC_Channel *channel,
721 const char *name_prefix,
722 GNUNET_PSYC_StateCallback cb,
723 void *cb_cls);
724
725
726/**
727 * Retrieve the best matching channel state variable. 704 * Retrieve the best matching channel state variable.
728 * 705 *
729 * If the requested variable name is not present in the state, the nearest 706 * If the requested variable name is not present in the state, the nearest
@@ -746,6 +723,29 @@ GNUNET_PSYC_channel_state_get (struct GNUNET_PSYC_Channel *channel,
746 723
747 724
748/** 725/**
726 * Return all channel state variables whose name matches a given prefix.
727 *
728 * A name matches if it starts with the given @a name_prefix, thus requesting the
729 * empty prefix ("") will match all values; requesting "_a_b" will also return
730 * values stored under "_a_b_c".
731 *
732 * The @a state_cb is invoked on all matching state variables asynchronously, as
733 * the state is stored in and retrieved from the PSYCstore,
734 *
735 * @param channel Channel handle.
736 * @param name_prefix Prefix of the state variable name to match.
737 * @param cb Function to call with the matching state variables.
738 * @param cb_cls Closure for the callbacks.
739 * @return Handle that can be used to cancel the query operation.
740 */
741struct GNUNET_PSYC_StateQuery *
742GNUNET_PSYC_channel_state_get_prefix (struct GNUNET_PSYC_Channel *channel,
743 const char *name_prefix,
744 GNUNET_PSYC_StateCallback cb,
745 void *cb_cls);
746
747
748/**
749 * Cancel a state query operation. 749 * Cancel a state query operation.
750 * 750 *
751 * @param query Handle for the operation to cancel. 751 * @param query Handle for the operation to cancel.