summaryrefslogtreecommitdiff
path: root/testing/toxic/windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/windows.h')
-rw-r--r--testing/toxic/windows.h19
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
41void on_request(uint8_t *public_key, uint8_t *data, uint16_t length, void* userdata);
42void on_message(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata);
43void on_action(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata);
44void on_nickchange(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata);
45void on_statuschange(Messenger *m, int friendnumber, uint8_t *string, uint16_t length, void* userdata);
46void init_window_status();
47ToxWindow * init_windows();
48void draw_active_window(Messenger * m);
49int add_window(Messenger *m, ToxWindow w, int n);
50void del_window(ToxWindow *w, int f_num);
51void set_active_window(int ch);
52#endif
53