mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
xfree86: add exported xf86GetConsoleFd()
This functions is designed for some legacy keyboard drivers (eg. xf86-input-keyboard) that need to get the fd to the console device, so they don't need to directly access xf86Info field anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -282,4 +282,10 @@ extern _X_EXPORT ScreenPtr xf86ScrnToScreen(ScrnInfoPtr pScrn);
|
||||
#define xf86MsgVerb LogMessageVerb
|
||||
#define xf86Msg(type, ...) LogMessageVerb(type, 1, __VA_ARGS__)
|
||||
|
||||
/*
|
||||
* retrieve file descriptor to opened console device.
|
||||
* only for some legacy keyboard drivers (xf86-input-keyboard)
|
||||
*/
|
||||
_X_EXPORT int xf86GetConsoleFd(void);
|
||||
|
||||
#endif /* _XF86_H */
|
||||
|
||||
@@ -195,3 +195,8 @@ Bool xf86VidModeDisabled = FALSE;
|
||||
Bool xf86VidModeAllowNonLocal = FALSE;
|
||||
#endif
|
||||
Bool xorgHWAccess = FALSE;
|
||||
|
||||
int xf86GetConsoleFd(void)
|
||||
{
|
||||
return xf86Info.consoleFd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user