diff options
author | Gabor X Toth <*@tg-x.net> | 2015-07-18 00:03:06 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2015-07-18 00:03:06 +0000 |
commit | d38544730123a1f365ef287a7e88060d97b266b7 (patch) | |
tree | e66f5ee143adde1a5206f50bbbdd00a8a179fb81 /src/include/gnunet_psycstore_plugin.h | |
parent | 2275976cf61565bde4f17e8c2c0bc0d359541ac4 (diff) | |
download | gnunet-d38544730123a1f365ef287a7e88060d97b266b7.tar.gz gnunet-d38544730123a1f365ef287a7e88060d97b266b7.zip |
psyc/store: apply state modifiers
Diffstat (limited to 'src/include/gnunet_psycstore_plugin.h')
-rw-r--r-- | src/include/gnunet_psycstore_plugin.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/include/gnunet_psycstore_plugin.h b/src/include/gnunet_psycstore_plugin.h index 12f4e692f..b0bbfd819 100644 --- a/src/include/gnunet_psycstore_plugin.h +++ b/src/include/gnunet_psycstore_plugin.h | |||
@@ -240,9 +240,10 @@ struct GNUNET_PSYCSTORE_PluginFunctions | |||
240 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | 240 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR |
241 | */ | 241 | */ |
242 | int | 242 | int |
243 | (*state_modify_set) (void *cls, | 243 | (*state_modify_op) (void *cls, |
244 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | 244 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
245 | const char *name, const void *value, size_t value_size); | 245 | enum GNUNET_ENV_Operator op, |
246 | const char *name, const void *value, size_t value_size); | ||
246 | 247 | ||
247 | 248 | ||
248 | /** | 249 | /** |
@@ -270,20 +271,20 @@ struct GNUNET_PSYCSTORE_PluginFunctions | |||
270 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key); | 271 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key); |
271 | 272 | ||
272 | /** | 273 | /** |
273 | * Set the value of a state variable while synchronizing state. | 274 | * Assign value of a state variable while synchronizing state. |
274 | * | 275 | * |
275 | * The state synchronization process is started with state_sync_begin(), | 276 | * The state synchronization process is started with state_sync_begin(), |
276 | * which is followed by one or more calls to this function, | 277 | * which is followed by one or more calls to this function, |
277 | * and finished with state_sync_end(). | 278 | * and finished using state_sync_end(). |
278 | * | 279 | * |
279 | * @see GNUNET_PSYCSTORE_state_sync() | 280 | * @see GNUNET_PSYCSTORE_state_sync() |
280 | * | 281 | * |
281 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | 282 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR |
282 | */ | 283 | */ |
283 | int | 284 | int |
284 | (*state_sync_set) (void *cls, | 285 | (*state_sync_assign) (void *cls, |
285 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | 286 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
286 | const char *name, const void *value, size_t value_size); | 287 | const char *name, const void *value, size_t value_size); |
287 | 288 | ||
288 | 289 | ||
289 | /** | 290 | /** |
@@ -296,7 +297,8 @@ struct GNUNET_PSYCSTORE_PluginFunctions | |||
296 | int | 297 | int |
297 | (*state_sync_end) (void *cls, | 298 | (*state_sync_end) (void *cls, |
298 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | 299 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
299 | uint64_t message_id); | 300 | uint64_t max_state_message_id, |
301 | uint64_t state_hash_message_id); | ||
300 | 302 | ||
301 | 303 | ||
302 | /** | 304 | /** |