SkillAgentSearch skills...

XDL

A single header file that dynamically loads the Xlib and GLX library. Written in/for ANSI C.

Install / Use

/learn @ColleagueRiley/XDL
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

XLib Dynamic Loader

alt text

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

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated1mo ago
Forks0

Languages

C

Security Score

75/100

Audited on Feb 5, 2026

No findings