]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/x-server-xvnc.h
Make guest account script more portable
[sojka/lightdm.git] / src / x-server-xvnc.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_XVNC_H_
13 #define X_SERVER_XVNC_H_
14
15 #include "x-server.h"
16
17 G_BEGIN_DECLS
18
19 #define X_SERVER_XVNC_TYPE    (x_server_xvnc_get_type())
20 #define X_SERVER_XVNC(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_XVNC_TYPE, XServerXVNC))
21 #define IS_X_SERVER_XVNC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_XVNC_TYPE))
22
23 typedef struct XServerXVNCPrivate XServerXVNCPrivate;
24
25 typedef struct
26 {
27     XServer              parent_instance;
28     XServerXVNCPrivate *priv;
29 } XServerXVNC;
30
31 typedef struct
32 {
33     XServerClass parent_class;
34
35     void (*ready)(XServerXVNC *server);
36 } XServerXVNCClass;
37
38 GType x_server_xvnc_get_type (void);
39
40 gboolean x_server_xvnc_check_available (void);
41
42 XServerXVNC *x_server_xvnc_new (void);
43
44 void x_server_xvnc_set_command (XServerXVNC *server, const gchar *command);
45
46 void x_server_xvnc_set_socket (XServerXVNC *server, int fd);
47
48 int x_server_xvnc_get_socket (XServerXVNC *server);
49
50 void x_server_xvnc_set_geometry (XServerXVNC *server, gint width, gint height);
51
52 void x_server_xvnc_set_depth (XServerXVNC *server, gint depth);
53
54 const gchar *x_server_xvnc_get_authority_file_path (XServerXVNC *server);
55
56 G_END_DECLS
57
58 #endif /* X_SERVER_XVNC_H_ */