aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_group.h')
-rw-r--r--src/gnunet_chat_group.h21
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 */
50struct GNUNET_CHAT_Group* 58struct GNUNET_CHAT_Group*
51group_create_from_context (struct GNUNET_CHAT_Handle *handle, 59group_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 */
54void 67void
55group_destroy (struct GNUNET_CHAT_Group* group); 68group_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 */
57void 76void
58group_publish (struct GNUNET_CHAT_Group* group); 77group_publish (struct GNUNET_CHAT_Group* group);
59 78