author | renatofilho |
Wed Jan 23 20:09:09 2008 +0000 (2008-01-23) | |
branch | trunk |
changeset 893 | f9632cb3f1a0 |
parent 878 | 016b3410871d |
permissions | -rw-r--r-- |
1 #include "gmyth-dbus-server.h"
4 static void
5 _disconnected_cb (GMythDbusServer *srv,
6 GMainLoop *loop)
7 {
8 g_main_loop_quit (loop);
9 }
11 int main (int argc, char* argv[])
12 {
13 GMainLoop *loop;
14 GMythDbusServer *srv;
16 g_type_init ();
17 g_thread_init (NULL);
20 loop = g_main_loop_new (NULL, FALSE);
21 srv = gmyth_dbus_server_start_dbus_service ();
23 if (srv)
24 {
25 g_signal_connect (G_OBJECT (srv),
26 "shutdown",
27 G_CALLBACK (_disconnected_cb),
28 loop);
29 g_main_loop_run (loop);
31 g_object_unref (srv);
32 }
34 return 0;
35 }