diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-07 01:07:13 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-07 01:07:13 +0000 |
commit | 98572905e60cac7ea971aa0830e2a629bfff208d (patch) | |
tree | 2e3ebcfe8670fc403ac4262c96fa714b7e574f83 /test/echo-client.c | |
parent | df008ef97deacd5bb00ac335e5d8671798fa09dd (diff) |
2003-04-06 Havoc Pennington <hp@pobox.com>
* test/Makefile.am: remove a lot of stuff that isn't immediately
useful, it's in CVS history if we want it.
* test/test-service.c: use dbus-mainloop instead of that
watch.[hc] crack
Diffstat (limited to 'test/echo-client.c')
-rw-r--r-- | test/echo-client.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test/echo-client.c b/test/echo-client.c deleted file mode 100644 index b6f68fd7..00000000 --- a/test/echo-client.c +++ /dev/null @@ -1,44 +0,0 @@ -#include <dbus/dbus.h> -#include <stdio.h> -#include "watch.h" - -int -main (int argc, - char **argv) -{ - DBusConnection *connection; - DBusError error; - DBusMessage *message; - - if (argc < 2) - { - fprintf (stderr, "Give the server address as an argument\n"); - return 1; - } - - dbus_error_init (&error); - connection = dbus_connection_open (argv[1], &error); - if (connection == NULL) - { - fprintf (stderr, "Failed to open connection to %s: %s\n", - argv[1], error.message); - dbus_error_free (&error); - return 1; - } - - setup_connection (connection); - - /* Send a message to get things going */ - message = dbus_message_new ("org.freedesktop.DBus.Test", "org.freedesktop.DBus.Test"); - if (!dbus_connection_send (connection, - message, - NULL)) - fprintf (stderr, "No memory to send reply\n"); - dbus_message_unref (message); - - do_mainloop (); - - dbus_connection_unref (connection); - - return 0; -} |