diff options
Diffstat (limited to 'src/include/gnunet_chat_service.h')
-rw-r--r-- | src/include/gnunet_chat_service.h | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/src/include/gnunet_chat_service.h b/src/include/gnunet_chat_service.h index d9c3ec76f..5eb0daf3f 100644 --- a/src/include/gnunet_chat_service.h +++ b/src/include/gnunet_chat_service.h | |||
@@ -183,26 +183,19 @@ typedef int (*GNUNET_CHAT_MessageConfirmation) (void *cls, | |||
183 | * @param me member ID (pseudonym) | 183 | * @param me member ID (pseudonym) |
184 | * @return NULL on error | 184 | * @return NULL on error |
185 | */ | 185 | */ |
186 | struct GNUNET_CHAT_Room *GNUNET_CHAT_join_room (const struct | 186 | struct GNUNET_CHAT_Room * |
187 | GNUNET_CONFIGURATION_Handle | 187 | GNUNET_CHAT_join_room (const struct GNUNET_CONFIGURATION_Handle *cfg, |
188 | *cfg, const char *nick_name, | 188 | const char *nick_name, |
189 | struct GNUNET_CONTAINER_MetaData | 189 | struct GNUNET_CONTAINER_MetaData *member_info, |
190 | *member_info, | 190 | const char *room_name, |
191 | const char *room_name, | 191 | enum GNUNET_CHAT_MsgOptions msg_options, |
192 | enum GNUNET_CHAT_MsgOptions | 192 | GNUNET_CHAT_JoinCallback joinCallback, void *join_cls, |
193 | msg_options, | 193 | GNUNET_CHAT_MessageCallback messageCallback, |
194 | GNUNET_CHAT_JoinCallback | 194 | void *message_cls, |
195 | joinCallback, void *join_cls, | 195 | GNUNET_CHAT_MemberListCallback memberCallback, |
196 | GNUNET_CHAT_MessageCallback | 196 | void *member_cls, |
197 | messageCallback, | 197 | GNUNET_CHAT_MessageConfirmation confirmationCallback, |
198 | void *message_cls, | 198 | void *confirmation_cls, GNUNET_HashCode * me); |
199 | GNUNET_CHAT_MemberListCallback | ||
200 | memberCallback, | ||
201 | void *member_cls, | ||
202 | GNUNET_CHAT_MessageConfirmation | ||
203 | confirmationCallback, | ||
204 | void *confirmation_cls, | ||
205 | GNUNET_HashCode * me); | ||
206 | 199 | ||
207 | /** | 200 | /** |
208 | * Send a message. | 201 | * Send a message. |
@@ -213,18 +206,18 @@ struct GNUNET_CHAT_Room *GNUNET_CHAT_join_room (const struct | |||
213 | * @param receiver use NULL to send to everyone in the room | 206 | * @param receiver use NULL to send to everyone in the room |
214 | * @param sequence_number where to write the sequence id of the message | 207 | * @param sequence_number where to write the sequence id of the message |
215 | */ | 208 | */ |
216 | void GNUNET_CHAT_send_message (struct GNUNET_CHAT_Room *room, | 209 | void |
217 | const char *message, | 210 | GNUNET_CHAT_send_message (struct GNUNET_CHAT_Room *room, const char *message, |
218 | enum GNUNET_CHAT_MsgOptions options, | 211 | enum GNUNET_CHAT_MsgOptions options, |
219 | const struct | 212 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded |
220 | GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded | 213 | *receiver, uint32_t * sequence_number); |
221 | *receiver, uint32_t * sequence_number); | ||
222 | 214 | ||
223 | 215 | ||
224 | /** | 216 | /** |
225 | * Leave a chat room. | 217 | * Leave a chat room. |
226 | */ | 218 | */ |
227 | void GNUNET_CHAT_leave_room (struct GNUNET_CHAT_Room *chat_room); | 219 | void |
220 | GNUNET_CHAT_leave_room (struct GNUNET_CHAT_Room *chat_room); | ||
228 | 221 | ||
229 | 222 | ||
230 | #if 0 | 223 | #if 0 |
@@ -241,9 +234,10 @@ typedef int (*GNUNET_CHAT_RoomIterator) (const char *room, const char *topic, | |||
241 | * List all of the (publically visible) chat rooms. | 234 | * List all of the (publically visible) chat rooms. |
242 | * @return number of rooms on success, GNUNET_SYSERR if iterator aborted | 235 | * @return number of rooms on success, GNUNET_SYSERR if iterator aborted |
243 | */ | 236 | */ |
244 | int GNUNET_CHAT_list_rooms (struct GNUNET_GE_Context *ectx, | 237 | int |
245 | struct GNUNET_GC_Configuration *cfg, | 238 | GNUNET_CHAT_list_rooms (struct GNUNET_GE_Context *ectx, |
246 | GNUNET_CHAT_RoomIterator it, void *cls); | 239 | struct GNUNET_GC_Configuration *cfg, |
240 | GNUNET_CHAT_RoomIterator it, void *cls); | ||
247 | #endif | 241 | #endif |
248 | 242 | ||
249 | 243 | ||