diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-10 02:18:22 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-10 02:18:22 +0100 |
commit | fba50c0338fb76feec7fee5a12e27fc57df1972b (patch) | |
tree | 22dcdbf1d1c091d4f41a1b7e8b9f0ce12e9d9319 /src/gnunet_chat_handle.h | |
parent | 807dec8e802737fb46d015c48a7859a6ec504f74 (diff) | |
download | libgnunetchat-fba50c0338fb76feec7fee5a12e27fc57df1972b.tar.gz libgnunetchat-fba50c0338fb76feec7fee5a12e27fc57df1972b.zip |
Replace local files with namestore usage
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_handle.h')
-rw-r--r-- | src/gnunet_chat_handle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle.h b/src/gnunet_chat_handle.h index 6004e5d..0713bf1 100644 --- a/src/gnunet_chat_handle.h +++ b/src/gnunet_chat_handle.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <gnunet/gnunet_fs_service.h> | 33 | #include <gnunet/gnunet_fs_service.h> |
34 | #include <gnunet/gnunet_identity_service.h> | 34 | #include <gnunet/gnunet_identity_service.h> |
35 | #include <gnunet/gnunet_messenger_service.h> | 35 | #include <gnunet/gnunet_messenger_service.h> |
36 | #include <gnunet/gnunet_namestore_service.h> | ||
36 | #include <gnunet/gnunet_scheduler_lib.h> | 37 | #include <gnunet/gnunet_scheduler_lib.h> |
37 | #include <gnunet/gnunet_util_lib.h> | 38 | #include <gnunet/gnunet_util_lib.h> |
38 | 39 | ||
@@ -72,6 +73,7 @@ struct GNUNET_CHAT_Handle | |||
72 | 73 | ||
73 | const struct GNUNET_CHAT_Account *current; | 74 | const struct GNUNET_CHAT_Account *current; |
74 | struct GNUNET_IDENTITY_Operation *creation_op; | 75 | struct GNUNET_IDENTITY_Operation *creation_op; |
76 | struct GNUNET_NAMESTORE_ZoneMonitor *monitor; | ||
75 | 77 | ||
76 | struct GNUNET_CONTAINER_MultiHashMap *files; | 78 | struct GNUNET_CONTAINER_MultiHashMap *files; |
77 | struct GNUNET_CONTAINER_MultiHashMap *contexts; | 79 | struct GNUNET_CONTAINER_MultiHashMap *contexts; |
@@ -82,6 +84,7 @@ struct GNUNET_CHAT_Handle | |||
82 | struct GNUNET_FS_Handle *fs; | 84 | struct GNUNET_FS_Handle *fs; |
83 | struct GNUNET_IDENTITY_Handle *identity; | 85 | struct GNUNET_IDENTITY_Handle *identity; |
84 | struct GNUNET_MESSENGER_Handle *messenger; | 86 | struct GNUNET_MESSENGER_Handle *messenger; |
87 | struct GNUNET_NAMESTORE_Handle *namestore; | ||
85 | 88 | ||
86 | char *public_key; | 89 | char *public_key; |
87 | void *user_pointer; | 90 | void *user_pointer; |
@@ -109,6 +112,9 @@ handle_disconnect (struct GNUNET_CHAT_Handle *handle); | |||
109 | const char* | 112 | const char* |
110 | handle_get_directory (const struct GNUNET_CHAT_Handle *handle); | 113 | handle_get_directory (const struct GNUNET_CHAT_Handle *handle); |
111 | 114 | ||
115 | const struct GNUNET_IDENTITY_PrivateKey* | ||
116 | handle_get_key (const struct GNUNET_CHAT_Handle *handle); | ||
117 | |||
112 | void | 118 | void |
113 | handle_send_internal_message (struct GNUNET_CHAT_Handle *handle, | 119 | handle_send_internal_message (struct GNUNET_CHAT_Handle *handle, |
114 | struct GNUNET_CHAT_Context *context, | 120 | struct GNUNET_CHAT_Context *context, |