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_SESSION_H_
13 #define XDMCP_SESSION_H_
15 #include <glib-object.h>
18 #include "x-authority.h"
22 #define XDMCP_SESSION_TYPE (xdmcp_session_get_type())
23 #define XDMCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SESSION_TYPE, XDMCPSession));
25 typedef struct XDMCPSessionPrivate XDMCPSessionPrivate;
29 GObject parent_instance;
30 XDMCPSessionPrivate *priv;
35 GObjectClass parent_class;
38 GType xdmcp_session_get_type (void);
40 XDMCPSession *xdmcp_session_new (guint16 id);
42 guint16 xdmcp_session_get_id (XDMCPSession *session);
44 const gchar *xdmcp_session_get_manufacturer_display_id (XDMCPSession *session);
46 GInetAddress *xdmcp_session_get_address (XDMCPSession *session);
48 XAuthority *xdmcp_session_get_authority (XDMCPSession *session);
50 guint16 xdmcp_session_get_display_number (XDMCPSession *session);
52 const gchar *xdmcp_session_get_display_class (XDMCPSession *session);
56 #endif /* XDMCP_SESSION_H_ */