summaryrefslogtreecommitdiffstats
path: root/glib/test-dbus-glib.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2004-06-02 13:13:14 +0000
committerKristian Høgsberg <krh@redhat.com>2004-06-02 13:13:14 +0000
commit54dcec2a8312634116c5a1acbbd0070953525c8a (patch)
tree2186d4c56fd66a3a101768944c5375599e84032c /glib/test-dbus-glib.c
parent0ea8ec33e01dfaf2194e1263546b943f970c6444 (diff)
2004-06-02 Kristian Høgsberg <krh@redhat.com>
* glib/dbus-gproxy.c, glib/dbus-gmain.c, dbus/dbus-string.c, dbus/dbus-object-tree.c, dbus/dbus-message.c: add comments to quiet doxygen. * Doxyfile.in: remove deprecated options. * dbus/dbus-message-handler.c, dbus/dbus-message-handler.h, glib/test-thread.h, glib/test-thread-client.c, glib/test-thread-server.c, glib/test-profile.c, glib/test-dbus-glib.c: remove these unused files.
Diffstat (limited to 'glib/test-dbus-glib.c')
-rw-r--r--glib/test-dbus-glib.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/glib/test-dbus-glib.c b/glib/test-dbus-glib.c
deleted file mode 100644
index d963ee3d..00000000
--- a/glib/test-dbus-glib.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -*- mode: C; c-file-style: "gnu" -*- */
-#include "dbus-glib.h"
-#include <stdio.h>
-
-int
-main (int argc, char **argv)
-{
- DBusConnection *connection;
- DBusMessage *message, *reply;
- GMainLoop *loop;
- DBusError error;
-
- if (argc < 2)
- {
- g_printerr ("Give the server address as an argument\n");
- return 1;
- }
-
- loop = g_main_loop_new (NULL, FALSE);
-
- dbus_error_init (&error);
- connection = dbus_connection_open (argv[1], &error);
- if (connection == NULL)
- {
- g_printerr ("Failed to open connection to %s: %s\n", argv[1],
- error.message);
- dbus_error_free (&error);
- return 1;
- }
-
- dbus_connection_setup_with_g_main (connection, NULL);
-
- message = dbus_message_new (DBUS_MESSAGE_HELLO,
- DBUS_SERVICE_DBUS);
-
- dbus_error_init (&error);
- reply = dbus_connection_send_with_reply_and_block (connection, message, -1, &error);
- if (reply == NULL)
- {
- g_printerr ("Error on hello message: %s\n", error.message);
- dbus_error_free (&error);
- return 1;
- }
-
- g_print ("reply name: %s\n", dbus_message_get_name (reply));
-
- g_main_loop_run (loop);
-
- return 0;
-}