]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/xdmcp-server.h
Remove trailing whitespace
[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 typedef struct XDMCPServerPrivate XDMCPServerPrivate;
25
26 typedef struct
27 {
28     GObject         parent_instance;
29     XDMCPServerPrivate *priv;
30 } XDMCPServer;
31
32 typedef struct
33 {
34     GObjectClass parent_class;
35
36     gboolean (*new_session)(XDMCPServer *server, XDMCPSession *session);
37 } XDMCPServerClass;
38
39 GType xdmcp_server_get_type (void);
40
41 XDMCPServer *xdmcp_server_new (void);
42
43 void xdmcp_server_set_port (XDMCPServer *server, guint port);
44
45 guint xdmcp_server_get_port (XDMCPServer *server);
46
47 void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname);
48
49 const gchar *xdmcp_server_get_hostname (XDMCPServer *server);
50
51 void xdmcp_server_set_status (XDMCPServer *server, const gchar *status);
52
53 const gchar *xdmcp_server_get_status (XDMCPServer *server);
54
55 void xdmcp_server_set_key (XDMCPServer *server, const gchar *key);
56
57 gboolean xdmcp_server_start (XDMCPServer *server);
58
59 G_END_DECLS
60
61 #endif /* XDMCP_SERVER_H_ */