Back to index

lightdm  1.3.2
xdmcp-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 _XDMCP_SERVER_H_
00013 #define _XDMCP_SERVER_H_
00014 
00015 #include <glib-object.h>
00016 
00017 #include "xdmcp-session.h"
00018 
00019 G_BEGIN_DECLS
00020 
00021 #define XDMCP_SERVER_TYPE (xdmcp_server_get_type())
00022 #define XDMCP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SERVER_TYPE, XDMCPServer));
00023 
00024 typedef struct XDMCPServerPrivate XDMCPServerPrivate;
00025 
00026 typedef struct
00027 {
00028     GObject         parent_instance;
00029     XDMCPServerPrivate *priv;
00030 } XDMCPServer;
00031 
00032 typedef struct
00033 {
00034     GObjectClass parent_class;
00035 
00036     gboolean (*new_session)(XDMCPServer *server, XDMCPSession *session);
00037 } XDMCPServerClass;
00038 
00039 GType xdmcp_server_get_type (void);
00040 
00041 XDMCPServer *xdmcp_server_new (void);
00042 
00043 void xdmcp_server_set_port (XDMCPServer *server, guint port);
00044 
00045 guint xdmcp_server_get_port (XDMCPServer *server);
00046 
00047 void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname);
00048 
00049 const gchar *xdmcp_server_get_hostname (XDMCPServer *server);
00050 
00051 void xdmcp_server_set_status (XDMCPServer *server, const gchar *status);
00052 
00053 const gchar *xdmcp_server_get_status (XDMCPServer *server);
00054 
00055 void xdmcp_server_set_key (XDMCPServer *server, const gchar *key);
00056 
00057 gboolean xdmcp_server_start (XDMCPServer *server);
00058 
00059 G_END_DECLS
00060 
00061 #endif /* _XDMCP_SERVER_H_ */