summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-06-16 11:17:46 +1000
committerRobert Ancell <robert.ancell@canonical.com>2011-06-16 11:17:46 +1000
commit44d641544ac6f96931656935ed14c76431e4888c (patch)
tree2d65f44994909295e0438b9f717f7932c6507cd0 /src/session.h
parentd09283b51c07d3b10ef54a601bead870dc718642 (diff)
downloadlightdm-44d641544ac6f96931656935ed14c76431e4888c.tar.gz
Make session take a User object so it's not so confusing when using the default user and the lookup is only done once
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session.h b/src/session.h
index 16ad4087..7383e742 100644
--- a/src/session.h
+++ b/src/session.h
@@ -13,6 +13,7 @@
#define _SESSION_H_
#include "child-process.h"
+#include "user.h"
#include "xauth.h"
G_BEGIN_DECLS
@@ -37,9 +38,9 @@ GType session_get_type (void);
Session *session_new (void);
-void session_set_username (Session *session, const gchar *username);
+void session_set_user (Session *session, User *user);
-const gchar *session_get_username (Session *session);
+User *session_get_user (Session *session);
void session_set_command (Session *session, const gchar *command);