diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-10-13 00:22:22 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-06-20 20:12:50 +0200 |
commit | 27ecb8959669207aaab2c8d5fae12e51b4708f57 (patch) | |
tree | 097bcd496b2d1b4b705ae2e6a6d010f2e2f6d236 /nx-X11/programs/Xserver/hw/nxagent/Atoms.h | |
parent | a31353bdd2023cec7453b94438b98fac7e5fae6a (diff) | |
download | nx-libs-27ecb8959669207aaab2c8d5fae12e51b4708f57.tar.gz nx-libs-27ecb8959669207aaab2c8d5fae12e51b4708f57.tar.bz2 nx-libs-27ecb8959669207aaab2c8d5fae12e51b4708f57.zip |
Atoms.c: add helper to easily print Atom names in debugging
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Atoms.h')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Atoms.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Atoms.h b/nx-X11/programs/Xserver/hw/nxagent/Atoms.h index 9006b2253..8fe79883c 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Atoms.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Atoms.h @@ -71,12 +71,24 @@ void nxagentWMDetect(void); XlibAtom nxagentMakeAtom(char *, unsigned, Bool); /* - * Converts local atoms in remote atoms and viceversa. + * Converts local atoms to remote atoms and viceversa. */ Atom nxagentRemoteToLocalAtom(XlibAtom); XlibAtom nxagentLocalToRemoteAtom(Atom); -#endif +/* + * return the string belonging to an atom. String MUST NOT + * be freed by the caller! + */ +const char *nxagentRemoteAtomToString(XlibAtom remote); + +/* + * As nxagentRemoteAtomToString() is similar to NameForAtom() we + * supply a macro for calling it. + */ +#define NameForRemAtom(arg) nxagentRemoteAtomToString(arg) + +#endif /* XlibAtom */ #endif /* __Atoms_H__ */ |