mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
xfree86: little documentation on XF86ModuleData
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
0b1e8a759c
commit
1189bbdb40
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user