summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-11-04 21:33:09 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-11-08 15:29:16 +0200
commit3a9b96425851b495503bd2eb0fd0d01c08f6a097 (patch)
treef6523afebb7e6de92a57fc1d15b9e19c54209dd7
parent6716488fa256798070017232405b107d5c985479 (diff)
dix: add missing prototypes
Add missing prototype for ffs, and include headers from ffs.c. Move PostSyntheticMotion prototype to input.h.
-rw-r--r--dix/events.c1
-rw-r--r--dix/ffs.c6
-rw-r--r--include/dix.h2
-rw-r--r--include/input.h6
4 files changed, 14 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c
index 3b1a0aaf4..b5937e754 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -327,7 +327,6 @@ static CARD8 criticalEvents[32] =
#ifdef PANORAMIX
static void ConfineToShape(RegionPtr shape, int *px, int *py);
-extern void PostSyntheticMotion(int x, int y, int screenNum, int time);
static void PostNewCursor(void);
#define SyntheticMotion(x, y) \
diff --git a/dix/ffs.c b/dix/ffs.c
index e25d715dd..f84f7b47f 100644
--- a/dix/ffs.c
+++ b/dix/ffs.c
@@ -26,6 +26,12 @@ The Open Group.
*/
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include "dix.h"
+
int
ffs(int i)
{
diff --git a/include/dix.h b/include/dix.h
index f346b43a2..983a84f02 100644
--- a/include/dix.h
+++ b/include/dix.h
@@ -701,6 +701,8 @@ extern Bool AllocateClientPrivate(
int /*index*/,
unsigned /*amount*/);
+extern int ffs(int i);
+
/*
* callback manager stuff
*/
diff --git a/include/input.h b/include/input.h
index f2fe6d137..e7017cb27 100644
--- a/include/input.h
+++ b/include/input.h
@@ -418,6 +418,12 @@ extern int GetProximityEvents(
int num_valuators,
int *valuators);
+extern void PostSyntheticMotion(
+ int x,
+ int y,
+ int screenNum,
+ unsigned long time);
+
extern int GetMotionHistorySize(
void);