From 3b1199eb8f4a3319a13d34878a956f16c66a5b19 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Mon, 15 Jul 2013 09:13:19 +0000 Subject: [PATCH] PSYC: historic message flag --- src/include/gnunet_psyc_service.h | 13 ++++++++++--- src/include/gnunet_social_service.h | 6 ++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h index 8016ea498..d35c68f7e 100644 --- a/src/include/gnunet_psyc_service.h +++ b/src/include/gnunet_psyc_service.h @@ -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 }; diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h index 1e9dfc459..b0409d4b2 100644 --- a/src/include/gnunet_social_service.h +++ b/src/include/gnunet_social_service.h @@ -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, -- 2.25.1