main: export the main_loop variable

Other libraries may need to access the main_loop reference, to add or
remove events, or to call g_main_loop_quit().
This commit is contained in:
Max Kellermann
2008-12-30 19:50:22 +01:00
parent a3b0506cfd
commit d40cf1652d
4 changed files with 29 additions and 2 deletions

View File

@@ -75,6 +75,8 @@
#include <locale.h>
#endif
GMainLoop *main_loop;
static void changeToUser(void)
{
#ifndef WIN32
@@ -207,7 +209,6 @@ main_notify_triggered(void)
int main(int argc, char *argv[])
{
Options options;
GMainLoop *main_loop;
clock_t start;
GTimer *save_state_timer;