myth-dbus/src/main.c
branchtrunk
changeset 865 3eeb6b565018
child 866 640fc18c9f37
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/myth-dbus/src/main.c	Wed Oct 24 20:01:02 2007 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +#include "gmyth-dbus-server.h"
     1.5 +
     1.6 +int main (int argc, char* argv[])
     1.7 +{
     1.8 +    GMainLoop *loop;
     1.9 +    GMythDbusServer *srv;
    1.10 +
    1.11 +    g_type_init ();
    1.12 +
    1.13 +    loop = g_main_loop_new (NULL, FALSE);
    1.14 +    srv = gmyth_dbus_server_start_dbus_service ();
    1.15 +
    1.16 +    if (srv)
    1.17 +        g_main_loop_run (loop);
    1.18 +
    1.19 +    return 0;
    1.20 +}