xfree86: doc: update docs on XF86ModuleData

Even though the order of these fields shouldn't change anytime
soon, it's still better programming style to name'em explicitly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1788>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-12 11:24:02 +01:00 committed by Marge Bot
parent e88762896e
commit 80f5d29c84

View File

@ -7721,7 +7721,7 @@ static const OptionInfoRec ZZZOptions[] = {
<programlisting> <programlisting>
static MODULESETUPPROTO(zzzSetup); static MODULESETUPPROTO(zzzSetup);
XF86ModuleData zzzModuleData = { &amp;zzzVersRec, zzzSetup, NULL }; XF86ModuleData zzzModuleData = { .vers = &amp;zzzVersRec, .setup = zzzSetup, .teardown = NULL };
static pointer static pointer
zzzSetup(pointer module, pointer opts, int *errmaj, int *errmin) zzzSetup(pointer module, pointer opts, int *errmaj, int *errmin)