]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/wayland-session.h
Load all users only when really needed
[sojka/lightdm.git] / src / wayland-session.h
1 /*
2  * Copyright (C) 2015 Canonical Ltd.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  *
5  * This program is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9  * license.
10  */
11
12 #ifndef WAYLAND_SESSION_H_
13 #define WAYLAND_SESSION_H_
14
15 #include <glib-object.h>
16 #include "display-server.h"
17
18 G_BEGIN_DECLS
19
20 #define WAYLAND_SESSION_TYPE    (wayland_session_get_type())
21 #define WAYLAND_SESSION(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), WAYLAND_SESSION_TYPE, WaylandSession))
22 #define IS_WAYLAND_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WAYLAND_SESSION_TYPE))
23
24 typedef struct WaylandSessionPrivate WaylandSessionPrivate;
25
26 typedef struct
27 {
28     DisplayServer          parent_instance;
29     WaylandSessionPrivate *priv;
30 } WaylandSession;
31
32 typedef struct
33 {
34     DisplayServerClass parent_class;
35 } WaylandSessionClass;
36
37 GType wayland_session_get_type (void);
38
39 WaylandSession *wayland_session_new (void);
40
41 void wayland_session_set_vt (WaylandSession *session, gint vt);
42
43 G_END_DECLS
44
45 #endif /* WAYLAND_SESSION_H_ */