aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_social_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r--src/include/gnunet_social_service.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
index ea643de5a..1d2b2096c 100644
--- a/src/include/gnunet_social_service.h
+++ b/src/include/gnunet_social_service.h
@@ -84,6 +84,8 @@ struct GNUNET_SOCIAL_Slicer;
84 * @param message_id Unique message counter for this message 84 * @param message_id Unique message counter for this message
85 * (unique only in combination with the given sender for 85 * (unique only in combination with the given sender for
86 * this channel). 86 * this channel).
87 * @param header_length Number of modifiers in header.
88 * @param header Modifiers present in the message.
87 * @param data_off Byte offset of @a data in the overall data of the method. 89 * @param data_off Byte offset of @a data in the overall data of the method.
88 * @param data_size Number of bytes in @a data. 90 * @param data_size Number of bytes in @a data.
89 * @param data Data stream given to the method (might not be zero-terminated 91 * @param data Data stream given to the method (might not be zero-terminated
@@ -93,6 +95,8 @@ struct GNUNET_SOCIAL_Slicer;
93typedef int (*GNUNET_SOCIAL_Method)(void *cls, 95typedef int (*GNUNET_SOCIAL_Method)(void *cls,
94 const char *full_method_name, 96 const char *full_method_name,
95 uint64_t message_id, 97 uint64_t message_id,
98 size_t header_length,
99 GNUNET_PSYC_Modifier *header,
96 uint64_t data_off, 100 uint64_t data_off,
97 size_t data_size, 101 size_t data_size,
98 const void *data, 102 const void *data,
@@ -172,11 +176,15 @@ GNUNET_SOCIAL_ego_destroy (struct GNUNET_SOCIAL_Ego *ego);
172 * 176 *
173 * @param cls Closure. 177 * @param cls Closure.
174 * @param nym Handle for the user who wants to join. 178 * @param nym Handle for the user who wants to join.
179 * @param header_length Number of modifiers in header.
180 * @param header Modifiers present in the message.
175 * @param msg_size Number of bytes in @a msg. 181 * @param msg_size Number of bytes in @a msg.
176 * @param msg Payload given on enter (e.g. a password). 182 * @param msg Payload given on enter (e.g. a password).
177 */ 183 */
178typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls, 184typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls,
179 struct GNUNET_SOCIAL_Nym *nym, 185 struct GNUNET_SOCIAL_Nym *nym,
186 size_t header_length,
187 GNUNET_PSYC_Modifier *header,
180 size_t msg_size, 188 size_t msg_size,
181 const void *msg); 189 const void *msg);
182 190
@@ -189,9 +197,13 @@ typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls,
189 * 197 *
190 * @param cls Closure. 198 * @param cls Closure.
191 * @param nym Handle for the user who left. 199 * @param nym Handle for the user who left.
200 * @param header_length Number of modifiers in header.
201 * @param header Modifiers present in the message.
192 */ 202 */
193typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, 203typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls,
194 struct GNUNET_SOCIAL_Nym *nym); 204 struct GNUNET_SOCIAL_Nym *nym,
205 size_t header_length,
206 GNUNET_PSYC_Modifier *header);
195 207
196 208
197/** 209/**