summaryrefslogtreecommitdiff
path: root/hw/xprint/ddxInit.c
diff options
context:
space:
mode:
authorDrew Parsons <dparsons@debian.org>2008-05-09 23:20:11 +1000
committerDrew Parsons <dparsons@debian.org>2008-05-09 23:58:19 +1000
commit2a3d1421e0cc18822ae8f478fcc272e16a9e9340 (patch)
tree39c17c11906246735397c6bb252f8519a5feb75e /hw/xprint/ddxInit.c
parentd500eeb9458336780d77baf8b7db96e1f7ff4f0d (diff)
Disable D-BUS from Xprint.
Use dummy config functions to replace those from config/config.c, and therefore do not link Xprt with $CONFIG_LIB. Works around an endlessly spinning loop in dix/dispatch.c::Dispatch() (WaitForSomething() not waiting) when built with dbus, which was causing Xprt to use 95% cpu.
Diffstat (limited to 'hw/xprint/ddxInit.c')
-rw-r--r--hw/xprint/ddxInit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xprint/ddxInit.c b/hw/xprint/ddxInit.c
index d744121aa..795052120 100644
--- a/hw/xprint/ddxInit.c
+++ b/hw/xprint/ddxInit.c
@@ -291,6 +291,12 @@ ddxProcessArgument (
#include "XIstubs.h"
#include "exglobals.h"
+/* Place dummy config functions here instead of config/config.c,
+ since Xprint does not use D-BUS */
+void config_init() { }
+void config_fini() { }
+
+
int
ChangePointerDevice (
DeviceIntPtr old_dev,