xfree86: export xf86ModeStatusToString() but keep it internal

Needed by the int10 module, so has to be in the symbol table.
But still not supposed to be used by out-of-tree drivers.

Reported-by: stefan11111 <stefan11111@shitposting.expert>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-06-20 14:50:24 +02:00 committed by Enrico Weigelt
parent 13595b1801
commit e523724d5e

View File

@ -79,7 +79,9 @@ Bool xf86LoadModules(const char **list, void **optlist);
Bool xf86HasTTYs(void); Bool xf86HasTTYs(void);
/* xf86Mode.c */ /* xf86Mode.c */
_X_EXPORT /* only for int10 module, not supposed to be used by OOT modules */
const char * xf86ModeStatusToString(ModeStatus status); const char * xf86ModeStatusToString(ModeStatus status);
ModeStatus xf86CheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode, int flags); ModeStatus xf86CheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode, int flags);
/* xf86DefaultModes (auto-generated) */ /* xf86DefaultModes (auto-generated) */