diff options
Diffstat (limited to 'src/application.h')
-rw-r--r-- | src/application.h | 23 |
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, | |||
84 | void | 85 | void |
85 | application_run(MESSENGER_Application *app); | 86 | application_run(MESSENGER_Application *app); |
86 | 87 | ||
87 | typedef void (*MESSENGER_ApplicationEvent) (MESSENGER_Application *app, | 88 | typedef void (*MESSENGER_ApplicationEvent) ( |
88 | int argc, | 89 | MESSENGER_Application *app |
89 | void **argv); | 90 | ); |
91 | |||
92 | typedef void (*MESSENGER_ApplicationMessageEvent) ( | ||
93 | MESSENGER_Application *app, | ||
94 | struct GNUNET_CHAT_Context *context, | ||
95 | const struct GNUNET_CHAT_Message *msg | ||
96 | ); | ||
90 | 97 | ||
91 | void | 98 | void |
92 | application_call_event(MESSENGER_Application *app, | 99 | application_call_event(MESSENGER_Application *app, |
93 | MESSENGER_ApplicationEvent event, | 100 | MESSENGER_ApplicationEvent event); |
94 | int argc, | 101 | |
95 | void **argv); | 102 | void |
103 | application_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 | ||
97 | void | 108 | void |
98 | application_exit(MESSENGER_Application *app, | 109 | application_exit(MESSENGER_Application *app, |