diff options
author | Havoc Pennington <hp@redhat.com> | 2003-03-05 02:01:34 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-03-05 02:01:34 +0000 |
commit | 7e050c88719553d0c74e3dc68caf7bc50ae99590 (patch) | |
tree | f7a9abccae6591849e58e71d45dded9aa76512ec /dbus/dbus-errors.h | |
parent | 6bea42d2b84121152e4e5c719d23ed22901a972a (diff) |
2003-03-04 Havoc Pennington <hp@pobox.com>
* test/data/auth/*: adapt to changes
* dbus/dbus-auth-script.c (_dbus_auth_script_run): add
USERID_BASE64 and change USERNAME_BASE64 to put in username not
userid
* dbus/dbus-keyring.c (_dbus_keyring_validate_context): prevent
more stuff from being in a context name, to make the protocol
simpler to deal with
* dbus/dbus-errors.c (dbus_error_has_name): new function
(dbus_error_is_set): new function
* dbus/dbus-auth.c: replace DBUS_STUPID_TEST_MECH auth
with DBUS_COOKIE_SHA1, implement DBUS_COOKIE_SHA1
* dbus/dbus-connection.c (dbus_connection_flush): also read
messages during a flush operation
* dbus/Makefile.am: remove dbus-md5 since it isn't currently used.
Diffstat (limited to 'dbus/dbus-errors.h')
-rw-r--r-- | dbus/dbus-errors.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/dbus/dbus-errors.h b/dbus/dbus-errors.h index 1b1a880c..e6b88465 100644 --- a/dbus/dbus-errors.h +++ b/dbus/dbus-errors.h @@ -81,16 +81,20 @@ typedef enum DBUS_RESULT_FILE_NOT_FOUND /**< File doesn't exist */ } DBusResultCode; -void dbus_error_init (DBusError *error); -void dbus_error_free (DBusError *error); -void dbus_set_error (DBusError *error, - const char *name, - const char *message, - ...); -void dbus_set_error_const (DBusError *error, - const char *name, - const char *message); - +void dbus_error_init (DBusError *error); +void dbus_error_free (DBusError *error); +void dbus_set_error (DBusError *error, + const char *name, + const char *message, + ...); +void dbus_set_error_const (DBusError *error, + const char *name, + const char *message); +dbus_bool_t dbus_error_has_name (const DBusError *error, + const char *name); +dbus_bool_t dbus_error_is_set (const DBusError *error); + + void dbus_set_result (DBusResultCode *code_address, DBusResultCode code); const char* dbus_result_to_string (DBusResultCode code); |