diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-23 06:50:42 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-23 06:50:42 -0400 |
commit | bcb87139a2d8c5b308cfb82635e9483e867c9dbc (patch) | |
tree | 822a967fe0a795b605f1b97d5cd063d5b4b7179d /testing/toxic/windows.h | |
parent | 733066a57e8d5403c91475fb6b095f44a81bf270 (diff) | |
parent | 4d89d63c3f1489e248261983f6c73a8b083b3336 (diff) |
Merge branch 'master' into new-api
Diffstat (limited to 'testing/toxic/windows.h')
-rw-r--r-- | testing/toxic/windows.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/testing/toxic/windows.h b/testing/toxic/windows.h deleted file mode 100644 index 0f3b82bd..00000000 --- a/testing/toxic/windows.h +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | /* | ||
2 | * Toxic -- Tox Curses Client | ||
3 | */ | ||
4 | #ifndef _windows_h | ||
5 | #define _windows_h | ||
6 | |||
7 | #include <curses.h> | ||
8 | #include <stdint.h> | ||
9 | #include <stdbool.h> | ||
10 | #include <wctype.h> | ||
11 | #include <wchar.h> | ||
12 | #include "../../core/Messenger.h" | ||
13 | #define MAX_WINDOWS_NUM 32 | ||
14 | #define MAX_FRIENDS_NUM 100 | ||
15 | #define MAX_STR_SIZE 256 | ||
16 | #define KEY_SIZE_BYTES 32 | ||
17 | |||
18 | /* number of permanent default windows */ | ||
19 | #define N_DEFAULT_WINS 3 | ||
20 | |||
21 | #ifndef TOXICVER | ||
22 | #define TOXICVER "NOVER" //Use the -D flag to set this | ||
23 | #endif | ||
24 | |||
25 | typedef struct ToxWindow_ ToxWindow; | ||
26 | |||
27 | struct ToxWindow_ { | ||
28 | void(*onKey)(ToxWindow *, Messenger *, wint_t); | ||
29 | void(*onDraw)(ToxWindow *, Messenger *); | ||
30 | void(*onInit)(ToxWindow *, Messenger *); | ||
31 | void(*onFriendRequest)(ToxWindow *, uint8_t *, uint8_t *, uint16_t); | ||
32 | void(*onMessage)(ToxWindow *, Messenger *, int, uint8_t *, uint16_t); | ||
33 | void(*onNickChange)(ToxWindow *, int, uint8_t *, uint16_t); | ||
34 | void(*onStatusChange)(ToxWindow *, int, uint8_t *, uint16_t); | ||
35 | void(*onAction)(ToxWindow *, Messenger *, int, uint8_t *, uint16_t); | ||
36 | char title[256]; | ||
37 | |||
38 | void *x; | ||
39 | bool blink; | ||
40 | |||
41 | WINDOW *window; | ||
42 | }; | ||
43 | |||
44 | void on_request(uint8_t *public_key, uint8_t *data, uint16_t length, void *userdata); | ||
45 | void on_message(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void *userdata); | ||
46 | void on_action(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void *userdata); | ||
47 | void on_nickchange(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void *userdata); | ||
48 | void on_statuschange(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void *userdata); | ||
49 | void on_friendadded(Messenger *m, int friendnumber); | ||
50 | ToxWindow *init_windows(); | ||
51 | void draw_active_window(Messenger *m); | ||
52 | int add_window(Messenger *m, ToxWindow w); | ||
53 | void del_window(ToxWindow *w); | ||
54 | void set_active_window(int ch); | ||
55 | #endif | ||
56 | |||