xfree86: little documentation on XF86ModuleData

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-05 12:41:22 +01:00
committed by Enrico Weigelt
parent 0b1e8a759c
commit 1189bbdb40

View File

@@ -171,9 +171,17 @@ typedef void (*ModuleTearDownProc) (void *);
#define MODULESETUPPROTO(func) void *func(void *, void *, int*, int*)
/*
* Module information header. Every loadable module needs to export a symbol
* of that type, so the loader can call into the module for initialization.
* The symbol must be named <modulename> + "ModuleData".
*/
typedef struct {
/* must point to structure with version information */
XF86ModuleVersionInfo *vers;
/* called on module load (if not null) */
ModuleSetupProc setup;
/* called on module teardown with setup()'s result as parameter (if not null) */
ModuleTearDownProc teardown;
} XF86ModuleData;