aboutsummaryrefslogtreecommitdiff
path: root/src/ui/messages.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-05-21 15:34:22 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-05-21 15:34:22 +0200
commite56259e8766ea097e4f2b841584e2f6b20534464 (patch)
tree560d5491047365792223739cc378d57bb9da6f28 /src/ui/messages.h
parent05d021e3994fc03341568053371f6f60ec848504 (diff)
downloadmessenger-cli-e56259e8766ea097e4f2b841584e2f6b20534464.tar.gz
messenger-cli-e56259e8766ea097e4f2b841584e2f6b20534464.zip
Implemented text input for own messages
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/messages.h')
-rw-r--r--src/ui/messages.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/messages.h b/src/ui/messages.h
index b42bb1b..06de97f 100644
--- a/src/ui/messages.h
+++ b/src/ui/messages.h
@@ -42,6 +42,8 @@ typedef struct UI_MESSAGES_List
42 struct UI_MESSAGES_List *next; 42 struct UI_MESSAGES_List *next;
43} UI_MESSAGES_List; 43} UI_MESSAGES_List;
44 44
45#define TEXT_LEN_MAX 1024
46
45typedef struct UI_MESSAGES_Handle 47typedef struct UI_MESSAGES_Handle
46{ 48{
47 WINDOW *window; 49 WINDOW *window;
@@ -54,6 +56,10 @@ typedef struct UI_MESSAGES_Handle
54 int line_selected; 56 int line_selected;
55 57
56 const struct GNUNET_CHAT_Message *selected; 58 const struct GNUNET_CHAT_Message *selected;
59
60 char text [1024];
61 int text_len;
62 int text_pos;
57} UI_MESSAGES_Handle; 63} UI_MESSAGES_Handle;
58 64
59void 65void