]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/xdmcp-server.h
Releasing 1.19.5
[sojka/lightdm.git] / src / xdmcp-server.h
1 /*
2  * Copyright (C) 2010-2011 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  *
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
9  * license.
10  */
11
12 #ifndef XDMCP_SERVER_H_
13 #define XDMCP_SERVER_H_
14
15 #include <glib-object.h>
16
17 #include "xdmcp-session.h"
18
19 G_BEGIN_DECLS
20
21 #define XDMCP_SERVER_TYPE (xdmcp_server_get_type())
22 #define XDMCP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SERVER_TYPE, XDMCPServer));
23
24 #define XDMCP_SERVER_SIGNAL_NEW_SESSION "new-session"
25
26 typedef struct XDMCPServerPrivate XDMCPServerPrivate;
27
28 typedef struct
29 {
30     GObject         parent_instance;
31     XDMCPServerPrivate *priv;
32 } XDMCPServer;
33
34 typedef struct
35 {
36     GObjectClass parent_class;
37
38     gboolean (*new_session)(XDMCPServer *server, XDMCPSession *session);
39 } XDMCPServerClass;
40
41 GType xdmcp_server_get_type (void);
42
43 XDMCPServer *xdmcp_server_new (void);
44
45 void xdmcp_server_set_port (XDMCPServer *server, guint port);
46
47 guint xdmcp_server_get_port (XDMCPServer *server);
48
49 void xdmcp_server_set_listen_address (XDMCPServer *server, const gchar *listen_address);
50
51 const gchar *xdmcp_server_get_listen_address (XDMCPServer *server);
52
53 void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname);
54
55 const gchar *xdmcp_server_get_hostname (XDMCPServer *server);
56
57 void xdmcp_server_set_status (XDMCPServer *server, const gchar *status);
58
59 const gchar *xdmcp_server_get_status (XDMCPServer *server);
60
61 void xdmcp_server_set_key (XDMCPServer *server, const gchar *key);
62
63 gboolean xdmcp_server_start (XDMCPServer *server);
64
65 G_END_DECLS
66
67 #endif /* XDMCP_SERVER_H_ */