mcpp index

compat.xcb

#include

X 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.c
  • src/xcb_out.c
  • src/xcb_in.c
  • src/xcb_ext.c
  • src/xcb_xid.c
  • src/xcb_list.c
  • src/xcb_util.c
  • src/xcb_auth.c
  • src/xproto.c
  • src/bigreq.c
  • src/xc_misc.c

Versions

VersionPlatforms Mirrorssha256
1.17.0 latest Linux CN GLOBAL 599ebf999671…