Add xf86OSInputThreadInit call from common layer into os-support layer

Allows os backends to run additional code as necessary to set up the
input thread.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit ea1527a8a6)
This commit is contained in:
Alan Coopersmith 2019-02-21 15:35:38 -08:00 committed by Matt Turner
parent e3f26605d8
commit f778e76eb4
6 changed files with 26 additions and 0 deletions

View File

@ -1451,5 +1451,6 @@ ddxBeforeReset(void)
void void
ddxInputThreadInit(void) ddxInputThreadInit(void)
{ {
xf86OSInputThreadInit();
} }
#endif #endif

View File

@ -661,3 +661,9 @@ xf86UseMsg()
ErrorF("don't detach controlling tty (for debugging only)\n"); ErrorF("don't detach controlling tty (for debugging only)\n");
return; return;
} }
void
xf86OSInputThreadInit()
{
return;
}

View File

@ -87,3 +87,9 @@ xf86CloseConsole()
close(xf86Info.consoleFd); close(xf86Info.consoleFd);
return; return;
} }
void
xf86OSInputThreadInit()
{
return;
}

View File

@ -397,3 +397,9 @@ xf86UseMsg(void)
ErrorF("don't detach controlling tty (for debugging only)\n"); ErrorF("don't detach controlling tty (for debugging only)\n");
ErrorF("-masterfd <fd> use the specified fd as the DRM master fd (not if setuid/gid)\n"); ErrorF("-masterfd <fd> use the specified fd as the DRM master fd (not if setuid/gid)\n");
} }
void
xf86OSInputThreadInit()
{
return;
}

View File

@ -73,6 +73,12 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem)
/* I/O Permissions section */ /* I/O Permissions section */
/***************************************************************************/ /***************************************************************************/
void
xf86OSInputThreadInit()
{
return;
}
Bool Bool
xf86EnableIO(void) xf86EnableIO(void)
{ {

View File

@ -136,6 +136,7 @@ extern _X_EXPORT int xf86GetSerialModemState(int fd);
extern _X_EXPORT int xf86SerialModemSetBits(int fd, int bits); extern _X_EXPORT int xf86SerialModemSetBits(int fd, int bits);
extern _X_EXPORT int xf86SerialModemClearBits(int fd, int bits); extern _X_EXPORT int xf86SerialModemClearBits(int fd, int bits);
extern _X_EXPORT int xf86LoadKernelModule(const char *pathname); extern _X_EXPORT int xf86LoadKernelModule(const char *pathname);
extern _X_EXPORT void xf86OSInputThreadInit(void);
/* AGP GART interface */ /* AGP GART interface */