os: unexport ForceClockId()

This function is only intended for DDX'es (currently just Xwayland) that
need to force using another clock. Really shouldn't be called by drivers
or extensions.

Fixes: a779fda224
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1333>
(cherry picked from commit c17c527b9a)
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-22 15:40:50 +01:00 committed by Alan Coopersmith
parent 054111bb2f
commit 6738683d6d
3 changed files with 5 additions and 4 deletions

View file

@ -45,6 +45,8 @@
#include <propertyst.h>
#include <version-config.h>
#include "os/osdep.h"
#include "xwayland-screen.h"
#include "xwayland-vidmode.h"

View file

@ -158,10 +158,6 @@ extern _X_EXPORT void ListenOnOpenFD(int /* fd */ , int /* noxauth */ );
extern _X_EXPORT Bool AddClientOnOpenFD(int /* fd */ );
#ifdef MONOTONIC_CLOCK
extern void ForceClockId(clockid_t /* forced_clockid */);
#endif
extern _X_EXPORT CARD32 GetTimeInMillis(void);
extern _X_EXPORT CARD64 GetTimeInMicros(void);

View file

@ -249,4 +249,7 @@ int OnlyListenToOneClient(ClientPtr client);
void ListenToAllClients(void);
/* allow DDX to force using another clock */
void ForceClockId(clockid_t forced_clockid);
#endif /* _OSDEP_H_ */