Back to index

lightdm  1.3.2
xserver-xvnc.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 _XSERVER_XVNC_H_
00013 #define _XSERVER_XVNC_H_
00014 
00015 #include "xserver.h"
00016 
00017 G_BEGIN_DECLS
00018 
00019 #define XSERVER_XVNC_TYPE    (xserver_xvnc_get_type())
00020 #define XSERVER_XVNC(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), XSERVER_XVNC_TYPE, XServerXVNC))
00021 #define IS_XSERVER_XVNC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XSERVER_XVNC_TYPE))
00022 
00023 typedef struct XServerXVNCPrivate XServerXVNCPrivate;
00024 
00025 typedef struct
00026 {
00027     XServer              parent_instance;
00028     XServerXVNCPrivate *priv;
00029 } XServerXVNC;
00030 
00031 typedef struct
00032 {
00033     XServerClass parent_class;
00034 
00035     void (*ready)(XServerXVNC *server);
00036 } XServerXVNCClass;
00037 
00038 GType xserver_xvnc_get_type (void);
00039 
00040 gboolean xserver_xvnc_check_available (void);
00041 
00042 XServerXVNC *xserver_xvnc_new (void);
00043 
00044 void xserver_xvnc_set_socket (XServerXVNC *server, int fd);
00045 
00046 int xserver_xvnc_get_socket (XServerXVNC *server);
00047 
00048 void xserver_xvnc_set_geometry (XServerXVNC *server, gint width, gint height);
00049 
00050 void xserver_xvnc_set_depth (XServerXVNC *server, gint depth);
00051 
00052 gchar *xserver_xvnc_get_authority_file_path (XServerXVNC *server);
00053 
00054 G_END_DECLS
00055 
00056 #endif /* _XSERVER_XVNC_H_ */