diff options
Diffstat (limited to 'atom/xcb_atom.h.m4')
-rw-r--r-- | atom/xcb_atom.h.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/atom/xcb_atom.h.m4 b/atom/xcb_atom.h.m4 new file mode 100644 index 0000000..7a88cfc --- /dev/null +++ b/atom/xcb_atom.h.m4 @@ -0,0 +1,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 */ |