diff options
Diffstat (limited to 'src/gnunet_chat_group.h')
-rw-r--r-- | src/gnunet_chat_group.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gnunet_chat_group.h b/src/gnunet_chat_group.h index 4c2bf9d..af576a0 100644 --- a/src/gnunet_chat_group.h +++ b/src/gnunet_chat_group.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2021 GNUnet e.V. | 3 | Copyright (C) 2021--2022 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -47,13 +47,32 @@ struct GNUNET_CHAT_Group | |||
47 | void *user_pointer; | 47 | void *user_pointer; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | /** | ||
51 | * Creates a chat group from a chat <i>context</i> | ||
52 | * with a selected chat <i>handle</i>. | ||
53 | * | ||
54 | * @param[in,out] handle Chat handle | ||
55 | * @param[in,out] context Chat context | ||
56 | * @return New chat group | ||
57 | */ | ||
50 | struct GNUNET_CHAT_Group* | 58 | struct GNUNET_CHAT_Group* |
51 | group_create_from_context (struct GNUNET_CHAT_Handle *handle, | 59 | group_create_from_context (struct GNUNET_CHAT_Handle *handle, |
52 | struct GNUNET_CHAT_Context *context); | 60 | struct GNUNET_CHAT_Context *context); |
53 | 61 | ||
62 | /** | ||
63 | * Destroys a chat <i>group</i> and frees its memory. | ||
64 | * | ||
65 | * @param[in,out] group Chat group | ||
66 | */ | ||
54 | void | 67 | void |
55 | group_destroy (struct GNUNET_CHAT_Group* group); | 68 | group_destroy (struct GNUNET_CHAT_Group* group); |
56 | 69 | ||
70 | /** | ||
71 | * Publishes a selected chat <i>group</i> under the | ||
72 | * topic of its context. | ||
73 | * | ||
74 | * @param[in,out] group Chat group | ||
75 | */ | ||
57 | void | 76 | void |
58 | group_publish (struct GNUNET_CHAT_Group* group); | 77 | group_publish (struct GNUNET_CHAT_Group* group); |
59 | 78 | ||