diff options
Diffstat (limited to 'include/gnunet_chat_lib.h')
-rw-r--r-- | include/gnunet_chat_lib.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index 6214e1e..a920973 100644 --- a/include/gnunet_chat_lib.h +++ b/include/gnunet_chat_lib.h | |||
@@ -173,7 +173,19 @@ typedef int | |||
173 | */ | 173 | */ |
174 | typedef int | 174 | typedef int |
175 | (*GNUNET_CHAT_ContextMessageCallback) (void *cls, struct GNUNET_CHAT_Context *context, | 175 | (*GNUNET_CHAT_ContextMessageCallback) (void *cls, struct GNUNET_CHAT_Context *context, |
176 | struct GNUNET_CHAT_Message *message); | 176 | const struct GNUNET_CHAT_Message *message); |
177 | |||
178 | /** | ||
179 | * TODO | ||
180 | * | ||
181 | * @param cls | ||
182 | * @param context | ||
183 | * @param file | ||
184 | * @return | ||
185 | */ | ||
186 | typedef int | ||
187 | (*GNUNET_CHAT_ContextFileCallback) (void *cls, struct GNUNET_CHAT_Context *context, | ||
188 | struct GNUNET_CHAT_File *file); | ||
177 | 189 | ||
178 | /** | 190 | /** |
179 | * TODO | 191 | * TODO |
@@ -537,6 +549,19 @@ GNUNET_CHAT_context_iterate_messages (struct GNUNET_CHAT_Context *context, | |||
537 | /** | 549 | /** |
538 | * TODO | 550 | * TODO |
539 | * | 551 | * |
552 | * @param context | ||
553 | * @param callback | ||
554 | * @param cls | ||
555 | * @return | ||
556 | */ | ||
557 | int | ||
558 | GNUNET_CHAT_context_iterate_files (struct GNUNET_CHAT_Context *context, | ||
559 | GNUNET_CHAT_ContextFileCallback callback, | ||
560 | void *cls); | ||
561 | |||
562 | /** | ||
563 | * TODO | ||
564 | * | ||
540 | * @param message | 565 | * @param message |
541 | * @return | 566 | * @return |
542 | */ | 567 | */ |