summaryrefslogtreecommitdiff
path: root/src/seat.h
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-07-23 14:24:45 +1200
committerRobert Ancell <robert.ancell@canonical.com>2013-07-23 14:24:45 +1200
commit0f956f52f1f365c21c6357b8bc159986d2dd9b82 (patch)
treead8c16377ced0f238a71b811108cc6907130654b /src/seat.h
parent3e1d6047758cfc510033e775a35db8b70cf5c4fe (diff)
parente7d20496246a38ec388a6be665c1a0154dab7478 (diff)
downloadlightdm-0f956f52f1f365c21c6357b8bc159986d2dd9b82.tar.gz
Merge with trunk
Diffstat (limited to 'src/seat.h')
-rw-r--r--src/seat.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/seat.h b/src/seat.h
index d8c64e57..fca74297 100644
--- a/src/seat.h
+++ b/src/seat.h
@@ -13,7 +13,9 @@
#define SEAT_H_
#include <glib-object.h>
-#include "display.h"
+#include "display-server.h"
+#include "greeter.h"
+#include "session.h"
#include "process.h"
G_BEGIN_DECLS
@@ -35,17 +37,19 @@ typedef struct
{
GObjectClass parent_class;
- void (*setup)(Seat *seat);
+ void (*setup)(Seat *seat);
gboolean (*start)(Seat *seat);
DisplayServer *(*create_display_server) (Seat *seat, const gchar *session_type);
- Session *(*create_session) (Seat *seat, Display *display);
- void (*set_active_display)(Seat *seat, Display *display);
- Display *(*get_active_display)(Seat *seat);
- void (*run_script)(Seat *seat, Display *display, Process *script);
+ Greeter *(*create_greeter_session) (Seat *seat);
+ Session *(*create_session) (Seat *seat);
+ void (*set_active_session)(Seat *seat, Session *session);
+ Session *(*get_active_session)(Seat *seat);
+ void (*run_script)(Seat *seat, DisplayServer *display_server, Process *script);
void (*stop)(Seat *seat);
- void (*display_added)(Seat *seat, Display *display);
- void (*display_removed)(Seat *seat, Display *display);
+ void (*session_added)(Seat *seat, Session *session);
+ void (*running_user_session)(Seat *seat, Session *session);
+ void (*session_removed)(Seat *seat, Session *session);
void (*stopped)(Seat *seat);
} SeatClass;
@@ -57,8 +61,6 @@ Seat *seat_new (const gchar *module_name);
void seat_set_property (Seat *seat, const gchar *name, const gchar *value);
-gboolean seat_has_property (Seat *seat, const gchar *name);
-
const gchar *seat_get_string_property (Seat *seat, const gchar *name);
gboolean seat_get_boolean_property (Seat *seat, const gchar *name);
@@ -71,11 +73,11 @@ void seat_set_share_display_server (Seat *seat, gboolean share_display_server);
gboolean seat_start (Seat *seat);
-GList *seat_get_displays (Seat *seat);
+GList *seat_get_sessions (Seat *seat);
-void seat_set_active_display (Seat *seat, Display *display);
+void seat_set_active_session (Seat *seat, Session *session);
-Display *seat_get_active_display (Seat *seat);
+Session *seat_get_active_session (Seat *seat);
gboolean seat_get_can_switch (Seat *seat);