diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2013-04-18 09:07:27 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-04-18 14:22:25 +0300 |
commit | e2edf5f232d1c4abb3ea3b57c070184cef666da6 (patch) | |
tree | 8e702bf45cc876f5e024ce9e1e8f408625aa1f7d /include/dbus.h | |
parent | adf04d8c40cdd79da6bcd5a8b74ac775eaebc5e0 (diff) | |
download | connman-e2edf5f232d1c4abb3ea3b57c070184cef666da6.tar.gz connman-e2edf5f232d1c4abb3ea3b57c070184cef666da6.tar.bz2 connman-e2edf5f232d1c4abb3ea3b57c070184cef666da6.zip |
dbus: Add connman_dbus_get_connnection_unix_user()
The UID is fetched via org.freedesktop.DBus.GetConnectionUnixUser D-Bus
method call.
Diffstat (limited to 'include/dbus.h')
-rw-r--r-- | include/dbus.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dbus.h b/include/dbus.h index c00488e2..85e8ede0 100644 --- a/include/dbus.h +++ b/include/dbus.h @@ -171,6 +171,14 @@ static inline void connman_dbus_dict_append_fixed_array(DBusMessageIter *dict, dbus_bool_t connman_dbus_validate_ident(const char *ident); char *connman_dbus_encode_string(const char *value); +typedef void (* connman_dbus_get_connection_unix_user_cb_t) (unsigned int uid, + void *user_data, int err); + +int connman_dbus_get_connection_unix_user(DBusConnection *connection, + const char *bus_name, + connman_dbus_get_connection_unix_user_cb_t func, + void *user_data); + typedef void (* connman_dbus_get_context_cb_t) (const unsigned char *context, void *user_data, int err); |