summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/toxic/chat.c2
-rw-r--r--testing/toxic/dhtstatus.c4
-rw-r--r--testing/toxic/friendlist.c2
-rw-r--r--testing/toxic/prompt.c2
-rw-r--r--testing/toxic/windows.c2
-rw-r--r--testing/toxic/windows.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c
index 57404a59..d3e68ec6 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -342,7 +342,7 @@ void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd)
342 wprintw(ctx->history, "Invalid command.\n"); 342 wprintw(ctx->history, "Invalid command.\n");
343} 343}
344 344
345static void chat_onDraw(ToxWindow *self) 345static void chat_onDraw(ToxWindow *self, Messenger *m)
346{ 346{
347 curs_set(1); 347 curs_set(1);
348 int x, y; 348 int x, y;
diff --git a/testing/toxic/dhtstatus.c b/testing/toxic/dhtstatus.c
index c7a57c7d..6c9f2a80 100644
--- a/testing/toxic/dhtstatus.c
+++ b/testing/toxic/dhtstatus.c
@@ -34,9 +34,9 @@ static void dhtstatus_onKey(ToxWindow *self, Messenger *m, int key)
34 } 34 }
35} 35}
36 36
37static void dhtstatus_onDraw(ToxWindow *self) 37static void dhtstatus_onDraw(ToxWindow *self, Messenger *m)
38{ 38{
39 Client_data *close_clientlist = DHT_get_close_list(temp_DHT); 39 Client_data *close_clientlist = DHT_get_close_list(m->dht);
40 curs_set(0); 40 curs_set(0);
41 werase(self->window); 41 werase(self->window);
42 42
diff --git a/testing/toxic/friendlist.c b/testing/toxic/friendlist.c
index 0a58bc54..2e46f124 100644
--- a/testing/toxic/friendlist.c
+++ b/testing/toxic/friendlist.c
@@ -102,7 +102,7 @@ static void friendlist_onKey(ToxWindow *self, Messenger *m, int key)
102 } 102 }
103} 103}
104 104
105static void friendlist_onDraw(ToxWindow *self) 105static void friendlist_onDraw(ToxWindow *self, Messenger *m)
106{ 106{
107 curs_set(0); 107 curs_set(0);
108 werase(self->window); 108 werase(self->window);
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c
index 204cd7e6..12f8a201 100644
--- a/testing/toxic/prompt.c
+++ b/testing/toxic/prompt.c
@@ -460,7 +460,7 @@ static void prompt_onKey(ToxWindow *self, Messenger *m, int key)
460 } 460 }
461} 461}
462 462
463static void prompt_onDraw(ToxWindow *self) 463static void prompt_onDraw(ToxWindow *self, Messenger *m)
464{ 464{
465 curs_set(1); 465 curs_set(1);
466 int x, y; 466 int x, y;
diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c
index c0ff3026..de924329 100644
--- a/testing/toxic/windows.c
+++ b/testing/toxic/windows.c
@@ -225,7 +225,7 @@ void draw_active_window(Messenger *m)
225 prepare_window(a->window); 225 prepare_window(a->window);
226 a->blink = false; 226 a->blink = false;
227 draw_bar(); 227 draw_bar();
228 a->onDraw(a); 228 a->onDraw(a, m);
229 229
230 /* Handle input */ 230 /* Handle input */
231 int ch = getch(); 231 int ch = getch();
diff --git a/testing/toxic/windows.h b/testing/toxic/windows.h
index be5557e9..86917dbe 100644
--- a/testing/toxic/windows.h
+++ b/testing/toxic/windows.h
@@ -24,7 +24,7 @@ typedef struct ToxWindow_ ToxWindow;
24 24
25struct ToxWindow_ { 25struct ToxWindow_ {
26 void(*onKey)(ToxWindow *, Messenger *, int); 26 void(*onKey)(ToxWindow *, Messenger *, int);
27 void(*onDraw)(ToxWindow *); 27 void(*onDraw)(ToxWindow *, Messenger *);
28 void(*onInit)(ToxWindow *, Messenger *); 28 void(*onInit)(ToxWindow *, Messenger *);
29 void(*onFriendRequest)(ToxWindow *, uint8_t *, uint8_t *, uint16_t); 29 void(*onFriendRequest)(ToxWindow *, uint8_t *, uint8_t *, uint16_t);
30 void(*onMessage)(ToxWindow *, Messenger *, int, uint8_t *, uint16_t); 30 void(*onMessage)(ToxWindow *, Messenger *, int, uint8_t *, uint16_t);