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>
19 #define VNC_SERVER_TYPE (vnc_server_get_type())
20 #define VNC_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VNC_SERVER_TYPE, VNCServer));
22 #define VNC_SERVER_SIGNAL_NEW_CONNECTION "new-connection"
24 typedef struct VNCServerPrivate VNCServerPrivate;
28 GObject parent_instance;
29 VNCServerPrivate *priv;
34 GObjectClass parent_class;
36 gboolean (*new_connection)(VNCServer *server, GSocket *socket);
39 GType vnc_server_get_type (void);
41 VNCServer *vnc_server_new (void);
43 void vnc_server_set_port (VNCServer *server, guint port);
45 guint vnc_server_get_port (VNCServer *server);
47 void vnc_server_set_listen_address (VNCServer *server, const gchar *listen_address);
49 const gchar *vnc_server_get_listen_address (VNCServer *server);
51 gboolean vnc_server_start (VNCServer *server);
55 #endif /* VNC_SERVER_H_ */