comparison src/audacious/main.c @ 2711:c35913222440 trunk

[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
author magma
date Wed, 09 May 2007 14:36:37 -0700
parents 47ea8eedd428
children 6884a2144a01
comparison
equal deleted inserted replaced
2710:982a825992e1 2711:c35913222440
48 #include "libaudacious/configdb.h" 48 #include "libaudacious/configdb.h"
49 #include "libaudacious/beepctrl.h" 49 #include "libaudacious/beepctrl.h"
50 #include "vfs.h" 50 #include "vfs.h"
51 51
52 #ifdef USE_DBUS 52 #ifdef USE_DBUS
53 # include "dbus.h" 53 # include "dbus-service.h"
54 #endif 54 #endif
55 55
56 #include "dnd.h" 56 #include "dnd.h"
57 #include "effect.h" 57 #include "effect.h"
58 #include "ui_equalizer.h" 58 #include "ui_equalizer.h"
1250 1250
1251 gtk_main(); 1251 gtk_main();
1252 1252
1253 GDK_THREADS_LEAVE(); 1253 GDK_THREADS_LEAVE();
1254 1254
1255 #ifdef USE_DBUS
1256 free_dbus();
1257 #endif
1258
1255 g_cond_free(cond_scan); 1259 g_cond_free(cond_scan);
1256 g_mutex_free(mutex_scan); 1260 g_mutex_free(mutex_scan);
1257 1261
1258 return EXIT_SUCCESS; 1262 return EXIT_SUCCESS;
1259 } 1263 }
1269 1273
1270 loop = g_main_loop_new(NULL, TRUE); 1274 loop = g_main_loop_new(NULL, TRUE);
1271 g_timeout_add(10, aud_headless_iteration, NULL); 1275 g_timeout_add(10, aud_headless_iteration, NULL);
1272 g_main_loop_run(loop); 1276 g_main_loop_run(loop);
1273 1277
1278 #ifdef USE_DBUS
1279 free_dbus();
1280 #endif
1281
1274 return EXIT_SUCCESS; 1282 return EXIT_SUCCESS;
1275 } 1283 }
1276 } 1284 }