diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-21 03:44:10 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-21 03:44:10 +0000 |
commit | f5cf675641e63cefc36c8a9a7a5872cc8600abcd (patch) | |
tree | f8762e202abb21da860b9af677ead55d5150dfa9 /dbus | |
parent | 2abdb13ebe737e39653b79fecd93477e156b9db1 (diff) |
2005-01-20 Havoc Pennington <hp@redhat.com>
* doc/dbus-tutorial.xml: replace > with >
* bus/services.c (bus_registry_acquire_service): validate the name
and return a better error if it's no good.
* doc/dbus-specification.xml: note NO_AUTO_START change
* dbus/dbus-protocol.h (DBUS_HEADER_FLAG_NO_AUTO_START): change
from AUTO_START, we're toggling the default
* bus/dispatch.c: adapt the tests to change of auto-start default
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-message.c | 8 | ||||
-rw-r--r-- | dbus/dbus-protocol.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index e4c761c2..4ddfa37a 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -2207,8 +2207,8 @@ dbus_message_set_auto_start (DBusMessage *message, _dbus_return_if_fail (!message->locked); _dbus_header_toggle_flag (&message->header, - DBUS_HEADER_FLAG_AUTO_START, - auto_start); + DBUS_HEADER_FLAG_NO_AUTO_START, + !auto_start); } /** @@ -2223,8 +2223,8 @@ dbus_message_get_auto_start (DBusMessage *message) { _dbus_return_val_if_fail (message != NULL, FALSE); - return _dbus_header_get_flag (&message->header, - DBUS_HEADER_FLAG_AUTO_START); + return !_dbus_header_get_flag (&message->header, + DBUS_HEADER_FLAG_NO_AUTO_START); } diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h index fec94d8c..385c5ebc 100644 --- a/dbus/dbus-protocol.h +++ b/dbus/dbus-protocol.h @@ -142,7 +142,7 @@ extern "C" { /* Header flags */ #define DBUS_HEADER_FLAG_NO_REPLY_EXPECTED 0x1 -#define DBUS_HEADER_FLAG_AUTO_START 0x2 +#define DBUS_HEADER_FLAG_NO_AUTO_START 0x2 /* Header fields */ #define DBUS_HEADER_FIELD_INVALID 0 |