/* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef _XDMCP_SESSION_H_ #define _XDMCP_SESSION_H_ #include #include G_BEGIN_DECLS #define XDMCP_SESSION_TYPE (xdmcp_session_get_type()) #define XDMCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SESSION_TYPE, XDMCPSession)); typedef struct XDMCPSessionPrivate XDMCPSessionPrivate; typedef struct { GObject parent_instance; XDMCPSessionPrivate *priv; } XDMCPSession; typedef struct { GObjectClass parent_class; } XDMCPSessionClass; GType xdmcp_session_get_type (void); XDMCPSession *xdmcp_session_new (guint16 id); guint16 xdmcp_session_get_id (XDMCPSession *session); const gchar *xdmcp_session_get_manufacturer_display_id (XDMCPSession *session); const GInetAddress *xdmcp_session_get_address (XDMCPSession *session); const GInetAddress *xdmcp_session_get_address6 (XDMCPSession *session); const gchar *xdmcp_session_get_authorization_name (XDMCPSession *session); const guchar *xdmcp_session_get_authorization_data (XDMCPSession *session); const gsize xdmcp_session_get_authorization_data_length (XDMCPSession *session); guint16 xdmcp_session_get_display_number (XDMCPSession *session); const gchar *xdmcp_session_get_display_class (XDMCPSession *session); G_END_DECLS #endif /* _XDMCP_SESSION_H_ */