aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psycstore_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-07-26 12:56:05 +0000
committerGabor X Toth <*@tg-x.net>2013-07-26 12:56:05 +0000
commit61b42bb57a1f56e12fff7afe63c959a300aee815 (patch)
treebda60a73d590fa7b29c7fdc6cec3c768cc6feb28 /src/include/gnunet_psycstore_service.h
parentfff16aa4a56352140de644254d748edafadaa16d (diff)
downloadgnunet-61b42bb57a1f56e12fff7afe63c959a300aee815.tar.gz
gnunet-61b42bb57a1f56e12fff7afe63c959a300aee815.zip
psycstore: state_modify()
Diffstat (limited to 'src/include/gnunet_psycstore_service.h')
-rw-r--r--src/include/gnunet_psycstore_service.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/include/gnunet_psycstore_service.h b/src/include/gnunet_psycstore_service.h
index e074c6bf6..864b95105 100644
--- a/src/include/gnunet_psycstore_service.h
+++ b/src/include/gnunet_psycstore_service.h
@@ -36,6 +36,7 @@ extern "C"
36#endif 36#endif
37 37
38#include "gnunet_util_lib.h" 38#include "gnunet_util_lib.h"
39#include "gnunet_env_lib.h"
39 40
40/** 41/**
41 * Version number of GNUnet PSYCstore API. 42 * Version number of GNUnet PSYCstore API.
@@ -204,10 +205,17 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
204 205
205 206
206/** 207/**
207 * Store a state variable. 208 * Modify the channel state.
209 *
210 * Applies the operation to the current channel state.
211 *
212 * An error is returned if there are missing messages containing state
213 * operations before the current one.
208 * 214 *
209 * @param h Handle for the PSYCstore. 215 * @param h Handle for the PSYCstore.
210 * @param channel_id The channel we are interested in. 216 * @param channel_id The channel we are interested in.
217 * @param message_id ID of the message that contains this state modifier.
218 * @param oper Operation to perform.
211 * @param name Name of variable. 219 * @param name Name of variable.
212 * @param value_size Size of @a value. 220 * @param value_size Size of @a value.
213 * @param value Value of variable. 221 * @param value Value of variable.
@@ -217,13 +225,15 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
217 * @return Handle that can be used to cancel the operation. 225 * @return Handle that can be used to cancel the operation.
218 */ 226 */
219struct GNUNET_PSYCSTORE_OperationHandle * 227struct GNUNET_PSYCSTORE_OperationHandle *
220GNUNET_PSYCSTORE_state_set (struct GNUNET_PSYCSTORE_Handle *h, 228GNUNET_PSYCSTORE_state_modify (struct GNUNET_PSYCSTORE_Handle *h,
221 const struct GNUNET_HashCode *channel_id, 229 const struct GNUNET_HashCode *channel_id,
222 const char *name, 230 uint64_t message_id,
223 size_t value_size, 231 enum GNUNET_ENV_Operator *oper,
224 const void *value, 232 const char *name,
225 GNUNET_PSYCSTORE_ContinuationCallback ccb, 233 size_t value_size,
226 void *ccb_cls); 234 const void *value,
235 GNUNET_PSYCSTORE_ContinuationCallback ccb,
236 void *ccb_cls);
227 237
228 238
229/** 239/**