1 #ifndef XDMCP_CLIENT_H_
2 #define XDMCP_CLIENT_H_
4 #include <glib-object.h>
7 #define XDMCP_VERSION 1
12 gchar *authentication_name;
20 gchar *authentication_name;
21 gchar *authorization_name;
22 guint16 authorization_data_length;
23 guint8 *authorization_data;
29 gchar *authentication_name;
38 typedef struct XDMCPClientPrivate XDMCPClientPrivate;
42 GObject parent_instance;
43 XDMCPClientPrivate *priv;
48 GObjectClass parent_class;
49 void (*query)(XDMCPClient *client);
50 void (*willing)(XDMCPClient *client, XDMCPWilling *message);
51 void (*accept)(XDMCPClient *client, XDMCPAccept *message);
52 void (*decline)(XDMCPClient *client, XDMCPDecline *message);
53 void (*failed)(XDMCPClient *client, XDMCPFailed *message);
56 GType xdmcp_client_get_type (void);
58 XDMCPClient *xdmcp_client_new (void);
60 void xdmcp_client_set_hostname (XDMCPClient *client, const gchar *hostname);
62 void xdmcp_client_set_port (XDMCPClient *client, guint16 port);
64 gboolean xdmcp_client_start (XDMCPClient *client);
66 GInetAddress *xdmcp_client_get_local_address (XDMCPClient *client);
68 void xdmcp_client_send_query (XDMCPClient *client);
70 void xdmcp_client_send_request (XDMCPClient *client,
71 guint16 display_number,
72 GInetAddress **addresses,
73 const gchar *authentication_name,
74 const guint8 *authentication_data, guint16 authentication_data_length,
75 gchar **authorization_names, const gchar *mfid);
77 void xdmcp_client_send_manage (XDMCPClient *client, guint32 session_id, guint16 display_number, gchar *display_class);
81 #endif /* XDMCP_CLIENT_H_ */