gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28544 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r28544 - gnunet/src/include
Date: Mon, 12 Aug 2013 19:45:22 +0200

Author: tg
Date: 2013-08-12 19:45:22 +0200 (Mon, 12 Aug 2013)
New Revision: 28544

Modified:
   gnunet/src/include/gnunet_multicast_service.h
   gnunet/src/include/gnunet_psyc_service.h
   gnunet/src/include/gnunet_social_service.h
Log:
psyc/social: transmit/announcement flags; multicast: re-added sig. purpose

Modified: gnunet/src/include/gnunet_multicast_service.h
===================================================================
--- gnunet/src/include/gnunet_multicast_service.h       2013-08-12 16:57:49 UTC 
(rev 28543)
+++ gnunet/src/include/gnunet_multicast_service.h       2013-08-12 17:45:22 UTC 
(rev 28544)
@@ -171,6 +171,11 @@
   struct GNUNET_CRYPTO_EccSignature signature;
 
   /** 
+   * Purpose for the signature and size of the signed data.
+   */
+  struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
+  /** 
    * Number of the message fragment, monotonically increasing.
    */
   uint64_t fragment_id GNUNET_PACKED;
@@ -244,6 +249,11 @@
   struct GNUNET_CRYPTO_EccSignature signature;
 
   /** 
+   * Purpose for the signature and size of the signed data.
+   */
+  struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
+  /** 
    * Number of the request fragment, monotonically increasing.
    */
   uint64_t fragment_id GNUNET_PACKED;
@@ -291,6 +301,11 @@
    */
   struct GNUNET_CRYPTO_EccSignature signature;
 
+  /** 
+   * Purpose for the signature and size of the signed data.
+   */
+  struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
   /**
    * Public key of the target group.
    */

Modified: gnunet/src/include/gnunet_psyc_service.h
===================================================================
--- gnunet/src/include/gnunet_psyc_service.h    2013-08-12 16:57:49 UTC (rev 
28543)
+++ gnunet/src/include/gnunet_psyc_service.h    2013-08-12 17:45:22 UTC (rev 
28544)
@@ -287,6 +287,26 @@
                                  void *data);
 
 
+
+/**
+ * Flags for transmitting messages to a channel by the master.
+ */
+enum GNUNET_PSYC_MasterTransmitFlags
+{
+  /** 
+   * Whether this message should reset the channel state,
+   * i.e. remove all previously stored state variables.
+   */
+  GNUNET_PSYC_MASTER_TRANSMIT_RESET_STATE = 1 << 0,
+
+  /** 
+   * Whether we need to increment the group generation counter after
+   * transmitting this message.
+   */
+  GNUNET_PSYC_MASTER_TRANSMIT_INC_GROUP_GEN = 1 << 1,
+};
+
+
 /** 
  * Handle for a pending PSYC transmission operation.
  */
@@ -302,11 +322,7 @@
  *            for the message, or NULL.
  * @param notify Function to call to obtain the arguments.
  * @param notify_cls Closure for @a notify.
- * @param reset_state #GNUNET_YES if this message should reset the channel
- *        state, i.e. remove all previously stored state variables.
- *        #GNUNET_NO to keep the state as is.
- * @param increment_group_generation #GNUNET_YES if we need to increment
- *        the group generation counter after transmitting this message.
+ * @param flags Flags for the message being transmitted.
  * @return Transmission handle, NULL on error (i.e. more than one request 
queued).
  */
 struct GNUNET_PSYC_MasterTransmitHandle *
@@ -315,8 +331,7 @@
                              const struct GNUNET_ENV_Environment *env,
                              GNUNET_PSYC_MasterReadyNotify notify,
                              void *notify_cls,
-                             int reset_state,
-                             int increment_group_generation);
+                             enum GNUNET_PSYC_TransmitFlags flags);
 
 
 /** 

Modified: gnunet/src/include/gnunet_social_service.h
===================================================================
--- gnunet/src/include/gnunet_social_service.h  2013-08-12 16:57:49 UTC (rev 
28543)
+++ gnunet/src/include/gnunet_social_service.h  2013-08-12 17:45:22 UTC (rev 
28544)
@@ -331,6 +331,21 @@
                               GNUNET_TIME_Relative expiration_time);
 
 
+/**
+ * Flags for announcements in a home.
+ */
+enum GNUNET_PSYC_AnnouncementFlags
+{
+  /** 
+   * Whether this announcement removes all objects from the home.
+   * 
+   * New objects can be still added to the now empty home using the @e env
+   * parameter of the same announcement.
+   */
+  GNUNET_SOCIAL_ANNOUNCEMENT_CLEAR_OBJECTS = 1 << 0,
+};
+
+
 /** 
  * Handle for an announcement request.
  */
@@ -349,8 +364,7 @@
  *        objects of the home, or NULL.
  * @param notify Function to call to get the payload of the announcement.
  * @param notify_cls Closure for @a notify.
- * @param clear_objects #GNUNET_YES to remove all objects from the home, 
#GNUNET_NO otherwise.
- *        New objects can be added to the now empty home using the @a env 
parameter.
+ * @param flags Flags for this announcement.
  * @return NULL on error (announcement already in progress?).
  */
 struct GNUNET_SOCIAL_Announcement *
@@ -359,7 +373,7 @@
                              const struct GNUNET_ENV_Environment *env,
                              GNUNET_CONNECTION_TransmitReadyNotify notify,
                              void *notify_cls,
-                             int clear_objects);
+                             GNUNET_SOCIAL_AnnouncementFlags flags);
 
 
 /** 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]