xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 29 01:26:07 UTC 2024


 include/os.h |    4 ----
 os/log.c     |    1 +
 os/osdep.h   |    4 ++++
 3 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit ceb60b0cda12563823dd3cf0e59c438ca9323dc0
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date:   Fri Feb 23 17:08:30 2024 +0100

    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 at metux.net>
    Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1330>

diff --git a/include/os.h b/include/os.h
index 8a6fd0516..29c849b11 100644
--- a/include/os.h
+++ b/include/os.h
@@ -184,10 +184,6 @@ typedef CARD32 (*OsTimerCallback) (OsTimerPtr timer,
                                    CARD32 time,
                                    void *arg);
 
-extern _X_EXPORT void TimerInit(void);
-
-extern _X_EXPORT Bool TimerForce(OsTimerPtr /* timer */ );
-
 #define TimerAbsolute (1<<0)
 #define TimerForceOld (1<<1)
 
diff --git a/os/log.c b/os/log.c
index e15823046..ab7c252a4 100644
--- a/os/log.c
+++ b/os/log.c
@@ -89,6 +89,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
 
 #include "input.h"
 #include "opaque.h"
+#include "osdep.h"
 
 #ifdef WIN32
 #include <process.h>
diff --git a/os/osdep.h b/os/osdep.h
index 85fc7f9a1..f5ad07705 100644
--- a/os/osdep.h
+++ b/os/osdep.h
@@ -129,4 +129,8 @@ extern Bool ComputeLocalClient(ClientPtr client);
 /* in auth.c */
 extern void GenerateRandomData(int len, char *buf);
 
+/* OsTimer functions */
+void TimerInit(void);
+Bool TimerForce(OsTimerPtr timer);
+
 #endif                          /* _OSDEP_H_ */


More information about the xorg-commit mailing list