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_XVNC_H_
13 #define X_SERVER_XVNC_H_
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))
23 typedef struct XServerXVNCPrivate XServerXVNCPrivate;
27 XServer parent_instance;
28 XServerXVNCPrivate *priv;
33 XServerClass parent_class;
35 void (*ready)(XServerXVNC *server);
38 GType x_server_xvnc_get_type (void);
40 gboolean x_server_xvnc_check_available (void);
42 XServerXVNC *x_server_xvnc_new (void);
44 void x_server_xvnc_set_command (XServerXVNC *server, const gchar *command);
46 void x_server_xvnc_set_socket (XServerXVNC *server, int fd);
48 int x_server_xvnc_get_socket (XServerXVNC *server);
50 void x_server_xvnc_set_geometry (XServerXVNC *server, gint width, gint height);
52 void x_server_xvnc_set_depth (XServerXVNC *server, gint depth);
54 const gchar *x_server_xvnc_get_authority_file_path (XServerXVNC *server);
58 #endif /* X_SERVER_XVNC_H_ */