aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-08-12 16:57:49 +0000
committerGabor X Toth <*@tg-x.net>2013-08-12 16:57:49 +0000
commit544201a6bb7ec4480619f576f388d84883895de0 (patch)
tree8bb90aa95bcf2551807fe154bf3bb6b3dc34ff20 /src/include/gnunet_psyc_service.h
parent99206c12844f13722688589530244ac7c56aab63 (diff)
downloadgnunet-544201a6bb7ec4480619f576f388d84883895de0.tar.gz
gnunet-544201a6bb7ec4480619f576f388d84883895de0.zip
psyc/store: added effective_since msg ID for specifying when a membership change went into effect; psyc/social: added state_reset/clear_objects flag for message sending functions
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index 569342107..3c01ab480 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -297,22 +297,26 @@ struct GNUNET_PSYC_MasterTransmitHandle;
297 * Send a message to call a method to all members in the PSYC channel. 297 * Send a message to call a method to all members in the PSYC channel.
298 * 298 *
299 * @param master Handle to the PSYC channel. 299 * @param master Handle to the PSYC channel.
300 * @param increment_group_generation #GNUNET_YES if we need to increment
301 * the group generation counter after transmitting this message.
302 * @param method_name Which method should be invoked. 300 * @param method_name Which method should be invoked.
303 * @param env Environment containing state operations and transient variables 301 * @param env Environment containing state operations and transient variables
304 * for the message, or NULL. 302 * for the message, or NULL.
305 * @param notify Function to call to obtain the arguments. 303 * @param notify Function to call to obtain the arguments.
306 * @param notify_cls Closure for @a notify. 304 * @param notify_cls Closure for @a notify.
305 * @param reset_state #GNUNET_YES if this message should reset the channel
306 * state, i.e. remove all previously stored state variables.
307 * #GNUNET_NO to keep the state as is.
308 * @param increment_group_generation #GNUNET_YES if we need to increment
309 * the group generation counter after transmitting this message.
307 * @return Transmission handle, NULL on error (i.e. more than one request queued). 310 * @return Transmission handle, NULL on error (i.e. more than one request queued).
308 */ 311 */
309struct GNUNET_PSYC_MasterTransmitHandle * 312struct GNUNET_PSYC_MasterTransmitHandle *
310GNUNET_PSYC_master_transmit (struct GNUNET_PSYC_Master *master, 313GNUNET_PSYC_master_transmit (struct GNUNET_PSYC_Master *master,
311 int increment_group_generation,
312 const char *method_name, 314 const char *method_name,
313 const struct GNUNET_ENV_Environment *env, 315 const struct GNUNET_ENV_Environment *env,
314 GNUNET_PSYC_MasterReadyNotify notify, 316 GNUNET_PSYC_MasterReadyNotify notify,
315 void *notify_cls); 317 void *notify_cls,
318 int reset_state,
319 int increment_group_generation);
316 320
317 321
318/** 322/**
@@ -495,12 +499,14 @@ GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slave);
495 * 499 *
496 * @param channel Channel handle. 500 * @param channel Channel handle.
497 * @param slave_key Identity of channel slave to add. 501 * @param slave_key Identity of channel slave to add.
498 * @param message_id Message ID for the message that changed the membership. 502 * @param announced_at ID of the message that announced the membership change.
503 * @param effective_since Addition of slave is in effect since this message ID.
499 */ 504 */
500void 505void
501GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel, 506GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel,
502 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 507 const struct GNUNET_CRYPTO_EccPublicKey *slave_key,
503 uint64_t message_id); 508 uint64_t announced_at,
509 uint64_t effective_since);
504 510
505 511
506/** 512/**
@@ -522,12 +528,14 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel,
522 * 528 *
523 * @param channel Channel handle. 529 * @param channel Channel handle.
524 * @param slave_key Identity of channel slave to remove. 530 * @param slave_key Identity of channel slave to remove.
525 * @param message_id Message ID for the message that changed the membership. 531 * @param announced_at ID of the message that announced the membership change.
532 * @param effective_since Removal of slave is in effect since this message ID.
526 */ 533 */
527void 534void
528GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel, 535GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel,
529 const struct GNUNET_CRYPTO_EccPublicKey *slave_key, 536 const struct GNUNET_CRYPTO_EccPublicKey *slave_key,
530 uint64_t message_id); 537 uint64_t announced_at,
538 uint64_t effective_since);
531 539
532 540
533/** 541/**