summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-userdb.h
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-03-22 17:57:27 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-03-22 17:57:27 +0000
commit6eab51411982fc61c193caed388608c4f2bd25d1 (patch)
treec11efd68e12c643113d11ed0d0d605a1e01e3be8 /dbus/dbus-userdb.h
parent11519c46c42e1dc65614ad9ba214604561b9788e (diff)
* tools/Makefile.am: Patch by Colin Walters that fixes distcheck
* dbus/dbus-userdb.c, dbus/dbus-userdb-util.c: Add patch we have had in Red Hat packages for a while but for some reason never got merged upstream (_dbus_is_a_number): New checks if a string can be converted to a number and does the conversion if it can (_dbus_user_database_lookup): Add check to see if the given username is a udi. This allows udi's to be used instead of usernames in the config file. (_dbus_user_database_lookup_group): Add check to see if the given groupname is a gdi. This allows gdi's to be used instead of groupnames in the config file.
Diffstat (limited to 'dbus/dbus-userdb.h')
-rw-r--r--dbus/dbus-userdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-userdb.h b/dbus/dbus-userdb.h
index 316b99b7..7e033b41 100644
--- a/dbus/dbus-userdb.h
+++ b/dbus/dbus-userdb.h
@@ -106,6 +106,9 @@ dbus_bool_t _dbus_credentials_from_uid (dbus_uid_t user_id,
dbus_bool_t _dbus_is_console_user (dbus_uid_t uid,
DBusError *error);
+dbus_bool_t _dbus_is_a_number (const DBusString *str,
+ unsigned long *num);
+
DBUS_END_DECLS