diff options
Diffstat (limited to 'src/gnunet_chat_group.h')
-rw-r--r-- | src/gnunet_chat_group.h | 17 |
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" | 33 | struct GNUNET_CHAT_Handle; |
34 | struct GNUNET_CHAT_Context; | ||
31 | 35 | ||
32 | struct GNUNET_CHAT_Group | 36 | struct 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 | ||
43 | struct GNUNET_CHAT_Group* | 47 | struct GNUNET_CHAT_Group* |
44 | group_create(struct GNUNET_CHAT_Handle *handle, | 48 | group_create_from_context (struct GNUNET_CHAT_Handle *handle, |
45 | const char *topic); | 49 | struct GNUNET_CHAT_Context *context); |
46 | 50 | ||
47 | void | 51 | void |
48 | group_destroy(struct GNUNET_CHAT_Group* group); | 52 | group_destroy (struct GNUNET_CHAT_Group* group); |
53 | |||
54 | void | ||
55 | group_publish (struct GNUNET_CHAT_Group* group); | ||
49 | 56 | ||
50 | #endif /* GNUNET_CHAT_GROUP_H_ */ | 57 | #endif /* GNUNET_CHAT_GROUP_H_ */ |