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_PROTOCOL_H_
13 #define XDMCP_PROTOCOL_H_
17 #define XDMCP_VERSION 1
21 XDMCP_BroadcastQuery = 1,
23 XDMCP_IndirectQuery = 3,
24 XDMCP_ForwardQuery = 4,
57 gchar **authentication_names;
62 gchar *client_address;
64 gchar **authentication_names;
69 gchar *authentication_name;
82 guint16 display_number;
84 XDMCPConnection *connections;
85 gchar *authentication_name;
86 XDMCPData authentication_data;
87 gchar **authorization_names;
88 gchar *manufacturer_display_id;
94 gchar *authentication_name;
95 XDMCPData authentication_data;
96 gchar *authorization_name;
97 XDMCPData authorization_data;
103 gchar *authentication_name;
104 XDMCPData authentication_data;
110 guint16 display_number;
111 gchar *display_class;
127 guint16 display_number;
133 gboolean session_running;
139 XDMCPPacket *xdmcp_packet_alloc (XDMCPOpcode opcode);
141 XDMCPPacket *xdmcp_packet_decode (const guchar *data, gsize length);
143 gssize xdmcp_packet_encode (XDMCPPacket *packet, guchar *data, gsize length);
145 gchar *xdmcp_packet_tostring (XDMCPPacket *packet);
147 void xdmcp_packet_free (XDMCPPacket *packet);
149 #endif /* XDMCP_PROTOCOL_H_ */