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 typedef struct VNCServerPrivate VNCServerPrivate;
26 GObject parent_instance;
27 VNCServerPrivate *priv;
32 GObjectClass parent_class;
34 gboolean (*new_connection)(VNCServer *server, GSocket *socket);
37 GType vnc_server_get_type (void);
39 VNCServer *vnc_server_new (void);
41 void vnc_server_set_port (VNCServer *server, guint port);
43 guint vnc_server_get_port (VNCServer *server);
45 gboolean vnc_server_start (VNCServer *server);
49 #endif /* VNC_SERVER_H_ */