Back to index

lightdm  1.3.2
xserver-local.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_LOCAL_H_
00013 #define _XSERVER_LOCAL_H_
00014 
00015 #include "xserver.h"
00016 
00017 G_BEGIN_DECLS
00018 
00019 #define XSERVER_LOCAL_TYPE    (xserver_local_get_type())
00020 #define XSERVER_LOCAL(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), XSERVER_LOCAL_TYPE, XServerLocal))
00021 #define IS_XSERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XSERVER_LOCAL_TYPE))
00022 
00023 typedef struct XServerLocalPrivate XServerLocalPrivate;
00024 
00025 typedef struct
00026 {
00027     XServer              parent_instance;
00028     XServerLocalPrivate *priv;
00029 } XServerLocal;
00030 
00031 typedef struct
00032 {
00033     XServerClass parent_class;
00034 
00035     void (*ready)(XServerLocal *server);
00036 } XServerLocalClass;
00037 
00038 guint xserver_local_get_unused_display_number (void);
00039 
00040 void xserver_local_release_display_number (guint display_number);
00041 
00042 GType xserver_local_get_type (void);
00043 
00044 XServerLocal *xserver_local_new (void);
00045 
00046 void xserver_local_set_command (XServerLocal *server, const gchar *command);
00047 
00048 void xserver_local_set_config (XServerLocal *server, const gchar *path);
00049 
00050 void xserver_local_set_layout (XServerLocal *server, const gchar *layout);
00051 
00052 void xserver_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp);
00053 
00054 void xserver_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname);
00055 
00056 const gchar *xserver_local_get_xdmcp_server (XServerLocal *server);
00057 
00058 void xserver_local_set_xdmcp_port (XServerLocal *server, guint port);
00059 
00060 guint xserver_local_get_xdmcp_port (XServerLocal *server);
00061 
00062 void xserver_local_set_xdmcp_key (XServerLocal *server, const gchar *key);
00063 
00064 gint xserver_local_get_vt (XServerLocal *server);
00065 
00066 gchar *xserver_local_get_authority_file_path (XServerLocal *server);
00067 
00068 G_END_DECLS
00069 
00070 #endif /* _XSERVER_LOCAL_H_ */