summaryrefslogtreecommitdiff
path: root/atom/xcb_atom.h.m4
blob: 7a88cfc1729c9d291fcd85efc42e760e52da9260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef ATOMS_H
#define ATOMS_H

enum tag_t {
	TAG_COOKIE,
	TAG_VALUE
};
typedef struct {
	enum tag_t tag;
	union {
		XCBInternAtomCookie cookie;
		XCBATOM atom;
	} u;
} InternAtomFastCookie;

XCBATOM InternAtomPredefined(CARD16 name_len, const char *name);
InternAtomFastCookie InternAtomFast(XCBConnection *c, BOOL only_if_exists, CARD16 name_len, const char *name);
XCBATOM InternAtomFastReply(XCBConnection *c, InternAtomFastCookie cookie, XCBGenericError **e);

const char *GetAtomNamePredefined(XCBATOM atom);
int GetAtomName(XCBConnection *c, XCBATOM atom, const char **namep, int *lengthp);

define(`DO', `extern const XCBATOM $1;')dnl
include(atomlist.m4)`'dnl

#endif /* ATOMS_H */