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
15 #include <glib-object.h>
16 #include "display-server.h"
17 #include "x-authority.h"
21 #define X_SERVER_TYPE (x_server_get_type())
22 #define X_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_TYPE, XServer))
23 #define X_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), X_SERVER_TYPE, XServerClass))
24 #define X_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), X_SERVER_TYPE, XServerClass))
25 #define IS_X_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_TYPE))
27 typedef struct XServerPrivate XServerPrivate;
31 DisplayServer parent_instance;
37 DisplayServerClass parent_class;
40 GType x_server_get_type (void);
42 void x_server_set_hostname (XServer *server, const gchar *hostname);
44 gchar *x_server_get_hostname (XServer *server);
46 void x_server_set_display_number (XServer *server, guint number);
48 guint x_server_get_display_number (XServer *server);
50 const gchar *x_server_get_address (XServer *server);
52 const gchar *x_server_get_authentication_name (XServer *server);
54 const guint8 *x_server_get_authentication_data (XServer *server);
56 gsize x_server_get_authentication_data_length (XServer *server);
58 void x_server_set_authority (XServer *server, XAuthority *authority);
60 XAuthority *x_server_get_authority (XServer *server);
64 #endif /* X_SERVER_H_ */