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
12 #ifndef XDMCP_SERVER_H_
13 #define XDMCP_SERVER_H_
15 #include <glib-object.h>
17 #include "xdmcp-session.h"
21 #define XDMCP_SERVER_TYPE (xdmcp_server_get_type())
22 #define XDMCP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SERVER_TYPE, XDMCPServer));
24 typedef struct XDMCPServerPrivate XDMCPServerPrivate;
28 GObject parent_instance;
29 XDMCPServerPrivate *priv;
34 GObjectClass parent_class;
36 gboolean (*new_session)(XDMCPServer *server, XDMCPSession *session);
39 GType xdmcp_server_get_type (void);
41 XDMCPServer *xdmcp_server_new (void);
43 void xdmcp_server_set_port (XDMCPServer *server, guint port);
45 guint xdmcp_server_get_port (XDMCPServer *server);
47 void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname);
49 const gchar *xdmcp_server_get_hostname (XDMCPServer *server);
51 void xdmcp_server_set_status (XDMCPServer *server, const gchar *status);
53 const gchar *xdmcp_server_get_status (XDMCPServer *server);
55 void xdmcp_server_set_key (XDMCPServer *server, const gchar *key);
57 gboolean xdmcp_server_start (XDMCPServer *server);
61 #endif /* XDMCP_SERVER_H_ */