diff options
author | Gabor X Toth <*@tg-x.net> | 2013-07-12 08:47:10 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-07-12 08:47:10 +0000 |
commit | 15b4d21a45db18ce0384d1c42c83459ba2ed24f8 (patch) | |
tree | a70ebcbc24dca219f1a7df943dc52c0fd706c555 /src/include/gnunet_psycstore_service.h | |
parent | 57be99113715a6023164633556ea1de50ceae6e1 (diff) | |
download | gnunet-15b4d21a45db18ce0384d1c42c83459ba2ed24f8.tar.gz gnunet-15b4d21a45db18ce0384d1c42c83459ba2ed24f8.zip |
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
Diffstat (limited to 'src/include/gnunet_psycstore_service.h')
-rw-r--r-- | src/include/gnunet_psycstore_service.h | 23 |
1 files changed, 4 insertions, 19 deletions
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 @@ | |||
21 | /** | 21 | /** |
22 | * @file include/gnunet_psycstore_service.h | 22 | * @file include/gnunet_psycstore_service.h |
23 | * @brief PSYCstore service; implements persistent storage for the PSYC service | 23 | * @brief PSYCstore service; implements persistent storage for the PSYC service |
24 | * @author tg(x) | 24 | * @author Gabor X Toth |
25 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
26 | */ | 26 | */ |
27 | #ifndef GNUNET_PSYCSTORE_SERVICE_H | 27 | #ifndef GNUNET_PSYCSTORE_SERVICE_H |
@@ -91,6 +91,7 @@ typedef void (*GNUNET_PSYCSTORE_ContinuationCallback)(void *cls, | |||
91 | * @param h Handle for the PSYCstore. | 91 | * @param h Handle for the PSYCstore. |
92 | * @param channel_id ID of the channel where the event happened. | 92 | * @param channel_id ID of the channel where the event happened. |
93 | * @param message_id ID of the message in which this event was announced. | 93 | * @param message_id ID of the message in which this event was announced. |
94 | * @param group_generation Generation of the group when this event was announced. | ||
94 | * @param peer Identity of joining/leaving peer. | 95 | * @param peer Identity of joining/leaving peer. |
95 | * @param did_join #GNUNET_YES on join, #GNUNET_NO on leave. | 96 | * @param did_join #GNUNET_YES on join, #GNUNET_NO on leave. |
96 | * @param ccb Callback to call with the result of the storage operation. | 97 | * @param ccb Callback to call with the result of the storage operation. |
@@ -102,6 +103,7 @@ struct GNUNET_PSYCSTORE_OperationHandle * | |||
102 | GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, | 103 | GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, |
103 | const struct GNUNET_HashCode *channel_id, | 104 | const struct GNUNET_HashCode *channel_id, |
104 | uint64_t message_id, | 105 | uint64_t message_id, |
106 | uint64_t group_generation, | ||
105 | const struct GNUNET_PeerIdentity *peer, | 107 | const struct GNUNET_PeerIdentity *peer, |
106 | int did_join, | 108 | int did_join, |
107 | GNUNET_PSYCSTORE_ContinuationCallback ccb, | 109 | GNUNET_PSYCSTORE_ContinuationCallback ccb, |
@@ -169,7 +171,7 @@ typedef void (*GNUNET_PSYCSTORE_MessageResultCallback)(void *cls, | |||
169 | * | 171 | * |
170 | * @param h Handle for the PSYCstore. | 172 | * @param h Handle for the PSYCstore. |
171 | * @param channel_id The channel we are interested in. | 173 | * @param channel_id The channel we are interested in. |
172 | * @param message_id Message ID to check. | 174 | * @param message_id Message ID to check. Use 0 to get the latest message. |
173 | * @param rcb Callback to call with the result of the operation. | 175 | * @param rcb Callback to call with the result of the operation. |
174 | * @param rcb_cls Closure for the callback. | 176 | * @param rcb_cls Closure for the callback. |
175 | * | 177 | * |
@@ -184,23 +186,6 @@ GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h, | |||
184 | 186 | ||
185 | 187 | ||
186 | /** | 188 | /** |
187 | * Get latest message sent to a channel. | ||
188 | * | ||
189 | * @param h Handle for the PSYCstore. | ||
190 | * @param channel_id The channel we are interested in. | ||
191 | * @param rcb Callback to call with the result of the operation. | ||
192 | * @param rcb_cls Closure for the callback. | ||
193 | * | ||
194 | * @return Handle that can be used to cancel the operation. | ||
195 | */ | ||
196 | struct GNUNET_PSYCSTORE_OperationHandle * | ||
197 | GNUNET_PSYCSTORE_message_get_latest (struct GNUNET_PSYCSTORE_Handle *h, | ||
198 | const struct GNUNET_HashCode *channel_id, | ||
199 | GNUNET_PSYCSTORE_MessageResultCallback rcb, | ||
200 | void *rcb_cls); | ||
201 | |||
202 | |||
203 | /** | ||
204 | * Store a state variable. | 189 | * Store a state variable. |
205 | * | 190 | * |
206 | * @param h Handle for the PSYCstore. | 191 | * @param h Handle for the PSYCstore. |