diff options
Diffstat (limited to 'include/gnunet_chat_lib.h')
-rw-r--r-- | include/gnunet_chat_lib.h | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index 4c15df5..9c2a432 100644 --- a/include/gnunet_chat_lib.h +++ b/include/gnunet_chat_lib.h | |||
@@ -194,6 +194,7 @@ typedef int | |||
194 | * TODO | 194 | * TODO |
195 | * | 195 | * |
196 | * @param cfg | 196 | * @param cfg |
197 | * @param directory | ||
197 | * @param name | 198 | * @param name |
198 | * @param warn_cb | 199 | * @param warn_cb |
199 | * @param warn_cls | 200 | * @param warn_cls |
@@ -201,6 +202,7 @@ typedef int | |||
201 | */ | 202 | */ |
202 | struct GNUNET_CHAT_Handle* | 203 | struct GNUNET_CHAT_Handle* |
203 | GNUNET_CHAT_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 204 | GNUNET_CHAT_start (const struct GNUNET_CONFIGURATION_Handle *cfg, |
205 | const char *directory, | ||
204 | const char *name, | 206 | const char *name, |
205 | GNUNET_CHAT_WarningCallback warn_cb, void *warn_cls, | 207 | GNUNET_CHAT_WarningCallback warn_cb, void *warn_cls, |
206 | GNUNET_CHAT_ContextMessageCallback msg_cb, void *msg_cls); | 208 | GNUNET_CHAT_ContextMessageCallback msg_cb, void *msg_cls); |
@@ -398,8 +400,9 @@ GNUNET_CHAT_group_get_context (struct GNUNET_CHAT_Group *group); | |||
398 | * | 400 | * |
399 | * @param context | 401 | * @param context |
400 | * @param text | 402 | * @param text |
403 | * @return | ||
401 | */ | 404 | */ |
402 | void | 405 | int |
403 | GNUNET_CHAT_context_send_text (struct GNUNET_CHAT_Context *context, | 406 | GNUNET_CHAT_context_send_text (struct GNUNET_CHAT_Context *context, |
404 | const char *text); | 407 | const char *text); |
405 | 408 | ||
@@ -408,8 +411,9 @@ GNUNET_CHAT_context_send_text (struct GNUNET_CHAT_Context *context, | |||
408 | * | 411 | * |
409 | * @param context | 412 | * @param context |
410 | * @param path | 413 | * @param path |
414 | * @return | ||
411 | */ | 415 | */ |
412 | void | 416 | int |
413 | GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context, | 417 | GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context, |
414 | const char *path); | 418 | const char *path); |
415 | 419 | ||
@@ -418,8 +422,9 @@ GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context, | |||
418 | * | 422 | * |
419 | * @param context | 423 | * @param context |
420 | * @param uri | 424 | * @param uri |
425 | * @return | ||
421 | */ | 426 | */ |
422 | void | 427 | int |
423 | GNUNET_CHAT_context_send_uri (struct GNUNET_CHAT_Context *context, | 428 | GNUNET_CHAT_context_send_uri (struct GNUNET_CHAT_Context *context, |
424 | const char *uri); | 429 | const char *uri); |
425 | 430 | ||
@@ -428,8 +433,9 @@ GNUNET_CHAT_context_send_uri (struct GNUNET_CHAT_Context *context, | |||
428 | * | 433 | * |
429 | * @param context | 434 | * @param context |
430 | * @param file | 435 | * @param file |
436 | * @return | ||
431 | */ | 437 | */ |
432 | void | 438 | int |
433 | GNUNET_CHAT_context_share_file (struct GNUNET_CHAT_Context *context, | 439 | GNUNET_CHAT_context_share_file (struct GNUNET_CHAT_Context *context, |
434 | const struct GNUNET_CHAT_File *file); | 440 | const struct GNUNET_CHAT_File *file); |
435 | 441 | ||
@@ -437,17 +443,6 @@ GNUNET_CHAT_context_share_file (struct GNUNET_CHAT_Context *context, | |||
437 | * TODO | 443 | * TODO |
438 | * | 444 | * |
439 | * @param context | 445 | * @param context |
440 | * @param hash | ||
441 | * @param delay | ||
442 | */ | ||
443 | void | ||
444 | GNUNET_CHAT_context_delete_message (const struct GNUNET_CHAT_Message *message, | ||
445 | struct GNUNET_TIME_Relative delay); | ||
446 | |||
447 | /** | ||
448 | * TODO | ||
449 | * | ||
450 | * @param context | ||
451 | * @param callback | 446 | * @param callback |
452 | * @param cls | 447 | * @param cls |
453 | * @return | 448 | * @return |
@@ -528,6 +523,17 @@ GNUNET_CHAT_message_get_invitation (const struct GNUNET_CHAT_Message *message); | |||
528 | /** | 523 | /** |
529 | * TODO | 524 | * TODO |
530 | * | 525 | * |
526 | * @param message | ||
527 | * @param delay | ||
528 | * @return | ||
529 | */ | ||
530 | int | ||
531 | GNUNET_CHAT_message_delete (const struct GNUNET_CHAT_Message *message, | ||
532 | struct GNUNET_TIME_Relative delay); | ||
533 | |||
534 | /** | ||
535 | * TODO | ||
536 | * | ||
531 | * @param file | 537 | * @param file |
532 | * @return | 538 | * @return |
533 | */ | 539 | */ |
@@ -593,6 +599,15 @@ GNUNET_CHAT_file_stop_download (struct GNUNET_CHAT_File *file); | |||
593 | /** | 599 | /** |
594 | * TODO | 600 | * TODO |
595 | * | 601 | * |
602 | * @param file | ||
603 | * @return | ||
604 | */ | ||
605 | int | ||
606 | GNUNET_CHAT_file_unindex (struct GNUNET_CHAT_File *file); | ||
607 | |||
608 | /** | ||
609 | * TODO | ||
610 | * | ||
596 | * @param invitation | 611 | * @param invitation |
597 | */ | 612 | */ |
598 | void | 613 | void |