]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/xdmcp-session.h
Load all users only when really needed
[sojka/lightdm.git] / src / xdmcp-session.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_SESSION_H_
13 #define XDMCP_SESSION_H_
14
15 #include <glib-object.h>
16 #include <gio/gio.h>
17
18 #include "x-authority.h"
19
20 G_BEGIN_DECLS
21
22 #define XDMCP_SESSION_TYPE (xdmcp_session_get_type())
23 #define XDMCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SESSION_TYPE, XDMCPSession));
24
25 typedef struct XDMCPSessionPrivate XDMCPSessionPrivate;
26
27 typedef struct
28 {
29     GObject         parent_instance;
30     XDMCPSessionPrivate *priv;
31 } XDMCPSession;
32
33 typedef struct
34 {
35     GObjectClass parent_class;
36 } XDMCPSessionClass;
37
38 GType xdmcp_session_get_type (void);
39
40 XDMCPSession *xdmcp_session_new (guint16 id);
41
42 guint16 xdmcp_session_get_id (XDMCPSession *session);
43
44 const gchar *xdmcp_session_get_manufacturer_display_id (XDMCPSession *session);
45
46 GInetAddress *xdmcp_session_get_address (XDMCPSession *session);
47
48 XAuthority *xdmcp_session_get_authority (XDMCPSession *session);
49
50 guint16 xdmcp_session_get_display_number (XDMCPSession *session);
51
52 const gchar *xdmcp_session_get_display_class (XDMCPSession *session);
53
54 G_END_DECLS
55
56 #endif /* XDMCP_SESSION_H_ */