diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-01-05 22:59:43 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-01-05 22:59:43 +0100 |
commit | 04962efa95a41cd6f665ebb110a7ce07d99a4554 (patch) | |
tree | 1d319a61f55dd6132c17b5e7cb45b4585c3b6160 /nx-X11/programs/Xserver/hw/nxagent/Atoms.h | |
parent | a261b72435d7d30dbe36529a51fc53f6ade34dff (diff) | |
parent | 427b7b9777727df4115e3e9e6e63d5176fb0b495 (diff) | |
download | nx-libs-04962efa95a41cd6f665ebb110a7ce07d99a4554.tar.gz nx-libs-04962efa95a41cd6f665ebb110a7ce07d99a4554.tar.bz2 nx-libs-04962efa95a41cd6f665ebb110a7ce07d99a4554.zip |
Merge branch 'uli42-pr/xlib_types' into 3.6.x
Attributes GH PR #883: https://github.com/ArcticaProject/nx-libs/pull/883
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Atoms.h')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Atoms.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Atoms.h b/nx-X11/programs/Xserver/hw/nxagent/Atoms.h index cbbb7bd1d..f770c7e66 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Atoms.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Atoms.h @@ -51,23 +51,33 @@ void nxagentInitAtoms(); int nxagentQueryAtoms(ScreenPtr pScreen); +void nxagentResetAtomMap(void); + +void nxagentWMDetect(void); + +#ifdef XlibAtom + +/* + * only provide these protoypes if the including file knows about Xlib + * types. This allows us including Atoms.h without having to use the + * Xlib type magic of Agent.h + */ + /* * Create the atoms on the remote X server * and cache the couple local-remote atoms. */ -Atom nxagentMakeAtom(char *, unsigned, Bool); +XlibAtom nxagentMakeAtom(char *, unsigned, Bool); /* * Converts local atoms in remote atoms and * viceversa. */ -Atom nxagentRemoteToLocalAtom(Atom); -Atom nxagentLocalToRemoteAtom(Atom); +Atom nxagentRemoteToLocalAtom(XlibAtom); +XlibAtom nxagentLocalToRemoteAtom(Atom); -void nxagentResetAtomMap(void); - -void nxagentWMDetect(void); +#endif #endif /* __Atoms_H__ */ |