aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_message.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-07-25 00:12:24 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2021-07-25 00:12:24 +0200
commite068078b3ae07d67e9d4b75574075773a88c4a3d (patch)
treea8d9f6ba1e8c23675c5e3a442cc71d985dd49dd9 /src/gnunet_chat_message.h
parentea62f25fccb6c10d5f4a32a8d259116c51d94ee3 (diff)
downloadlibgnunetchat-e068078b3ae07d67e9d4b75574075773a88c4a3d.tar.gz
libgnunetchat-e068078b3ae07d67e9d4b75574075773a88c4a3d.zip
Included usage of message flags and added per chat config io
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_message.h')
-rw-r--r--src/gnunet_chat_message.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gnunet_chat_message.h b/src/gnunet_chat_message.h
index 7b3051c..ea5b355 100644
--- a/src/gnunet_chat_message.h
+++ b/src/gnunet_chat_message.h
@@ -31,12 +31,25 @@
31#include <gnunet/gnunet_util_lib.h> 31#include <gnunet/gnunet_util_lib.h>
32 32
33struct GNUNET_CHAT_Context; 33struct GNUNET_CHAT_Context;
34struct GNUNET_CHAT_Message;
35
36struct GNUNET_CHAT_MessageList
37{
38 struct GNUNET_CHAT_Message *message;
39
40 struct GNUNET_CHAT_MessageList *prev;
41 struct GNUNET_CHAT_MessageList *next;
42};
34 43
35struct GNUNET_CHAT_Message 44struct GNUNET_CHAT_Message
36{ 45{
37 struct GNUNET_CHAT_Context *context; 46 struct GNUNET_CHAT_Context *context;
38 47
39 struct GNUNET_HashCode hash; 48 struct GNUNET_HashCode hash;
49 enum GNUNET_MESSENGER_MessageFlags flags;
50
51 struct GNUNET_CHAT_MessageList *head;
52 struct GNUNET_CHAT_MessageList *tail;
40 53
41 const struct GNUNET_MESSENGER_Message *msg; 54 const struct GNUNET_MESSENGER_Message *msg;
42}; 55};
@@ -44,6 +57,7 @@ struct GNUNET_CHAT_Message
44struct GNUNET_CHAT_Message* 57struct GNUNET_CHAT_Message*
45message_create_from_msg (struct GNUNET_CHAT_Context *context, 58message_create_from_msg (struct GNUNET_CHAT_Context *context,
46 const struct GNUNET_HashCode *hash, 59 const struct GNUNET_HashCode *hash,
60 enum GNUNET_MESSENGER_MessageFlags flags,
47 const struct GNUNET_MESSENGER_Message *msg); 61 const struct GNUNET_MESSENGER_Message *msg);
48 62
49void 63void