diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-07-17 18:00:58 +1000 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-07-17 18:00:58 +1000 |
commit | 1aa24c368fb96da645c70381edd3a4d857853e73 (patch) | |
tree | 99875f7a3be3484133ec643944fcee150376c3aa /src/session.h | |
parent | 90a0c158d8c2bb497a5bb5e76762105fe3e508fe (diff) | |
download | lightdm-1aa24c368fb96da645c70381edd3a4d857853e73.tar.gz |
Make display generic and create an XDisplay
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/session.h b/src/session.h index 7e79b3a9..76fa2f93 100644 --- a/src/session.h +++ b/src/session.h @@ -14,12 +14,13 @@ #include "child-process.h" #include "user.h" -#include "xauth.h" G_BEGIN_DECLS -#define SESSION_TYPE (session_get_type()) -#define SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE, Session)) +#define SESSION_TYPE (session_get_type()) +#define SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE, Session)) +#define SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_TYPE, SessionClass)) +#define SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_TYPE, SessionClass)) typedef struct SessionPrivate SessionPrivate; @@ -32,12 +33,13 @@ typedef struct typedef struct { ChildProcessClass parent_class; + + gboolean (*start)(Session *session); + void (*stop)(Session *session); } SessionClass; GType session_get_type (void); -Session *session_new (void); - void session_set_user (Session *session, User *user); User *session_get_user (Session *session); @@ -46,11 +48,9 @@ void session_set_command (Session *session, const gchar *command); const gchar *session_get_command (Session *session); -void session_set_authorization (Session *session, XAuthorization *authorization); - -XAuthorization *session_get_authorization (Session *session); +void session_set_has_pipe (Session *session, gboolean has_pipe); -gboolean session_start (Session *session, gboolean create_pipe); +gboolean session_start (Session *session); void session_stop (Session *session); |