]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/x-server-local.h
Launchpad automatic translations update.
[sojka/lightdm.git] / src / x-server-local.h
1 /*
2  * Copyright (C) 2010-2011 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  *
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
12 #ifndef X_SERVER_LOCAL_H_
13 #define X_SERVER_LOCAL_H_
14
15 #include "x-server.h"
16 #include "process.h"
17
18 G_BEGIN_DECLS
19
20 #define X_SERVER_LOCAL_TYPE    (x_server_local_get_type())
21 #define X_SERVER_LOCAL(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_LOCAL_TYPE, XServerLocal))
22 #define X_SERVER_LOCAL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), X_SERVER_LOCAL_TYPE, XServerLocalClass))
23 #define X_SERVER_LOCAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), X_SERVER_LOCAL_TYPE, XServerLocalClass))
24 #define IS_X_SERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_LOCAL_TYPE))
25
26 typedef struct XServerLocalPrivate XServerLocalPrivate;
27
28 typedef struct
29 {
30     XServer              parent_instance;
31     XServerLocalPrivate *priv;
32 } XServerLocal;
33
34 typedef struct
35 {
36     XServerClass parent_class;
37     ProcessRunFunc (*get_run_function)(XServerLocal *server);
38     gboolean (*get_log_stdout)(XServerLocal *server);  
39     void (*add_args)(XServerLocal *server, GString *command);
40     gboolean (*start)(DisplayServer *server);
41 } XServerLocalClass;
42
43 const gchar *x_server_local_get_version (void);
44
45 gint x_server_local_version_compare (guint major, guint minor);
46
47 guint x_server_local_get_unused_display_number (void);
48
49 void x_server_local_release_display_number (guint display_number);
50
51 GType x_server_local_get_type (void);
52
53 XServerLocal *x_server_local_new (void);
54
55 void x_server_local_set_command (XServerLocal *server, const gchar *command);
56
57 void x_server_local_set_vt (XServerLocal *server, gint vt);
58
59 void x_server_local_set_config (XServerLocal *server, const gchar *path);
60
61 void x_server_local_set_layout (XServerLocal *server, const gchar *layout);
62
63 void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat);
64
65 void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp);
66
67 void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname);
68
69 const gchar *x_server_local_get_xdmcp_server (XServerLocal *server);
70
71 void x_server_local_set_xdmcp_port (XServerLocal *server, guint port);
72
73 guint x_server_local_get_xdmcp_port (XServerLocal *server);
74
75 void x_server_local_set_xdmcp_key (XServerLocal *server, const gchar *key);
76
77 void x_server_local_set_background (XServerLocal *server, const gchar *background);
78
79 const gchar *x_server_local_get_authority_file_path (XServerLocal *server);
80
81 G_END_DECLS
82
83 #endif /* X_SERVER_LOCAL_H_ */