diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 19:50:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 19:50:22 +0100 |
commit | d40cf1652ddbab662c753217a61c8bfba03d07ce (patch) | |
tree | 2c1821d4f38b955313ff4652efe5656e97926909 /src/main.c | |
parent | a3b0506cfd962d74fa11ad83bf3bee3c6b5663da (diff) | |
download | mpd-d40cf1652ddbab662c753217a61c8bfba03d07ce.tar.gz mpd-d40cf1652ddbab662c753217a61c8bfba03d07ce.tar.xz mpd-d40cf1652ddbab662c753217a61c8bfba03d07ce.zip |
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().
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index a33650ae0..28cce4b71 100644 --- a/src/main.c +++ b/src/main.c @@ -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; |