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;
|
||||
}
|
||||
|
||||
void
|
||||
SetInputCheck(HWEventQueuePtr c0, HWEventQueuePtr c1)
|
||||
{
|
||||
checkForInput[0] = c0;
|
||||
checkForInput[1] = c1;
|
||||
}
|
||||
|
||||
void
|
||||
UpdateCurrentTime(void)
|
||||
{
|
||||
|
|
|
@ -36,6 +36,9 @@ extern char dispatchExceptionAtReset;
|
|||
extern int terminateDelay;
|
||||
extern Bool touchEmulatePointer;
|
||||
|
||||
typedef int HWEventQueueType;
|
||||
typedef HWEventQueueType *HWEventQueuePtr;
|
||||
|
||||
extern HWEventQueuePtr checkForInput[2];
|
||||
|
||||
/* -retro mode */
|
||||
|
@ -47,6 +50,13 @@ InputCheckPending(void)
|
|||
return (*checkForInput[0] != *checkForInput[1]);
|
||||
}
|
||||
|
||||
static inline void SetInputCheck(
|
||||
HWEventQueuePtr c0, HWEventQueuePtr c1)
|
||||
{
|
||||
checkForInput[0] = c0;
|
||||
checkForInput[1] = c1;
|
||||
}
|
||||
|
||||
void ClearWorkQueue(void);
|
||||
void ProcessWorkQueue(void);
|
||||
void ProcessWorkQueueZombies(void);
|
||||
|
|
|
@ -136,13 +136,7 @@ typedef struct _TimeStamp {
|
|||
CARD32 milliseconds;
|
||||
} TimeStamp;
|
||||
|
||||
typedef int HWEventQueueType;
|
||||
typedef HWEventQueueType *HWEventQueuePtr;
|
||||
|
||||
/* dispatch.c */
|
||||
extern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ ,
|
||||
HWEventQueuePtr /*c1 */ );
|
||||
|
||||
extern _X_EXPORT void UpdateCurrentTime(void);
|
||||
|
||||
extern _X_EXPORT void UpdateCurrentTimeIf(void);
|
||||
|
|
Loading…
Reference in New Issue