compat.xau
#includeX authorization file management library
#include <X11/Xauth.h>
mcpp add compat.xau@1.0.12
Usage
From this repository's own test project — built and run by CI, not written for the website.
#ifdef __linux__
#include <X11/Xauth.h>
#include <X11/Xdmcp.h>
int main() {
ARRAY8 array{};
const int allocated = XdmcpAllocARRAY8(&array, 1);
if (allocated) XdmcpDisposeARRAY8(&array);
char* auth_file = XauFileName();
return allocated && auth_file != nullptr ? 0 : 1;
}
#else
int main() { return 0; }
#endif
tests/examples/gui-stack/tests/xorg.cpp · project tests/examples/gui-stack
Build
- targets
Xau (shared)- language
c++23- C standard
c11- import std
- no
- include dirs
*/include
Sources (8)
*/AuDispose.c*/AuFileName.c*/AuGetAddr.c*/AuGetBest.c*/AuLock.c*/AuRead.c*/AuUnlock.c*/AuWrite.c