summaryrefslogtreecommitdiff
path: root/src/user.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-02-24 17:48:53 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-02-24 17:48:53 -0500
commiteda6544a12c13711c6a81f944f56de92391c0854 (patch)
tree643c82f3d99ab1da3269c5f93cd3c51bf5a4ec16 /src/user.c
parente3c58ec8361fdabd01947803688ccc519475dab0 (diff)
Add a function to get the uid of a user
Diffstat (limited to 'src/user.c')
-rw-r--r--src/user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/user.c b/src/user.c
index d60257a..b7acb6c 100644
--- a/src/user.c
+++ b/src/user.c
@@ -773,6 +773,12 @@ user_local_get_object_path (User *user)
return user->object_path;
}
+uid_t
+user_local_get_uid (User *user)
+{
+ return user->uid;
+}
+
static void
throw_error (DBusGMethodInvocation *context,
gint error_code,