diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-07-12 00:21:25 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-07-12 00:21:25 +0200 |
commit | d1a6ac474d731b74ea1b191a76471b698687a278 (patch) | |
tree | 342dd1a4d260f02185f11cfb1931bce030cd5b5d /src/gnunet_chat_context.c | |
parent | b880617514f9e64e991cb8d6fcff74ce3f292e36 (diff) | |
download | libgnunetchat-d1a6ac474d731b74ea1b191a76471b698687a278.tar.gz libgnunetchat-d1a6ac474d731b74ea1b191a76471b698687a278.zip |
Most of the file handling and necessary disk io calls
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r-- | src/gnunet_chat_context.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index 54c63f7..da49402 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c | |||
@@ -24,6 +24,8 @@ | |||
24 | 24 | ||
25 | #include "gnunet_chat_context.h" | 25 | #include "gnunet_chat_context.h" |
26 | 26 | ||
27 | #include "gnunet_chat_context_intern.c" | ||
28 | |||
27 | struct GNUNET_CHAT_Context* | 29 | struct GNUNET_CHAT_Context* |
28 | context_create_from_room (struct GNUNET_CHAT_Handle *handle, | 30 | context_create_from_room (struct GNUNET_CHAT_Handle *handle, |
29 | struct GNUNET_MESSENGER_Room *room) | 31 | struct GNUNET_MESSENGER_Room *room) |
@@ -47,6 +49,14 @@ context_create_from_room (struct GNUNET_CHAT_Handle *handle, | |||
47 | void | 49 | void |
48 | context_destroy (struct GNUNET_CHAT_Context* context) | 50 | context_destroy (struct GNUNET_CHAT_Context* context) |
49 | { | 51 | { |
52 | GNUNET_CONTAINER_multihashmap_iterate( | ||
53 | context->messages, it_destroy_context_messages, NULL | ||
54 | ); | ||
55 | |||
56 | GNUNET_CONTAINER_multihashmap_iterate( | ||
57 | context->messages, it_destroy_context_invites, NULL | ||
58 | ); | ||
59 | |||
50 | GNUNET_CONTAINER_multihashmap_destroy(context->messages); | 60 | GNUNET_CONTAINER_multihashmap_destroy(context->messages); |
51 | GNUNET_CONTAINER_multihashmap_destroy(context->invites); | 61 | GNUNET_CONTAINER_multihashmap_destroy(context->invites); |
52 | GNUNET_CONTAINER_multihashmap_destroy(context->files); | 62 | GNUNET_CONTAINER_multihashmap_destroy(context->files); |