diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-01-21 09:23:18 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-01-21 09:23:18 +0000 |
commit | 4a85d321b4516c6a663e8bdd530ba59018c974df (patch) | |
tree | 2a78137703eb302a46b068654c31e8aaf8b8bf56 /test | |
parent | 84f2a1ad2f867f9397de449365f80c5c003296fa (diff) |
2003-01-21 Anders Carlsson <andersca@codefactory.se>
* dbus/dbus-connection.c: (dbus_connection_send_message):
Add a new client_serial parameter.
(dbus_connection_send_message_with_reply):
Remove a @todo since we've implemented the blocking function.
(dbus_connection_send_message_with_reply_and_block):
New function that sends a message and waits for a reply and
then returns the reply.
* dbus/dbus-connection.h:
Add new functions.
* dbus/dbus-errors.c: (dbus_result_to_string):
* dbus/dbus-errors.h:
Add new DBUS_RESULT.
* dbus/dbus-message-internal.h:
* dbus/dbus-message.c: (_dbus_message_get_reply_serial),
(_dbus_message_set_sender), (dbus_message_write_header),
(dbus_message_new_reply), (decode_header_data),
(_dbus_message_loader_return_buffer), (_dbus_message_test):
* dbus/dbus-message.h:
Add new functions that set the reply serial and sender.
Also marshal and demarshal them correctly and add test.
* dbus/dbus-protocol.h:
Add new DBUS_MESSAGE_TYPE_SENDER.
* glib/dbus-glib.h:
* glib/dbus-gmain.c: (watch_callback), (free_callback_data),
(add_watch), (remove_watch), (add_timeout), (remove_timeout),
(dbus_connection_hookup_with_g_main):
* glib/test-dbus-glib.c: (main):
Rewrite to use GIOChannel and remove the GSource crack.
* test/echo-client.c: (main):
* test/watch.c: (check_messages):
Update for changed APIs
Diffstat (limited to 'test')
-rw-r--r-- | test/echo-client.c | 1 | ||||
-rw-r--r-- | test/watch.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/echo-client.c b/test/echo-client.c index fe2fa713..47d7314d 100644 --- a/test/echo-client.c +++ b/test/echo-client.c @@ -30,6 +30,7 @@ main (int argc, message = dbus_message_new ("org.freedesktop.DBus.Test", "org.freedesktop.DBus.Test"); dbus_connection_send_message (connection, message, + NULL, NULL); dbus_message_unref (message); diff --git a/test/watch.c b/test/watch.c index 71d9cdc2..a885a75c 100644 --- a/test/watch.c +++ b/test/watch.c @@ -151,6 +151,7 @@ check_messages (void) reply = dbus_message_new ("org.freedesktop.DBus.Test", "org.freedesktop.DBus.Test"); dbus_connection_send_message (connection, reply, + NULL, NULL); dbus_message_unref (reply); |