compat.xdmcp
#includeX Display Manager Control Protocol library
#include <X11/Xdmcp.h>
mcpp add compat.xdmcp@1.1.5
用法
來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。
#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 · 專案 tests/examples/gui-stack
建置
- targets
Xdmcp (shared)- language
c++23- C standard
c11- import std
- no
- include dirs
*/include, *
原始檔 (8)
*/Array.c*/Fill.c*/Flush.c*/Key.c*/Read.c*/Unwrap.c*/Wrap.c*/Write.c