aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_context.h')
-rw-r--r--src/gnunet_chat_context.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/gnunet_chat_context.h b/src/gnunet_chat_context.h
index f68ecb8..f0272f0 100644
--- a/src/gnunet_chat_context.h
+++ b/src/gnunet_chat_context.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
@@ -29,6 +29,7 @@
29#include <gnunet/gnunet_common.h> 29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_configuration_lib.h> 30#include <gnunet/gnunet_configuration_lib.h>
31#include <gnunet/gnunet_container_lib.h> 31#include <gnunet/gnunet_container_lib.h>
32#include <gnunet/gnunet_gnsrecord_lib.h>
32#include <gnunet/gnunet_messenger_service.h> 33#include <gnunet/gnunet_messenger_service.h>
33#include <gnunet/gnunet_util_lib.h> 34#include <gnunet/gnunet_util_lib.h>
34 35
@@ -47,6 +48,7 @@ struct GNUNET_CHAT_Context
47 48
48 enum GNUNET_CHAT_ContextType type; 49 enum GNUNET_CHAT_ContextType type;
49 char *nick; 50 char *nick;
51 char *topic;
50 52
51 struct GNUNET_CONTAINER_MultiShortmap *timestamps; 53 struct GNUNET_CONTAINER_MultiShortmap *timestamps;
52 struct GNUNET_CONTAINER_MultiHashMap *messages; 54 struct GNUNET_CONTAINER_MultiHashMap *messages;
@@ -57,6 +59,8 @@ struct GNUNET_CHAT_Context
57 const struct GNUNET_MESSENGER_Contact *contact; 59 const struct GNUNET_MESSENGER_Contact *contact;
58 60
59 void *user_pointer; 61 void *user_pointer;
62
63 struct GNUNET_CONTAINER_MultiShortmap *member_pointers;
60}; 64};
61 65
62struct GNUNET_CHAT_Context* 66struct GNUNET_CHAT_Context*
@@ -79,12 +83,15 @@ context_update_nick (struct GNUNET_CHAT_Context *context,
79 const char *nick); 83 const char *nick);
80 84
81void 85void
82context_load_config (struct GNUNET_CHAT_Context *context); 86context_read_records (struct GNUNET_CHAT_Context *context,
87 const char *label,
88 unsigned int count,
89 const struct GNUNET_GNSRECORD_Data *data);
83 90
84void 91void
85context_save_config (const struct GNUNET_CHAT_Context *context); 92context_write_records (struct GNUNET_CHAT_Context *context);
86 93
87void 94void
88context_scan_configs (struct GNUNET_CHAT_Handle *handle); 95context_delete_records (struct GNUNET_CHAT_Context *context);
89 96
90#endif /* GNUNET_CHAT_CONTEXT_H_ */ 97#endif /* GNUNET_CHAT_CONTEXT_H_ */