]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/display-manager.h
48ba01f2c0e7af2669c15cd2342cc89bd2693eda
[sojka/lightdm.git] / src / display-manager.h
1 /*
2  * Copyright (C) 2010-2011 Robert Ancell.
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 DISPLAY_MANAGER_H_
13 #define DISPLAY_MANAGER_H_
14
15 #include <glib-object.h>
16
17 #include "seat.h"
18
19 G_BEGIN_DECLS
20
21 #define DISPLAY_MANAGER_TYPE (display_manager_get_type())
22 #define DISPLAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_MANAGER_TYPE, DisplayManager));
23
24 typedef struct DisplayManagerPrivate DisplayManagerPrivate;
25
26 typedef struct
27 {
28     GObject         parent_instance;
29     DisplayManagerPrivate *priv;
30 } DisplayManager;
31
32 typedef struct
33 {
34     GObjectClass parent_class;
35
36     void (*seat_added)(DisplayManager *manager, Seat *seat);
37     void (*seat_removed)(DisplayManager *manager, Seat *seat);
38     void (*stopped)(DisplayManager *manager);
39 } DisplayManagerClass;
40
41 GType display_manager_get_type (void);
42
43 DisplayManager *display_manager_new (void);
44
45 gboolean display_manager_add_seat (DisplayManager *manager, Seat *seat);
46
47 GList *display_manager_get_seats (DisplayManager *manager);
48
49 Seat *display_manager_get_seat (DisplayManager *manager, const gchar *name);
50
51 void display_manager_start (DisplayManager *manager);
52
53 void display_manager_stop (DisplayManager *manager);
54
55 G_END_DECLS
56
57 #endif /* DISPLAY_MANAGER_H_ */