os: unexport TimerInit() and TimerForce()

These functions aren't used by and drivers (and TimerInit() shouldn't be
be called from modules at all), thus unexport them.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1330>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-23 17:08:30 +01:00 committed by Marge Bot
parent 0f37f6fb4c
commit ceb60b0cda
3 changed files with 5 additions and 4 deletions

View File

@ -184,10 +184,6 @@ typedef CARD32 (*OsTimerCallback) (OsTimerPtr timer,
CARD32 time, CARD32 time,
void *arg); void *arg);
extern _X_EXPORT void TimerInit(void);
extern _X_EXPORT Bool TimerForce(OsTimerPtr /* timer */ );
#define TimerAbsolute (1<<0) #define TimerAbsolute (1<<0)
#define TimerForceOld (1<<1) #define TimerForceOld (1<<1)

View File

@ -89,6 +89,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include "input.h" #include "input.h"
#include "opaque.h" #include "opaque.h"
#include "osdep.h"
#ifdef WIN32 #ifdef WIN32
#include <process.h> #include <process.h>

View File

@ -129,4 +129,8 @@ extern Bool ComputeLocalClient(ClientPtr client);
/* in auth.c */ /* in auth.c */
extern void GenerateRandomData(int len, char *buf); extern void GenerateRandomData(int len, char *buf);
/* OsTimer functions */
void TimerInit(void);
Bool TimerForce(OsTimerPtr timer);
#endif /* _OSDEP_H_ */ #endif /* _OSDEP_H_ */