diff options
author | Havoc Pennington <hp@redhat.com> | 2003-02-20 03:43:18 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-02-20 03:43:18 +0000 |
commit | 6b40feaff4114ab3498ad06e13063fceff4d48e9 (patch) | |
tree | f9e3fabcf592dc04c256c6ebcc923f95e6ee11e3 /dbus/dbus-sysdeps.h | |
parent | 89ee9e6abf40b594c681479dfc4d18d892c93838 (diff) |
2003-02-19 Havoc Pennington <hp@pobox.com>
* Doxyfile.in (PREDEFINED): put DOXYGEN_SHOULD_SKIP_THIS in
Doxyfile.in, not Doxyfile
* dbus/dbus-keyring.c: do some hacking on this
* dbus/dbus-sysdeps.c (_dbus_delete_file): new
* dbus/dbus-errors.c (dbus_set_error_const): do not call
dbus_error_init
(dbus_set_error): remove dbus_error_init, check for message ==
NULL *before* we sprintf into it, and add @todo about including
system headers in this file
* dbus/dbus-sysdeps.c (_dbus_create_file_exclusively): new
* dbus/dbus-errors.h (DBUS_ERROR_FAILED): add
* dbus/dbus-sysdeps.c (get_user_info): break this function out to
get various bits of user information based on either username
or user ID
(_dbus_homedir_from_username): new function
Diffstat (limited to 'dbus/dbus-sysdeps.h')
-rw-r--r-- | dbus/dbus-sysdeps.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index 3c95227d..b14833eb 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -104,6 +104,11 @@ dbus_bool_t _dbus_credentials_match (const DBusCredentials *expec dbus_bool_t _dbus_string_append_our_uid (DBusString *str); +dbus_bool_t _dbus_homedir_from_username (const DBusString *username, + DBusString *homedir); +dbus_bool_t _dbus_user_info_from_current_process (const DBusString **username, + const DBusString **homedir, + const DBusCredentials **credentials); typedef int dbus_atomic_t; @@ -138,6 +143,11 @@ DBusResultCode _dbus_file_get_contents (DBusString *str, DBusResultCode _dbus_string_save_to_file (const DBusString *str, const DBusString *filename); +dbus_bool_t _dbus_create_file_exclusively (const DBusString *filename, + DBusError *error); +dbus_bool_t _dbus_delete_file (const DBusString *filename, + DBusError *error); + dbus_bool_t _dbus_concat_dir_and_file (DBusString *dir, const DBusString *next_component); |