~robert-ancell/lightdm/enable-tests

« back to all changes in this revision

Viewing changes to src/x-authority.h

  • Committer: Robert Ancell
  • Date: 2013-07-24 03:02:30 UTC
  • mto: (1576.18.17 mir-sessions)
  • mto: This revision was merged to the branch mainline in revision 1724.
  • Revision ID: robert.ancell@canonical.com-20130724030230-jrf02826o374tmgb
Name X modules with standard naming format

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 * license.
10
10
 */
11
11
 
12
 
#ifndef XAUTHORITY_H_
13
 
#define XAUTHORITY_H_
 
12
#ifndef X_AUTHORITY_H_
 
13
#define X_AUTHORITY_H_
14
14
 
15
15
#include <glib-object.h>
16
16
 
17
17
G_BEGIN_DECLS
18
18
 
19
 
#define XAUTHORITY_TYPE (xauth_get_type())
20
 
#define XAUTHORITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XAUTHORITY_TYPE, XAuthority));
 
19
#define X_AUTHORITY_TYPE (x_authority_get_type())
 
20
#define X_AUTHORITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_AUTHORITY_TYPE, XAuthority));
21
21
 
22
22
typedef struct XAuthorityPrivate XAuthorityPrivate;
23
23
 
50
50
   XAUTH_WRITE_MODE_SET  
51
51
} XAuthWriteMode;
52
52
 
53
 
GType xauth_get_type (void);
54
 
 
55
 
XAuthority *xauth_new (guint16 family, const guint8 *address, gsize address_length, const gchar *number, const gchar *name, const guint8 *data, gsize data_length);
56
 
 
57
 
XAuthority *xauth_new_cookie (guint16 family, const guint8 *address, gsize address_length, const gchar *number);
58
 
 
59
 
void xauth_set_family (XAuthority *auth, guint16 family);
60
 
 
61
 
guint16 xauth_get_family (XAuthority *auth);
62
 
 
63
 
void xauth_set_address (XAuthority *auth, const guint8 *address, gsize address_length);
64
 
 
65
 
const guint8 *xauth_get_address (XAuthority *auth);
66
 
 
67
 
const gsize xauth_get_address_length (XAuthority *auth);
68
 
 
69
 
void xauth_set_number (XAuthority *auth, const gchar *number);
70
 
 
71
 
const gchar *xauth_get_number (XAuthority *auth);
72
 
 
73
 
void xauth_set_authorization_name (XAuthority *auth, const gchar *name);
74
 
 
75
 
const gchar *xauth_get_authorization_name (XAuthority *auth);
76
 
 
77
 
void xauth_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length);
78
 
 
79
 
const guint8 *xauth_get_authorization_data (XAuthority *auth);
80
 
 
81
 
guint8 *xauth_copy_authorization_data (XAuthority *auth);
82
 
 
83
 
gsize xauth_get_authorization_data_length (XAuthority *auth);
84
 
 
85
 
gboolean xauth_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error);
 
53
GType x_authority_get_type (void);
 
54
 
 
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);
 
56
 
 
57
XAuthority *x_authority_new_cookie (guint16 family, const guint8 *address, gsize address_length, const gchar *number);
 
58
 
 
59
void x_authority_set_family (XAuthority *auth, guint16 family);
 
60
 
 
61
guint16 x_authority_get_family (XAuthority *auth);
 
62
 
 
63
void x_authority_set_address (XAuthority *auth, const guint8 *address, gsize address_length);
 
64
 
 
65
const guint8 *x_authority_get_address (XAuthority *auth);
 
66
 
 
67
const gsize x_authority_get_address_length (XAuthority *auth);
 
68
 
 
69
void x_authority_set_number (XAuthority *auth, const gchar *number);
 
70
 
 
71
const gchar *x_authority_get_number (XAuthority *auth);
 
72
 
 
73
void x_authority_set_authorization_name (XAuthority *auth, const gchar *name);
 
74
 
 
75
const gchar *x_authority_get_authorization_name (XAuthority *auth);
 
76
 
 
77
void x_authority_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length);
 
78
 
 
79
const guint8 *x_authority_get_authorization_data (XAuthority *auth);
 
80
 
 
81
guint8 *x_authority_copy_authorization_data (XAuthority *auth);
 
82
 
 
83
gsize x_authority_get_authorization_data_length (XAuthority *auth);
 
84
 
 
85
gboolean x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error);
86
86
 
87
87
G_END_DECLS
88
88
 
89
 
#endif /* XAUTHORITY_H_ */
 
89
#endif /* X_AUTHORITY_H_ */