diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-06 23:43:36 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-06 23:43:36 +0100 |
commit | cbdb8030c9cbea9e00e5d569a0d90dabbd4155ea (patch) | |
tree | 8dd93b8161b209db5a1ae068c9d9f71e5099e549 /include | |
parent | 5f187deccd1685385b03e20d7f3b55f600adf6ac (diff) | |
download | libgnunetchat-cbdb8030c9cbea9e00e5d569a0d90dabbd4155ea.tar.gz libgnunetchat-cbdb8030c9cbea9e00e5d569a0d90dabbd4155ea.zip |
Added status to context for edge cases with direct contact communication
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gnunet_chat_lib.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index ddf58f9..b0665d9 100644 --- a/include/gnunet_chat_lib.h +++ b/include/gnunet_chat_lib.h | |||
@@ -528,6 +528,28 @@ struct GNUNET_CHAT_Context* | |||
528 | GNUNET_CHAT_group_get_context (struct GNUNET_CHAT_Group *group); | 528 | GNUNET_CHAT_group_get_context (struct GNUNET_CHAT_Group *group); |
529 | 529 | ||
530 | /** | 530 | /** |
531 | * Returns the current status of a given <i>context</i> whether it is usable | ||
532 | * or not to communicate with other contacts. | ||
533 | * | ||
534 | * @param[in] context Context | ||
535 | * @return #GNUNET_OK if usable, #GNUNET_NO if the context has been requested, | ||
536 | * #GNUNET_SYSERR otherwise. | ||
537 | */ | ||
538 | int | ||
539 | GNUNET_CHAT_context_get_status (const struct GNUNET_CHAT_Context *context); | ||
540 | |||
541 | /** | ||
542 | * Requests a <i>context</i> to get established between all required contacts. | ||
543 | * The current status of this request can be tracked via | ||
544 | * #GNUNET_CHAT_context_get_status() and will only change through the | ||
545 | * receivement of new messages. | ||
546 | * | ||
547 | * @param[in,out] context Context | ||
548 | */ | ||
549 | void | ||
550 | GNUNET_CHAT_context_request (struct GNUNET_CHAT_Context *context); | ||
551 | |||
552 | /** | ||
531 | * Returns the chat contact which uses a given <i>context</i>. | 553 | * Returns the chat contact which uses a given <i>context</i>. |
532 | * | 554 | * |
533 | * @param[in] context Context | 555 | * @param[in] context Context |