4 #include <glib-object.h>
11 XAUTH_FAMILY_INTERNET = 0,
12 XAUTH_FAMILY_DECNET = 1,
13 XAUTH_FAMILY_CHAOS = 2,
14 XAUTH_FAMILY_SERVER_INTERPRETED = 5,
15 XAUTH_FAMILY_INTERNET6 = 6,
16 XAUTH_FAMILY_LOCALHOST = 252,
17 XAUTH_FAMILY_KRB5_PRINCIPAL = 253,
18 XAUTH_FAMILY_NETNAME = 254,
19 XAUTH_FAMILY_LOCAL = 256,
20 XAUTH_FAMILY_WILD = 65535
23 typedef struct XAuthorityPrivate XAuthorityPrivate;
27 GObjectClass parent_instance;
28 XAuthorityPrivate *priv;
33 GObjectClass parent_class;
36 typedef struct XAuthorityRecordPrivate XAuthorityRecordPrivate;
40 GObjectClass parent_instance;
41 XAuthorityRecordPrivate *priv;
46 GObjectClass parent_class;
47 } XAuthorityRecordClass;
49 GType x_authority_get_type (void);
51 GType x_authority_record_get_type (void);
53 XAuthority *x_authority_new (void);
55 gboolean x_authority_load (XAuthority *authority, const gchar *filename, GError **error);
57 XAuthorityRecord *x_authority_match_local (XAuthority *authority, const gchar *authorization_name);
59 XAuthorityRecord *x_authority_match_localhost (XAuthority *authority, const gchar *authorization_name);
61 XAuthorityRecord *x_authority_match_inet (XAuthority *authority, GInetAddress *address, const gchar *authorization_name);
63 guint16 x_authority_record_get_authorization_data_length (XAuthorityRecord *record);
65 const guint8 *x_authority_record_get_authorization_data (XAuthorityRecord *record);
67 gboolean x_authority_record_check_cookie (XAuthorityRecord *record, const guint8 *cookie_data, guint16 cookie_data_length);
71 #endif /* X_AUTHORITY_H_ */