XDL
A single header file that dynamically loads the Xlib and GLX library. Written in/for ANSI C.
Install / Use
/learn @ColleagueRiley/XDLREADME
XLib Dynamic Loader

A single header file that dynamically loads the Xlib and GLX library
Use
First, define XDL_IMPLEMENTATION and include the library
#define XDL_IMPLEMENTATION
#include "XDL.h"
Next, use XDL_init to load the X11 module
XDL_init();
When you're done, make sure to close the module, this frees all the allocated data and stored functions
XDL_close();
You can also define XDL_NO_GLX before including XDL if you don't want to include the GLX module
#define XDL_NO_GLX
#define XDL_IMPLEMENTATION
#include "XDL.h"
Credits
-
GLFW Much of this implementation is based on GLFW's internal x11 dynamic loader A great portion of the declarations for the X11 module are sourced from GLFW
-
stb This project is heavily inspired by the stb single header files
License
This project is public domain but credit would be greatly appreciated.
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
