diff options
Diffstat (limited to 'src/gnunet_chat_context.h')
-rw-r--r-- | src/gnunet_chat_context.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gnunet_chat_context.h b/src/gnunet_chat_context.h new file mode 100644 index 0000000..0994004 --- /dev/null +++ b/src/gnunet_chat_context.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * @author Tobias Frisch | ||
3 | * @file gnunet_chat_context.h | ||
4 | */ | ||
5 | |||
6 | #ifndef GNUNET_CHAT_CONTEXT_H_ | ||
7 | #define GNUNET_CHAT_CONTEXT_H_ | ||
8 | |||
9 | #include <gnunet/platform.h> | ||
10 | #include <gnunet/gnunet_messenger_service.h> | ||
11 | #include <gnunet/gnunet_util_lib.h> | ||
12 | |||
13 | struct GNUNET_CHAT_Handle; | ||
14 | |||
15 | struct GNUNET_CHAT_Context | ||
16 | { | ||
17 | struct GNUNET_CHAT_Handle *handle; | ||
18 | struct GNUNET_MESSENGER_Room *room; | ||
19 | |||
20 | struct GNUNET_HashCode key; | ||
21 | }; | ||
22 | |||
23 | struct GNUNET_CHAT_Context* | ||
24 | context_create (struct GNUNET_CHAT_Handle *handle, | ||
25 | const struct GNUNET_HashCode *key); | ||
26 | |||
27 | void | ||
28 | context_destroy (struct GNUNET_CHAT_Context* context); | ||
29 | |||
30 | const struct GNUNET_HashCode* | ||
31 | context_get_key (struct GNUNET_CHAT_Context* context); | ||
32 | |||
33 | #endif /* GNUNET_CHAT_CONTEXT_H_ */ | ||