Dlffi
libdl and libffi LUA wrapper for direct linking C libraries
Install / Use
/learn @Ygrex/DlffiREADME
dlffi is a LUA wrapper for both libdl.so and libffi.so
dlffi allows to use native C functions from dynamically linked libraries in LUA without need to (re)compile specific wrappers and writting any C code
the library has been tested on x86 and x86_64 in Debian only, with help of valgrind
files provided:
- liblua_dlffi.c - the library source
- dlffi.lua - the LUA module; use this module instead of direct liblua_dlffi.so linking
- dlfcn.supp - suppressions file for valgrind: suppresses false positives due to libdl usage
- mysql.lua - wrapper for libmysqlclient.so without C code
- test.lua - example for mysql.lua
- COPYLEFT - license
- README - this readme
- Makefile - makefile
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate 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
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
