aboutsummaryrefslogtreecommitdiff
path: root/src/application.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.h')
-rw-r--r--src/application.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/application.h b/src/application.h
index f30ebb8..4ffa2c8 100644
--- a/src/application.h
+++ b/src/application.h
@@ -26,6 +26,7 @@
26#define APPLICATION_H_ 26#define APPLICATION_H_
27 27
28#include <pthread.h> 28#include <pthread.h>
29#include <gnunet/gnunet_chat_lib.h>
29 30
30#include "chat/messenger.h" 31#include "chat/messenger.h"
31 32
@@ -84,15 +85,25 @@ application_init(MESSENGER_Application *app,
84void 85void
85application_run(MESSENGER_Application *app); 86application_run(MESSENGER_Application *app);
86 87
87typedef void (*MESSENGER_ApplicationEvent) (MESSENGER_Application *app, 88typedef void (*MESSENGER_ApplicationEvent) (
88 int argc, 89 MESSENGER_Application *app
89 void **argv); 90);
91
92typedef void (*MESSENGER_ApplicationMessageEvent) (
93 MESSENGER_Application *app,
94 struct GNUNET_CHAT_Context *context,
95 const struct GNUNET_CHAT_Message *msg
96);
90 97
91void 98void
92application_call_event(MESSENGER_Application *app, 99application_call_event(MESSENGER_Application *app,
93 MESSENGER_ApplicationEvent event, 100 MESSENGER_ApplicationEvent event);
94 int argc, 101
95 void **argv); 102void
103application_call_message_event(MESSENGER_Application *app,
104 MESSENGER_ApplicationMessageEvent event,
105 struct GNUNET_CHAT_Context *context,
106 const struct GNUNET_CHAT_Message *message);
96 107
97void 108void
98application_exit(MESSENGER_Application *app, 109application_exit(MESSENGER_Application *app,