aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_messenger_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_messenger_service.h')
-rw-r--r--src/include/gnunet_messenger_service.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/include/gnunet_messenger_service.h b/src/include/gnunet_messenger_service.h
index ecd856eb9..5d7155a3d 100644
--- a/src/include/gnunet_messenger_service.h
+++ b/src/include/gnunet_messenger_service.h
@@ -499,6 +499,7 @@ struct GNUNET_MESSENGER_Message
499 499
500/** 500/**
501 * Enum for the different supported flags used by message handling 501 * Enum for the different supported flags used by message handling
502 * Compatible flags can be OR'ed together.
502 */ 503 */
503enum GNUNET_MESSENGER_MessageFlags 504enum GNUNET_MESSENGER_MessageFlags
504{ 505{
@@ -508,9 +509,14 @@ enum GNUNET_MESSENGER_MessageFlags
508 GNUNET_MESSENGER_FLAG_NONE = 0, 509 GNUNET_MESSENGER_FLAG_NONE = 0,
509 510
510 /** 511 /**
512 * The sent flag. The flag indicates that the message was sent by the client.
513 */
514 GNUNET_MESSENGER_FLAG_SENT = 1,
515
516 /**
511 * The private flag. The flag indicates that the message was privately encrypted. 517 * The private flag. The flag indicates that the message was privately encrypted.
512 */ 518 */
513 GNUNET_MESSENGER_FLAG_PRIVATE = 1, 519 GNUNET_MESSENGER_FLAG_PRIVATE = 2,
514}; 520};
515 521
516/** 522/**
@@ -526,8 +532,8 @@ typedef void
526/** 532/**
527 * Method called whenever a message is sent or received from a <i>room</i>. 533 * Method called whenever a message is sent or received from a <i>room</i>.
528 * 534 *
529 * The flag <i>private_message</i> will be #GNUNET_YES if a message was 535 * The <i>flags</i> will indicate with a bitmask if a message was
530 * received privately, otherwise #GNUNET_NO. 536 * received privately or if the message was sent by the client.
531 * 537 *
532 * @param[in/out] cls Closure from #GNUNET_MESSENGER_connect 538 * @param[in/out] cls Closure from #GNUNET_MESSENGER_connect
533 * @param[in] room Room handle 539 * @param[in] room Room handle