summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Events.c
diff options
context:
space:
mode:
authorTiago Vignatti <vignatti@c3sl.ufpr.br>2008-10-08 01:18:49 -0300
committerTiago Vignatti <vignatti@c3sl.ufpr.br>2008-10-08 01:18:49 -0300
commit278c11f01fbc6d6bd91c5a7127928c9ef5d29fca (patch)
treedc1443f29c2f78c2fdacfbfddcf91d6aa4f5b590 /hw/xfree86/common/xf86Events.c
parent50081d2dfb79878cb931a15c265f0d60698dfd39 (diff)
xfree86: xf86{Enable, Disable}InputHandler can be static.
Diffstat (limited to 'hw/xfree86/common/xf86Events.c')
-rw-r--r--hw/xfree86/common/xf86Events.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 520e7f121..6ca0ae714 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -635,6 +635,34 @@ xf86ReleaseKeys(DeviceIntPtr pDev)
}
}
+static void
+xf86EnableInputHandler(pointer handler)
+{
+ IHPtr ih;
+
+ if (!handler)
+ return;
+
+ ih = handler;
+ ih->enabled = TRUE;
+ if (ih->fd >= 0)
+ AddEnabledDevice(ih->fd);
+}
+
+static void
+xf86DisableInputHandler(pointer handler)
+{
+ IHPtr ih;
+
+ if (!handler)
+ return;
+
+ ih = handler;
+ ih->enabled = FALSE;
+ if (ih->fd >= 0)
+ RemoveEnabledDevice(ih->fd);
+}
+
/*
* xf86VTSwitch --
* Handle requests for switching the vt.
@@ -901,34 +929,6 @@ xf86RemoveGeneralHandler(pointer handler)
return fd;
}
-_X_EXPORT void
-xf86DisableInputHandler(pointer handler)
-{
- IHPtr ih;
-
- if (!handler)
- return;
-
- ih = handler;
- ih->enabled = FALSE;
- if (ih->fd >= 0)
- RemoveEnabledDevice(ih->fd);
-}
-
-_X_EXPORT void
-xf86EnableInputHandler(pointer handler)
-{
- IHPtr ih;
-
- if (!handler)
- return;
-
- ih = handler;
- ih->enabled = TRUE;
- if (ih->fd >= 0)
- AddEnabledDevice(ih->fd);
-}
-
/*
* As used currently by the DRI, the return value is ignored.
*/