]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
add missing file
authorHavoc Pennington <hp@redhat.com>
Tue, 21 Oct 2003 14:05:19 +0000 (14:05 +0000)
committerHavoc Pennington <hp@redhat.com>
Tue, 21 Oct 2003 14:05:19 +0000 (14:05 +0000)
test/glib/test-service-glib.c [new file with mode: 0644]

diff --git a/test/glib/test-service-glib.c b/test/glib/test-service-glib.c
new file mode 100644 (file)
index 0000000..1089e68
--- /dev/null
@@ -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;
+}