1
by robert.ancell at gmail
Compiles and does something |
1 |
/*
|
494
by Robert Ancell
Update copyright year |
2 |
* Copyright (C) 2010-2011 Robert Ancell.
|
1
by robert.ancell at gmail
Compiles and does something |
3 |
* Author: Robert Ancell <robert.ancell@canonical.com>
|
2065
by Robert Ancell
Remove trailing whitespace |
4 |
*
|
1
by robert.ancell at gmail
Compiles and does something |
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 |
||
1649.1.1
by Robert Ancell
Use C standard compliant names for header guards |
12 |
#ifndef DISPLAY_MANAGER_H_
|
13 |
#define DISPLAY_MANAGER_H_
|
|
1
by robert.ancell at gmail
Compiles and does something |
14 |
|
15 |
#include <glib-object.h> |
|
16 |
||
799
by Robert Ancell
Connect up missing D-Bus seat methods and signals |
17 |
#include "seat.h" |
18 |
||
1
by robert.ancell at gmail
Compiles and does something |
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 |
||
2067.1.1
by Jesús González
Refactored code to replace hardcoded signal identification strings by constants. |
24 |
#define DISPLAY_MANAGER_SIGNAL_SEAT_ADDED "seat-added"
|
25 |
#define DISPLAY_MANAGER_SIGNAL_SEAT_REMOVED "seat-removed"
|
|
26 |
#define DISPLAY_MANAGER_SIGNAL_STOPPED "stopped"
|
|
27 |
||
1
by robert.ancell at gmail
Compiles and does something |
28 |
typedef struct DisplayManagerPrivate DisplayManagerPrivate; |
29 |
||
30 |
typedef struct |
|
31 |
{
|
|
32 |
GObject parent_instance; |
|
33 |
DisplayManagerPrivate *priv; |
|
34 |
} DisplayManager; |
|
35 |
||
36 |
typedef struct |
|
37 |
{
|
|
32
by robert.ancell at gmail
Able to configure and change sessions |
38 |
GObjectClass parent_class; |
39 |
||
799
by Robert Ancell
Connect up missing D-Bus seat methods and signals |
40 |
void (*seat_added)(DisplayManager *manager, Seat *seat); |
41 |
void (*seat_removed)(DisplayManager *manager, Seat *seat); |
|
652
by Robert Ancell
Shut down display manager more carefully |
42 |
void (*stopped)(DisplayManager *manager); |
1
by robert.ancell at gmail
Compiles and does something |
43 |
} DisplayManagerClass; |
44 |
||
45 |
GType display_manager_get_type (void); |
|
46 |
||
505
by Robert Ancell
Make configuration and GuestManager singletons |
47 |
DisplayManager *display_manager_new (void); |
1
by robert.ancell at gmail
Compiles and does something |
48 |
|
1034
by Robert Ancell
Refactor configuration in preparation for dynamic seats |
49 |
gboolean display_manager_add_seat (DisplayManager *manager, Seat *seat); |
50 |
||
798
by Robert Ancell
Started splitting out seats into separate D-Bus objects |
51 |
GList *display_manager_get_seats (DisplayManager *manager); |
493
by Robert Ancell
Start laying foundations for guest accounts |
52 |
|
2030.1.21
by Robert Ancell
Simplify finding seats by name |
53 |
Seat *display_manager_get_seat (DisplayManager *manager, const gchar *name); |
54 |
||
120
by robert.ancell at gmail
Move code around |
55 |
void display_manager_start (DisplayManager *manager); |
14
by robert.ancell at gmail
Register display as separate D-Bus object, add Manager object |
56 |
|
652
by Robert Ancell
Shut down display manager more carefully |
57 |
void display_manager_stop (DisplayManager *manager); |
58 |
||
1
by robert.ancell at gmail
Compiles and does something |
59 |
G_END_DECLS
|
60 |
||
1649.1.1
by Robert Ancell
Use C standard compliant names for header guards |
61 |
#endif /* DISPLAY_MANAGER_H_ */ |