From 15b4d21a45db18ce0384d1c42c83459ba2ed24f8 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Fri, 12 Jul 2013 08:47:10 +0000 Subject: PSYC APIs: added missing args and functions, more consistent naming - multicast: origin arg for join; s/leave/part/g - psyc: origin arg for join; join/part callbacks - social: enter2, home_advertise, away - psycstore/social: get latest historic message using ID 0 - added PSYC lib --- src/include/gnunet_psycstore_service.h | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'src/include/gnunet_psycstore_service.h') diff --git a/src/include/gnunet_psycstore_service.h b/src/include/gnunet_psycstore_service.h index b7df5883a..46034dae6 100644 --- a/src/include/gnunet_psycstore_service.h +++ b/src/include/gnunet_psycstore_service.h @@ -21,7 +21,7 @@ /** * @file include/gnunet_psycstore_service.h * @brief PSYCstore service; implements persistent storage for the PSYC service - * @author tg(x) + * @author Gabor X Toth * @author Christian Grothoff */ #ifndef GNUNET_PSYCSTORE_SERVICE_H @@ -91,6 +91,7 @@ typedef void (*GNUNET_PSYCSTORE_ContinuationCallback)(void *cls, * @param h Handle for the PSYCstore. * @param channel_id ID of the channel where the event happened. * @param message_id ID of the message in which this event was announced. + * @param group_generation Generation of the group when this event was announced. * @param peer Identity of joining/leaving peer. * @param did_join #GNUNET_YES on join, #GNUNET_NO on leave. * @param ccb Callback to call with the result of the storage operation. @@ -102,6 +103,7 @@ struct GNUNET_PSYCSTORE_OperationHandle * GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, const struct GNUNET_HashCode *channel_id, uint64_t message_id, + uint64_t group_generation, const struct GNUNET_PeerIdentity *peer, int did_join, GNUNET_PSYCSTORE_ContinuationCallback ccb, @@ -169,7 +171,7 @@ typedef void (*GNUNET_PSYCSTORE_MessageResultCallback)(void *cls, * * @param h Handle for the PSYCstore. * @param channel_id The channel we are interested in. - * @param message_id Message ID to check. + * @param message_id Message ID to check. Use 0 to get the latest message. * @param rcb Callback to call with the result of the operation. * @param rcb_cls Closure for the callback. * @@ -183,23 +185,6 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, void *rcb_cls); -/** - * Get latest message sent to a channel. - * - * @param h Handle for the PSYCstore. - * @param channel_id The channel we are interested in. - * @param rcb Callback to call with the result of the operation. - * @param rcb_cls Closure for the callback. - * - * @return Handle that can be used to cancel the operation. - */ -struct GNUNET_PSYCSTORE_OperationHandle * -GNUNET_PSYCSTORE_message_get_latest (struct GNUNET_PSYCSTORE_Handle *h, - const struct GNUNET_HashCode *channel_id, - GNUNET_PSYCSTORE_MessageResultCallback rcb, - void *rcb_cls); - - /** * Store a state variable. * -- cgit v1.2.3