aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2015-08-28 13:33:43 +0000
committerGabor X Toth <*@tg-x.net>2015-08-28 13:33:43 +0000
commit38963d1e81332032e0ac774f4f2c6b804c38802a (patch)
treece33b979e47fe332c7c744744d60077a7e1fefee /src/include/gnunet_psyc_service.h
parentb4fa14499c64140273850569247abda687803053 (diff)
downloadgnunet-38963d1e81332032e0ac774f4f2c6b804c38802a.tar.gz
gnunet-38963d1e81332032e0ac774f4f2c6b804c38802a.zip
psyc/social: get state from psycstore
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index 92397ec2e..1346e77c7 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -220,7 +220,8 @@ struct GNUNET_PSYC_Message
220/** 220/**
221 * Header of a PSYC message. 221 * Header of a PSYC message.
222 * 222 *
223 * Only present when receiving a message. 223 * The PSYC service adds this when delivering the message to local clients,
224 * not present on the multicast layer.
224 */ 225 */
225struct GNUNET_PSYC_MessageHeader 226struct GNUNET_PSYC_MessageHeader
226{ 227{
@@ -1193,17 +1194,30 @@ GNUNET_PSYC_channel_history_replay_cancel (struct GNUNET_PSYC_Channel *channel,
1193/** 1194/**
1194 * Function called to inform a member about stored state values for a channel. 1195 * Function called to inform a member about stored state values for a channel.
1195 * 1196 *
1196 * @param cls Closure. 1197 * If @a full_value_size > value_size then this function is called multiple
1197 * @param name Name of the state variable. A NULL value indicates that there 1198 * times until the whole value arrived.
1198 * are no more state variables to be returned. 1199 *
1199 * @param value Value of the state variable. 1200 * @param cls
1200 * @param value_size Number of bytes in @a value. 1201 * Closure.
1202 * @param name
1203 * Name of the state variable.
1204 * NULL if there are no more state variables to be returned.
1205 * @param value
1206 * Value of the state variable.
1207 * @param value_size
1208 * Number of bytes in @a value.
1209 * @param full_value_size
1210 * Number of bytes in the full value, including continuations.
1211 * Only set for the first part of a variable,
1212 * in case of a continuation it is 0.
1201 */ 1213 */
1202typedef void 1214typedef void
1203(*GNUNET_PSYC_StateVarCallback) (void *cls, 1215(*GNUNET_PSYC_StateVarCallback) (void *cls,
1216 const struct GNUNET_MessageHeader *mod,
1204 const char *name, 1217 const char *name,
1205 const void *value, 1218 const void *value,
1206 size_t value_size); 1219 uint32_t value_size,
1220 uint32_t full_value_size);
1207 1221
1208 1222
1209/** 1223/**