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 X_SERVER_LOCAL_H_
13 #define X_SERVER_LOCAL_H_
19 #define X_SERVER_LOCAL_TYPE (x_server_local_get_type())
20 #define X_SERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_LOCAL_TYPE, XServerLocal))
21 #define IS_X_SERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_LOCAL_TYPE))
23 typedef struct XServerLocalPrivate XServerLocalPrivate;
27 XServer parent_instance;
28 XServerLocalPrivate *priv;
33 XServerClass parent_class;
36 const gchar *x_server_local_get_version (void);
38 gint x_server_local_version_compare (guint major, guint minor);
40 guint x_server_local_get_unused_display_number (void);
42 void x_server_local_release_display_number (guint display_number);
44 GType x_server_local_get_type (void);
46 XServerLocal *x_server_local_new (void);
48 void x_server_local_set_command (XServerLocal *server, const gchar *command);
50 void x_server_local_set_vt (XServerLocal *server, gint vt);
52 void x_server_local_set_config (XServerLocal *server, const gchar *path);
54 void x_server_local_set_layout (XServerLocal *server, const gchar *layout);
56 void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat);
58 void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp);
60 void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname);
62 const gchar *x_server_local_get_xdmcp_server (XServerLocal *server);
64 void x_server_local_set_xdmcp_port (XServerLocal *server, guint port);
66 guint x_server_local_get_xdmcp_port (XServerLocal *server);
68 void x_server_local_set_xdmcp_key (XServerLocal *server, const gchar *key);
70 void x_server_local_set_background (XServerLocal *server, const gchar *background);
72 void x_server_local_set_mir_id (XServerLocal *server, const gchar *id);
74 const gchar *x_server_local_get_mir_id (XServerLocal *server);
76 void x_server_local_set_mir_socket (XServerLocal *server, const gchar *socket);
78 const gchar *x_server_local_get_authority_file_path (XServerLocal *server);
82 #endif /* X_SERVER_LOCAL_H_ */