From 113ccd0ca92ab8fe8a6e6c2db190cbcbeebe912d Mon Sep 17 00:00:00 2001 From: Zhang zhengguang Date: Sat, 11 Oct 2014 15:06:14 +0800 Subject: multi-user: Add function to get dbus user id synchronously Change-Id: Ic41643e5f8b6e1a28ce00e0456d961fe2de7a7fb --- include/dbus.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/dbus.h') diff --git a/include/dbus.h b/include/dbus.h index 26f94d63..3087fe40 100644 --- a/include/dbus.h +++ b/include/dbus.h @@ -180,6 +180,10 @@ int connman_dbus_get_connection_unix_user(DBusConnection *connection, connman_dbus_get_connection_unix_user_cb_t func, void *user_data); +int connman_dbus_get_connection_unix_user_sync(DBusConnection *connection, + const char *bus_name, + unsigned int *user_id); + typedef void (* connman_dbus_get_context_cb_t) (const unsigned char *context, void *user_data, int err); -- cgit v1.2.3