compat.xcb
#includeX C Binding core library built from upstream sources
#include <xcb/xcb.h>
mcpp add compat.xcb@1.17.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
#ifdef __linux__
#include <cstdlib>
#include <xcb/xcb.h>
int main() {
char* host = nullptr; int display = -1, screen = -1;
const int ok = xcb_parse_display(":0.1", &host, &display, &screen);
std::free(host);
return ok && display == 0 && screen == 1 ? 0 : 1;
}
#else
int main() { return 0; }
#endif
tests/examples/gui-stack/tests/xcb.cpp · project tests/examples/gui-stack
Build
- targets
xcb (shared)- language
c++23- C standard
c11- import std
- no
- include dirs
src, include
Sources (11)
src/xcb_conn.csrc/xcb_out.csrc/xcb_in.csrc/xcb_ext.csrc/xcb_xid.csrc/xcb_list.csrc/xcb_util.csrc/xcb_auth.csrc/xproto.csrc/bigreq.csrc/xc_misc.c