2 * Copyright (C) 2010-2011 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
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
12 #ifndef DISPLAY_SERVER_H_
13 #define DISPLAY_SERVER_H_
15 #include <glib-object.h>
19 #define DISPLAY_SERVER_TYPE (display_server_get_type())
20 #define DISPLAY_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_SERVER_TYPE, DisplayServer))
21 #define DISPLAY_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DISPLAY_SERVER_TYPE, DisplayServerClass))
22 #define DISPLAY_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DISPLAY_SERVER_TYPE, DisplayServerClass))
24 typedef struct DisplayServerPrivate DisplayServerPrivate;
28 GObject parent_instance;
29 DisplayServerPrivate *priv;
34 GObjectClass parent_class;
36 void (*ready)(DisplayServer *server);
37 void (*stopped)(DisplayServer *server);
39 gboolean (*start)(DisplayServer *server);
40 void (*stop)(DisplayServer *server);
43 GType display_server_get_type (void);
45 void display_server_set_name (DisplayServer *server, const gchar *name);
47 const gchar *display_server_get_name (DisplayServer *server);
49 void display_server_set_start_local_sessions (DisplayServer *server, gboolean start_local_sessions);
51 gboolean display_server_get_start_local_sessions (DisplayServer *server);
53 gboolean display_server_start (DisplayServer *server);
55 void display_server_stop (DisplayServer *server);
57 gboolean display_server_get_is_stopped (DisplayServer *server);
61 #endif /* DISPLAY_SERVER_H_ */