summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-02-21 15:22:57 -0800
committerMatt Turner <mattst88@gmail.com>2020-01-13 22:25:39 +0000
commite3f26605d85d987da434640f52646d728f1fe919 (patch)
tree68119fd20f37f1eb40d00f507d1da6bdf395fa6a /hw
parentbb405cdc85b6e31c0beef60a07a2cfe5b87dcde6 (diff)
Add ddxInputThread call from os layer into ddx layer
Allows ddx's 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 4ad21c3247d98ac6c5ad71fa36be60ed04f7c92c)
Diffstat (limited to 'hw')
-rw-r--r--hw/dmx/dmxinit.c9
-rw-r--r--hw/kdrive/ephyr/ephyrinit.c9
-rw-r--r--hw/vfb/InitOutput.c9
-rw-r--r--hw/xfree86/common/xf86Init.c9
-rw-r--r--hw/xnest/Init.c9
-rw-r--r--hw/xwayland/xwayland.c9
-rw-r--r--hw/xwin/InitOutput.c9
7 files changed, 63 insertions, 0 deletions
diff --git a/hw/dmx/dmxinit.c b/hw/dmx/dmxinit.c
index 07154d648..ddb331090 100644
--- a/hw/dmx/dmxinit.c
+++ b/hw/dmx/dmxinit.c
@@ -838,6 +838,15 @@ ddxGiveUp(enum ExitCode error)
AbortDDX(error);
}
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
+
/** This function is called in Xserver/os/osinit.c from \a OsInit(). */
void
OsVendorInit(void)
diff --git a/hw/kdrive/ephyr/ephyrinit.c b/hw/kdrive/ephyr/ephyrinit.c
index abc35dfca..47bd97ade 100644
--- a/hw/kdrive/ephyr/ephyrinit.c
+++ b/hw/kdrive/ephyr/ephyrinit.c
@@ -100,6 +100,15 @@ CloseInput(void)
KdCloseInput();
}
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
+
#ifdef DDXBEFORERESET
void
ddxBeforeReset(void)
diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
index 407f2afcd..d9f23f360 100644
--- a/hw/vfb/InitOutput.c
+++ b/hw/vfb/InitOutput.c
@@ -232,6 +232,15 @@ ddxBeforeReset(void)
}
#endif
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
+
void
ddxUseMsg(void)
{
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index fc60f68d3..0b5724d67 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -1444,3 +1444,12 @@ ddxBeforeReset(void)
{
}
#endif
+
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c
index b45685216..c3afadf8c 100644
--- a/hw/xnest/Init.c
+++ b/hw/xnest/Init.c
@@ -169,3 +169,12 @@ ddxBeforeReset(void)
return;
}
#endif
+
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c
index baa08d87b..324c68ccf 100644
--- a/hw/xwayland/xwayland.c
+++ b/hw/xwayland/xwayland.c
@@ -74,6 +74,15 @@ ddxBeforeReset(void)
}
#endif
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
+
_X_NORETURN
static void _X_ATTRIBUTE_PRINTF(1, 2)
xwl_give_up(const char *f, ...)
diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c
index 9560c5684..1c6fa9fd9 100644
--- a/hw/xwin/InitOutput.c
+++ b/hw/xwin/InitOutput.c
@@ -151,6 +151,15 @@ ddxBeforeReset(void)
}
#endif
+#if INPUTTHREAD
+/** This function is called in Xserver/os/inputthread.c when starting
+ the input thread. */
+void
+ddxInputThreadInit(void)
+{
+}
+#endif
+
int
main(int argc, char *argv[], char *envp[])
{