Back to index

lightdm  1.3.2
vnc-server.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Robert Ancell.
00003  * Author: Robert Ancell <robert.ancell@canonical.com>
00004  * 
00005  * This program is free software: you can redistribute it and/or modify it under
00006  * the terms of the GNU General Public License as published by the Free Software
00007  * Foundation, either version 3 of the License, or (at your option) any later
00008  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
00009  * license.
00010  */
00011 
00012 #ifndef _VNC_SERVER_H_
00013 #define _VNC_SERVER_H_
00014 
00015 #include <glib-object.h>
00016 
00017 G_BEGIN_DECLS
00018 
00019 #define VNC_SERVER_TYPE (vnc_server_get_type())
00020 #define VNC_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VNC_SERVER_TYPE, VNCServer));
00021 
00022 typedef struct VNCServerPrivate VNCServerPrivate;
00023 
00024 typedef struct
00025 {
00026     GObject         parent_instance;
00027     VNCServerPrivate *priv;
00028 } VNCServer;
00029 
00030 typedef struct
00031 {
00032     GObjectClass parent_class;
00033 
00034     gboolean (*new_connection)(VNCServer *server, GSocket *socket);
00035 } VNCServerClass;
00036 
00037 GType vnc_server_get_type (void);
00038 
00039 VNCServer *vnc_server_new (void);
00040 
00041 void vnc_server_set_port (VNCServer *server, guint port);
00042 
00043 guint vnc_server_get_port (VNCServer *server);
00044 
00045 gboolean vnc_server_start (VNCServer *server);
00046 
00047 G_END_DECLS
00048 
00049 #endif /* _VNC_SERVER_H_ */