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 #define XDMCP_SERVER_SIGNAL_NEW_SESSION "new-session"
26 typedef struct XDMCPServerPrivate XDMCPServerPrivate;
30 GObject parent_instance;
31 XDMCPServerPrivate *priv;
36 GObjectClass parent_class;
38 gboolean (*new_session)(XDMCPServer *server, XDMCPSession *session);
41 GType xdmcp_server_get_type (void);
43 XDMCPServer *xdmcp_server_new (void);
45 void xdmcp_server_set_port (XDMCPServer *server, guint port);
47 guint xdmcp_server_get_port (XDMCPServer *server);
49 void xdmcp_server_set_listen_address (XDMCPServer *server, const gchar *listen_address);
51 const gchar *xdmcp_server_get_listen_address (XDMCPServer *server);
53 void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname);
55 const gchar *xdmcp_server_get_hostname (XDMCPServer *server);
57 void xdmcp_server_set_status (XDMCPServer *server, const gchar *status);
59 const gchar *xdmcp_server_get_status (XDMCPServer *server);
61 void xdmcp_server_set_key (XDMCPServer *server, const gchar *key);
63 gboolean xdmcp_server_start (XDMCPServer *server);
67 #endif /* XDMCP_SERVER_H_ */