2
* Copyright (C) 2010 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_authentication (XDMCPServer *server, const gchar *name, const guchar *data, gsize data_length);
57
const gchar *xdmcp_server_get_authentication_name (XDMCPServer *server);
59
const guchar *xdmcp_server_get_authentication_data (XDMCPServer *server);
61
gsize xdmcp_server_get_authentication_data_length (XDMCPServer *server);
63
void xdmcp_server_set_authorization (XDMCPServer *server, const gchar *name, const guchar *data, gsize data_length);
65
const gchar *xdmcp_server_get_authorization_name (XDMCPServer *server);
67
const guchar *xdmcp_server_get_authorization_data (XDMCPServer *server);
69
gsize xdmcp_server_get_authorization_data_length (XDMCPServer *server);
71
gboolean xdmcp_server_start (XDMCPServer *server);
75
#endif /* _XDMCP_SERVER_H_ */