aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index 3c01ab480..ceb8290c2 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -287,6 +287,26 @@ typedef int
287 void *data); 287 void *data);
288 288
289 289
290
291/**
292 * Flags for transmitting messages to a channel by the master.
293 */
294enum GNUNET_PSYC_MasterTransmitFlags
295{
296 /**
297 * Whether this message should reset the channel state,
298 * i.e. remove all previously stored state variables.
299 */
300 GNUNET_PSYC_MASTER_TRANSMIT_RESET_STATE = 1 << 0,
301
302 /**
303 * Whether we need to increment the group generation counter after
304 * transmitting this message.
305 */
306 GNUNET_PSYC_MASTER_TRANSMIT_INC_GROUP_GEN = 1 << 1,
307};
308
309
290/** 310/**
291 * Handle for a pending PSYC transmission operation. 311 * Handle for a pending PSYC transmission operation.
292 */ 312 */
@@ -302,11 +322,7 @@ struct GNUNET_PSYC_MasterTransmitHandle;
302 * for the message, or NULL. 322 * for the message, or NULL.
303 * @param notify Function to call to obtain the arguments. 323 * @param notify Function to call to obtain the arguments.
304 * @param notify_cls Closure for @a notify. 324 * @param notify_cls Closure for @a notify.
305 * @param reset_state #GNUNET_YES if this message should reset the channel 325 * @param flags Flags for the message being transmitted.
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.
310 * @return Transmission handle, NULL on error (i.e. more than one request queued). 326 * @return Transmission handle, NULL on error (i.e. more than one request queued).
311 */ 327 */
312struct GNUNET_PSYC_MasterTransmitHandle * 328struct GNUNET_PSYC_MasterTransmitHandle *
@@ -315,8 +331,7 @@ GNUNET_PSYC_master_transmit (struct GNUNET_PSYC_Master *master,
315 const struct GNUNET_ENV_Environment *env, 331 const struct GNUNET_ENV_Environment *env,
316 GNUNET_PSYC_MasterReadyNotify notify, 332 GNUNET_PSYC_MasterReadyNotify notify,
317 void *notify_cls, 333 void *notify_cls,
318 int reset_state, 334 enum GNUNET_PSYC_TransmitFlags flags);
319 int increment_group_generation);
320 335
321 336
322/** 337/**