summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-04-18 07:07:27 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-18 11:22:25 (GMT)
commite2edf5f232d1c4abb3ea3b57c070184cef666da6 (patch)
tree8e702bf45cc876f5e024ce9e1e8f408625aa1f7d /include
parentadf04d8c40cdd79da6bcd5a8b74ac775eaebc5e0 (diff)
downloadconnman-e2edf5f232d1c4abb3ea3b57c070184cef666da6.zip
connman-e2edf5f232d1c4abb3ea3b57c070184cef666da6.tar.gz
connman-e2edf5f232d1c4abb3ea3b57c070184cef666da6.tar.bz2
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')
-rw-r--r--include/dbus.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dbus.h b/include/dbus.h
index c00488e..85e8ede 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);