diff options
Diffstat (limited to 'testing/toxic/windows.h')
-rw-r--r-- | testing/toxic/windows.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/toxic/windows.h b/testing/toxic/windows.h index 648243d0..37f3e9da 100644 --- a/testing/toxic/windows.h +++ b/testing/toxic/windows.h | |||
@@ -1,8 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | * Toxic -- Tox Curses Client | 2 | * Toxic -- Tox Curses Client |
3 | */ | 3 | */ |
4 | #ifndef _windows_h | ||
5 | #define _windows_h | ||
4 | 6 | ||
7 | #include <curses.h> | ||
8 | #include <stdint.h> | ||
5 | #include <stdbool.h> | 9 | #include <stdbool.h> |
10 | #include "../../core/Messenger.h" | ||
6 | #define TOXWINDOWS_MAX_NUM 32 | 11 | #define TOXWINDOWS_MAX_NUM 32 |
7 | #define MAX_FRIENDS_NUM 100 | 12 | #define MAX_FRIENDS_NUM 100 |
8 | #define MAX_STR_SIZE 256 | 13 | #define MAX_STR_SIZE 256 |
@@ -32,3 +37,17 @@ struct ToxWindow_ { | |||
32 | 37 | ||
33 | WINDOW* window; | 38 | WINDOW* window; |
34 | }; | 39 | }; |
40 | |||
41 | void on_request(uint8_t *public_key, uint8_t *data, uint16_t length, void* userdata); | ||
42 | void on_message(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata); | ||
43 | void on_action(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata); | ||
44 | void on_nickchange(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata); | ||
45 | void on_statuschange(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata); | ||
46 | void init_window_status(); | ||
47 | ToxWindow * init_windows(); | ||
48 | void draw_active_window(Messenger * m); | ||
49 | int add_window(Messenger *m, ToxWindow w, int n); | ||
50 | void del_window(ToxWindow *w, int f_num); | ||
51 | void set_active_window(int ch); | ||
52 | #endif | ||
53 | |||