[fdo] [PATCH 1/2] Add user_local_get_shell()

Matthew Monaco dgbaley27 at 0x01b.net
Mon May 7 07:29:23 PDT 2012


From: Matthew Monaco <matthew.monaco at 0x01b.net>

---
 src/user.c |    6 ++++++
 src/user.h |    1 +
 2 files changed, 7 insertions(+)

diff --git a/src/user.c b/src/user.c
index 4703883..01507fe 100644
--- a/src/user.c
+++ b/src/user.c
@@ -483,6 +483,12 @@ user_local_get_uid (User *user)
         return user->uid;
 }
 
+const gchar *
+user_local_get_shell(User *user)
+{
+	return user->shell;
+}
+
 static void
 throw_error (GDBusMethodInvocation *context,
              gint                   error_code,
diff --git a/src/user.h b/src/user.h
index 06523d7..fd6dc99 100644
--- a/src/user.h
+++ b/src/user.h
@@ -65,6 +65,7 @@ const gchar *user_local_get_user_name       (User          *user);
 const gchar *user_local_get_user_name       (User          *user);
 const gchar *user_local_get_object_path     (User          *user);
 uid_t        user_local_get_uid             (User          *user);
+const gchar *user_local_get_shell           (User          *user);
 
 G_END_DECLS
 
-- 
1.7.10.1



More information about the freedesktop mailing list