mcpp index

compat.xau

#include

X authorization file management library

#include <X11/Xauth.h>
mcpp add compat.xau@1.0.12

用法

來自本倉庫自己的測試專案 —— 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
Xau (shared)
language
c++23
C standard
c11
import std
no
include dirs
*/include

原始檔 (8)

  • */AuDispose.c
  • */AuFileName.c
  • */AuGetAddr.c
  • */AuGetBest.c
  • */AuLock.c
  • */AuRead.c
  • */AuUnlock.c
  • */AuWrite.c

版本

版本平台 鏡像sha256
1.0.12 最新 Linux CN GLOBAL 2402dd938da4…