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 gboolean (*restart)(DisplayServer *server);
41 void (*stop)(DisplayServer *server);
44 GType display_server_get_type (void);
46 gboolean display_server_start (DisplayServer *server);
48 void display_server_set_ready (DisplayServer *server);
50 gboolean display_server_restart (DisplayServer *server);
52 void display_server_stop (DisplayServer *server);
54 void display_server_set_stopped (DisplayServer *server);
58 #endif /* _DISPLAY_SERVER_H_ */