{"id":15049370,"url":"https://github.com/colleagueriley/xdl","last_synced_at":"2025-06-21T22:41:49.884Z","repository":{"id":156746854,"uuid":"628686404","full_name":"ColleagueRiley/XDL","owner":"ColleagueRiley","description":"A single header file that dynamically loads the Xlib and GLX library. Written in/for ANSI C. ","archived":false,"fork":false,"pushed_at":"2025-05-26T14:13:56.000Z","size":103,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-26T15:30:37.062Z","etag":null,"topics":["ansi-c","c","c89","cpp","dymanic","header-only","public-domain","rsgl","single-header","x11","xlib"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ColleagueRiley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-16T18:00:03.000Z","updated_at":"2025-05-26T14:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"06dbb2e9-a512-42f2-aacc-2bda8bb149a0","html_url":"https://github.com/ColleagueRiley/XDL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ColleagueRiley/XDL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColleagueRiley%2FXDL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColleagueRiley%2FXDL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColleagueRiley%2FXDL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColleagueRiley%2FXDL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ColleagueRiley","download_url":"https://codeload.github.com/ColleagueRiley/XDL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColleagueRiley%2FXDL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261205690,"owners_count":23124813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi-c","c","c89","cpp","dymanic","header-only","public-domain","rsgl","single-header","x11","xlib"],"created_at":"2024-09-24T21:19:59.476Z","updated_at":"2025-06-21T22:41:44.860Z","avatar_url":"https://github.com/ColleagueRiley.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XLib Dynamic Loader\n![alt text](https://github.com/ColleagueRiley/XDL/blob/main/logo.png?raw=true)\n\nA single header file that dynamically loads the Xlib and GLX library\n\n# Use\nFirst, define XDL_IMPLEMENTATION and include the library \n\n```c\n#define XDL_IMPLEMENTATION\n#include \"XDL.h\"\n```\n\nNext, use XDL_init to load the X11 module \n\n```c\nXDL_init();\n```\n\nWhen you're done, make sure to close the module, this frees all the allocated data and stored functions\n\n```c\nXDL_close();\n```\n\nYou can also define XDL_NO_GLX before including XDL if you don't want to include the GLX module \n\n```c\n#define XDL_NO_GLX\n#define XDL_IMPLEMENTATION\n#include \"XDL.h\"\n```\n\n# Credits\n* [GLFW](https://github.com/GLFW/GLFW) Much of this implementation is based on GLFW's internal x11 dynamic loader\n        A great portion of the declarations for the X11 module are sourced from GLFW\n\n* [stb](https://github.com/nothings/stb/) This project is heavily inspired by the stb single header files\n\n# License\nThis project is public domain but credit  would be greatly appreciated. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolleagueriley%2Fxdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolleagueriley%2Fxdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolleagueriley%2Fxdl/lists"}