dix: unexport SetInputCheck() and make it inline
Not used by any drivers, so no need to keep it exported. It's also so simple (and rarely called) that easily can be inlined. Also unexport HWEventQueueType and HWEventQueuePtr, since they're not used by any drivers. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
b4d1ad0eaf
commit
9d78e139a0
|
@ -204,13 +204,6 @@ GetCurrentClient(void)
|
||||||
return currentClient;
|
return currentClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
SetInputCheck(HWEventQueuePtr c0, HWEventQueuePtr c1)
|
|
||||||
{
|
|
||||||
checkForInput[0] = c0;
|
|
||||||
checkForInput[1] = c1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
UpdateCurrentTime(void)
|
UpdateCurrentTime(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,6 +36,9 @@ extern char dispatchExceptionAtReset;
|
||||||
extern int terminateDelay;
|
extern int terminateDelay;
|
||||||
extern Bool touchEmulatePointer;
|
extern Bool touchEmulatePointer;
|
||||||
|
|
||||||
|
typedef int HWEventQueueType;
|
||||||
|
typedef HWEventQueueType *HWEventQueuePtr;
|
||||||
|
|
||||||
extern HWEventQueuePtr checkForInput[2];
|
extern HWEventQueuePtr checkForInput[2];
|
||||||
|
|
||||||
/* -retro mode */
|
/* -retro mode */
|
||||||
|
@ -47,6 +50,13 @@ InputCheckPending(void)
|
||||||
return (*checkForInput[0] != *checkForInput[1]);
|
return (*checkForInput[0] != *checkForInput[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void SetInputCheck(
|
||||||
|
HWEventQueuePtr c0, HWEventQueuePtr c1)
|
||||||
|
{
|
||||||
|
checkForInput[0] = c0;
|
||||||
|
checkForInput[1] = c1;
|
||||||
|
}
|
||||||
|
|
||||||
void ClearWorkQueue(void);
|
void ClearWorkQueue(void);
|
||||||
void ProcessWorkQueue(void);
|
void ProcessWorkQueue(void);
|
||||||
void ProcessWorkQueueZombies(void);
|
void ProcessWorkQueueZombies(void);
|
||||||
|
|
|
@ -136,13 +136,7 @@ typedef struct _TimeStamp {
|
||||||
CARD32 milliseconds;
|
CARD32 milliseconds;
|
||||||
} TimeStamp;
|
} TimeStamp;
|
||||||
|
|
||||||
typedef int HWEventQueueType;
|
|
||||||
typedef HWEventQueueType *HWEventQueuePtr;
|
|
||||||
|
|
||||||
/* dispatch.c */
|
/* dispatch.c */
|
||||||
extern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ ,
|
|
||||||
HWEventQueuePtr /*c1 */ );
|
|
||||||
|
|
||||||
extern _X_EXPORT void UpdateCurrentTime(void);
|
extern _X_EXPORT void UpdateCurrentTime(void);
|
||||||
|
|
||||||
extern _X_EXPORT void UpdateCurrentTimeIf(void);
|
extern _X_EXPORT void UpdateCurrentTimeIf(void);
|
||||||
|
|
|
@ -42,6 +42,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include <X11/extensions/geproto.h>
|
#include <X11/extensions/geproto.h>
|
||||||
|
|
||||||
#include "dix/cursor_priv.h"
|
#include "dix/cursor_priv.h"
|
||||||
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/input_priv.h"
|
#include "dix/input_priv.h"
|
||||||
#include "mi/mi_priv.h"
|
#include "mi/mi_priv.h"
|
||||||
#include "mi/mipointer_priv.h"
|
#include "mi/mipointer_priv.h"
|
||||||
|
|
Loading…
Reference in New Issue