PSYC: historic message flag
authorGabor X Toth <*@tg-x.net>
Mon, 15 Jul 2013 09:13:19 +0000 (09:13 +0000)
committerGabor X Toth <*@tg-x.net>
Mon, 15 Jul 2013 09:13:19 +0000 (09:13 +0000)
src/include/gnunet_psyc_service.h
src/include/gnunet_social_service.h

index 8016ea4985381aeb2daa8f151588aab6b79c6a72..d35c68f7e5c0cbbcf76e072a2ab038f1c438ddb8 100644 (file)
@@ -101,17 +101,24 @@ enum GNUNET_PSYC_MessageFlags
   /**
    * First fragment of a message.
    */
-  GNUNET_PSYC_MESSAGE_FIRST_FRAGMENT = GNUNET_MULTICAST_MESSAGE_FIRST_FRAGMENT,
+  GNUNET_PSYC_MESSAGE_FIRST_FRAGMENT = 1 << 0,
 
   /**
    * Last fragment of a message.
    */
-  GNUNET_PSYC_MESSAGE_LAST_FRAGMENT = GNUNET_MULTICAST_MESSAGE_LAST_FRAGMENT,
+  GNUNET_PSYC_MESSAGE_LAST_FRAGMENT = 1 << 1,
 
   /** 
    * OR'ed flags if message is not fragmented.
    */
-  GNUNET_PSYC_MESSAGE_NOT_FRAGMENTED = GNUNET_MULTICAST_MESSAGE_NOT_FRAGMENTED
+  GNUNET_PSYC_MESSAGE_NOT_FRAGMENTED
+    = GNUNET_PSYC_MESSAGE_FIRST_FRAGMENT
+    | GNUNET_PSYC_MESSAGE_LAST_FRAGMENT,
+
+  /**
+   * Historic message, retrieved from PSYCstore.
+   */
+  GNUNET_PSYC_MESSAGE_HISTORIC = 1 << 2
 };
 
 
index 1e9dfc4596c7d32859e1b4cfd427d3ade462be4a..b0409d4b2679ebd737832cbba9abaab933b2c6ce 100644 (file)
@@ -534,7 +534,7 @@ struct GNUNET_SOCIAL_TalkRequest;
  * @param place Place where we want to talk to the host.
  * @param method_name Method to invoke on the host.
  * @param notify Function to use to get the payload for the method.
- * @param notifyv_cls Closure for @a notify.
+ * @param notify_cls Closure for @a notify.
  * @return NULL if we are already trying to talk to the host,
  *         otherwise handle to cancel the request.
  */
@@ -572,8 +572,10 @@ struct GNUNET_SOCIAL_HistoryLesson;
  * @param start_message_id First historic message we are interested in.
  * @param end_message_id Last historic message we are interested in (inclusive).
  * @param slicer Slicer to use to process history.
+ *               FIXME: Needed? Could use the slicer of the place instead,
+ *                      receiving messages with the HISTORIC flag set.
  * @return Handle to abort history lesson, never NULL (multiple lessons
- *        at the same time are allowed).
+ *         at the same time are allowed).
  */
 struct GNUNET_SOCIAL_HistoryLesson *
 GNUNET_SOCIAL_place_get_history (struct GNUNET_SOCIAL_Place *place,