diff options
author | Havoc Pennington <hp@redhat.com> | 2003-10-21 14:05:19 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-10-21 14:05:19 +0000 |
commit | 10faede1eec77b0687ad007fa59608e96d80317d (patch) | |
tree | 168ca89108803e573fdf3491d83401efa9377e29 /test | |
parent | 75742242000e782719bc1656f0a7da72b059e88e (diff) | |
download | dbus-10faede1eec77b0687ad007fa59608e96d80317d.tar.gz |
add missing file
Diffstat (limited to 'test')
-rw-r--r-- | test/glib/test-service-glib.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/glib/test-service-glib.c b/test/glib/test-service-glib.c new file mode 100644 index 00000000..1089e685 --- /dev/null +++ b/test/glib/test-service-glib.c @@ -0,0 +1,36 @@ +/* -*- mode: C; c-file-style: "gnu" -*- */ +#include "dbus-glib.h" +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +static GMainLoop *loop; + +int +main (int argc, char **argv) +{ + DBusConnection *connection; + GError *error; + int i; + + g_type_init (); + + loop = g_main_loop_new (NULL, FALSE); + + error = NULL; + connection = dbus_bus_get_with_g_main (DBUS_BUS_ACTIVATION, + &error); + if (connection == NULL) + { + g_printerr ("Failed to open connection to bus: %s\n", + error->message); + g_error_free (error); + exit (1); + } + + + + g_print ("Successfully completed %s\n", argv[0]); + + return 0; +} |