aboutsummaryrefslogtreecommitdiff
path: root/src/application.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.h')
-rw-r--r--src/application.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/application.h b/src/application.h
index 5801f6d..61aed2a 100644
--- a/src/application.h
+++ b/src/application.h
@@ -30,6 +30,7 @@
30#include "chat/messenger.h" 30#include "chat/messenger.h"
31 31
32#include "ui/messenger.h" 32#include "ui/messenger.h"
33#include "ui/new_platform.h"
33 34
34#include "util.h" 35#include "util.h"
35 36
@@ -61,6 +62,8 @@ typedef struct MESSENGER_Application
61 gboolean mobile; 62 gboolean mobile;
62 63
63 UI_MESSENGER_Handle messenger; 64 UI_MESSENGER_Handle messenger;
65
66 UI_NEW_PLATFORM_Handle new_platform;
64 } ui; 67 } ui;
65} MESSENGER_Application; 68} MESSENGER_Application;
66 69
@@ -72,11 +75,13 @@ application_init(MESSENGER_Application *app,
72void 75void
73application_run(MESSENGER_Application *app); 76application_run(MESSENGER_Application *app);
74 77
75typedef void (*MESSENGER_ApplicationEvent) (MESSENGER_Application *app); 78typedef void (*MESSENGER_ApplicationEvent) (MESSENGER_Application *app,
79 void *cls);
76 80
77void 81void
78application_call_event(MESSENGER_Application *app, 82application_call_event(MESSENGER_Application *app,
79 MESSENGER_ApplicationEvent event); 83 MESSENGER_ApplicationEvent event,
84 void *cls);
80 85
81void 86void
82application_exit(MESSENGER_Application *app, 87application_exit(MESSENGER_Application *app,