summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-02-22 15:40:50 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-17 16:20:54 -0700
commitc17c527b9ad4935303c2f1cadae740640b3443ba (patch)
tree84dc6a285654f2331b44b7726e35bc5f79610deb
parent41c3155fdf71cd17d374f0e0a4fdf2830a354f04 (diff)
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: a779fda224bee0c4d27636503367e55ae93b33c2 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1333>
-rw-r--r--include/os.h4
-rw-r--r--os/osdep.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/include/os.h b/include/os.h
index e78f5a4c1..a07aedf1a 100644
--- a/include/os.h
+++ b/include/os.h
@@ -155,10 +155,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);
diff --git a/os/osdep.h b/os/osdep.h
index 138a04fcd..0687f568d 100644
--- a/os/osdep.h
+++ b/os/osdep.h
@@ -195,4 +195,7 @@ int OnlyListenToOneClient(ClientPtr client);
void ListenToAllClients(void);
+/* allow DDX to force using another clock */
+void ForceClockId(clockid_t forced_clockid);
+
#endif /* _OSDEP_H_ */