aboutsummaryrefslogtreecommitdiff
path: root/src/application.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.c')
-rw-r--r--src/application.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/application.c b/src/application.c
index 3259e57..f39a9b7 100644
--- a/src/application.c
+++ b/src/application.c
@@ -642,6 +642,15 @@ application_call_event(MESSENGER_Application *app,
642 g_timeout_add(0, G_SOURCE_FUNC(_application_event_call), call); 642 g_timeout_add(0, G_SOURCE_FUNC(_application_event_call), call);
643} 643}
644 644
645void
646application_call_sync_event(MESSENGER_Application *app,
647 MESSENGER_ApplicationEvent event)
648{
649 g_assert((app) && (event));
650
651 event(app);
652}
653
645typedef struct MESSENGER_ApplicationMessageEventCall 654typedef struct MESSENGER_ApplicationMessageEventCall
646{ 655{
647 MESSENGER_Application *app; 656 MESSENGER_Application *app;