diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-02-16 21:50:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-02-16 21:50:32 +0000 |
commit | 6cf6f82faae928a9142d4aa465b5add381960e29 (patch) | |
tree | 4275653da460d9f96639e7c246f82dd1c6e233a9 /dbus/dbus-message.c | |
parent | b2fce4c69b9fd75c54bb370e043ea166b83083f6 (diff) |
2003-02-16 Anders Carlsson <andersca@codefactory.se>
* bus/dispatch.c: (send_one_message):
Only send broadcast messages to registered connections.
* dbus/dbus-message.c: (dbus_message_name_is):
* dbus/dbus-message.h:
New convenience function.
* dbus/dbus-transport-debug.c: (do_reading):
Only dispatch one message per run.
* test/Makefile.am:
* test/bus-test.c: (new_connection_callback), (die),
(test_hello_client1_handler), (test_hello_client2_handler),
(test_hello_replies), (main):
* test/bus-test-loop.[ch]:
Add these.
Diffstat (limited to 'dbus/dbus-message.c')
-rw-r--r-- | dbus/dbus-message.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index fced9c72..893e45f1 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -1735,6 +1735,17 @@ dbus_message_get_sender (DBusMessage *message) return get_string_field (message, FIELD_SENDER, NULL); } +dbus_bool_t +dbus_message_name_is (DBusMessage *message, + const char *name) +{ + if (dbus_message_get_name (message) && + strcmp (dbus_message_get_name (message), name) == 0) + return TRUE; + else + return FALSE; +} + /** @} */ /** |