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.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/gnunet_chat_group.h b/src/gnunet_chat_group.h
index c0127bc..0130481 100644
--- a/src/gnunet_chat_group.h
+++ b/src/gnunet_chat_group.h
@@ -25,26 +25,33 @@
25#ifndef GNUNET_CHAT_GROUP_H_ 25#ifndef GNUNET_CHAT_GROUP_H_
26#define GNUNET_CHAT_GROUP_H_ 26#define GNUNET_CHAT_GROUP_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
28#include <gnunet/gnunet_regex_service.h> 30#include <gnunet/gnunet_regex_service.h>
31#include <gnunet/gnunet_util_lib.h>
29 32
30#include "gnunet_chat_context.h" 33struct GNUNET_CHAT_Handle;
34struct GNUNET_CHAT_Context;
31 35
32struct GNUNET_CHAT_Group 36struct GNUNET_CHAT_Group
33{ 37{
34 struct GNUNET_CHAT_Handle *handle; 38 struct GNUNET_CHAT_Handle *handle;
35 struct GNUNET_CHAT_Context *context; 39 struct GNUNET_CHAT_Context *context;
36 40
37 int is_public; 41 char *topic;
38 42
39 struct GNUNET_REGEX_Announcement *announcement; 43 struct GNUNET_REGEX_Announcement *announcement;
40 struct GNUNET_REGEX_Search *search; 44 struct GNUNET_REGEX_Search *search;
41}; 45};
42 46
43struct GNUNET_CHAT_Group* 47struct GNUNET_CHAT_Group*
44group_create(struct GNUNET_CHAT_Handle *handle, 48group_create_from_context (struct GNUNET_CHAT_Handle *handle,
45 const char *topic); 49 struct GNUNET_CHAT_Context *context);
46 50
47void 51void
48group_destroy(struct GNUNET_CHAT_Group* group); 52group_destroy (struct GNUNET_CHAT_Group* group);
53
54void
55group_publish (struct GNUNET_CHAT_Group* group);
49 56
50#endif /* GNUNET_CHAT_GROUP_H_ */ 57#endif /* GNUNET_CHAT_GROUP_H_ */