]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/unity-system-compositor.h
Load all users only when really needed
[sojka/lightdm.git] / src / unity-system-compositor.h
1 /*
2  * Copyright (C) 2013 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 UNITY_SYSTEM_COMPOSITOR_H_
13 #define UNITY_SYSTEM_COMPOSITOR_H_
14
15 #include <glib-object.h>
16 #include "display-server.h"
17
18 G_BEGIN_DECLS
19
20 #define UNITY_SYSTEM_COMPOSITOR_TYPE    (unity_system_compositor_get_type())
21 #define UNITY_SYSTEM_COMPOSITOR(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_SYSTEM_COMPOSITOR_TYPE, UnitySystemCompositor))
22 #define IS_UNITY_SYSTEM_COMPOSITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_SYSTEM_COMPOSITOR_TYPE))
23
24 typedef struct UnitySystemCompositorPrivate UnitySystemCompositorPrivate;
25
26 typedef struct
27 {
28     DisplayServer                 parent_instance;
29     UnitySystemCompositorPrivate *priv;
30 } UnitySystemCompositor;
31
32 typedef struct
33 {
34     DisplayServerClass parent_class;
35 } UnitySystemCompositorClass;
36
37 GType unity_system_compositor_get_type (void);
38
39 UnitySystemCompositor *unity_system_compositor_new (void);
40
41 void unity_system_compositor_set_command (UnitySystemCompositor *compositor, const gchar *command);
42
43 void unity_system_compositor_set_socket (UnitySystemCompositor *compositor, const gchar *socket);
44
45 const gchar *unity_system_compositor_get_socket (UnitySystemCompositor *compositor);
46
47 void unity_system_compositor_set_vt (UnitySystemCompositor *compositor, gint vt);
48
49 void unity_system_compositor_set_timeout (UnitySystemCompositor *compositor, gint timeout);
50
51 void unity_system_compositor_set_active_session (UnitySystemCompositor *compositor, const gchar *id);
52
53 void unity_system_compositor_set_next_session (UnitySystemCompositor *compositor, const gchar *id);
54
55 G_END_DECLS
56
57 #endif /* UNITY_SYSTEM_COMPOSITOR_H_ */