50
50
XAUTH_WRITE_MODE_SET
53
GType xauth_get_type (void);
55
XAuthority *xauth_new (guint16 family, const guint8 *address, gsize address_length, const gchar *number, const gchar *name, const guint8 *data, gsize data_length);
57
XAuthority *xauth_new_cookie (guint16 family, const guint8 *address, gsize address_length, const gchar *number);
59
void xauth_set_family (XAuthority *auth, guint16 family);
61
guint16 xauth_get_family (XAuthority *auth);
63
void xauth_set_address (XAuthority *auth, const guint8 *address, gsize address_length);
65
const guint8 *xauth_get_address (XAuthority *auth);
67
const gsize xauth_get_address_length (XAuthority *auth);
69
void xauth_set_number (XAuthority *auth, const gchar *number);
71
const gchar *xauth_get_number (XAuthority *auth);
73
void xauth_set_authorization_name (XAuthority *auth, const gchar *name);
75
const gchar *xauth_get_authorization_name (XAuthority *auth);
77
void xauth_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length);
79
const guint8 *xauth_get_authorization_data (XAuthority *auth);
81
guint8 *xauth_copy_authorization_data (XAuthority *auth);
83
gsize xauth_get_authorization_data_length (XAuthority *auth);
85
gboolean xauth_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error);
53
GType x_authority_get_type (void);
55
XAuthority *x_authority_new (guint16 family, const guint8 *address, gsize address_length, const gchar *number, const gchar *name, const guint8 *data, gsize data_length);
57
XAuthority *x_authority_new_cookie (guint16 family, const guint8 *address, gsize address_length, const gchar *number);
59
void x_authority_set_family (XAuthority *auth, guint16 family);
61
guint16 x_authority_get_family (XAuthority *auth);
63
void x_authority_set_address (XAuthority *auth, const guint8 *address, gsize address_length);
65
const guint8 *x_authority_get_address (XAuthority *auth);
67
const gsize x_authority_get_address_length (XAuthority *auth);
69
void x_authority_set_number (XAuthority *auth, const gchar *number);
71
const gchar *x_authority_get_number (XAuthority *auth);
73
void x_authority_set_authorization_name (XAuthority *auth, const gchar *name);
75
const gchar *x_authority_get_authorization_name (XAuthority *auth);
77
void x_authority_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length);
79
const guint8 *x_authority_get_authorization_data (XAuthority *auth);
81
guint8 *x_authority_copy_authorization_data (XAuthority *auth);
83
gsize x_authority_get_authorization_data_length (XAuthority *auth);
85
gboolean x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error);
89
#endif /* XAUTHORITY_H_ */
89
#endif /* X_AUTHORITY_H_ */