os: unexport screen saver timer functions

These functions aren't supposed to be used by drivers, so move them
out of the public API.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1583>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-27 15:28:25 +01:00 committed by Marge Bot
parent aef17edd92
commit 811977228b
9 changed files with 22 additions and 3 deletions

View File

@ -32,6 +32,9 @@ Equipment Corporation.
#include <X11/X.h>
#include <X11/Xproto.h>
#include "os/screensaver.h"
#include "misc.h"
#include "os.h"
#include "dixstruct.h"

View File

@ -36,6 +36,7 @@ in this Software without prior written authorization from the X Consortium.
#include <X11/extensions/saverproto.h>
#include "dix/dix_priv.h"
#include "os/screensaver.h"
#include "misc.h"
#include "os.h"

View File

@ -114,6 +114,7 @@ Equipment Corporation.
#include "os/auth.h"
#include "os/ddx_priv.h"
#include "os/osdep.h"
#include "os/screensaver.h"
#include "windowstr.h"
#include "dixfontstr.h"

View File

@ -96,6 +96,7 @@ Equipment Corporation.
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "os/osdep.h"
#include "os/screensaver.h"
#include "scrnintstr.h"
#include "misc.h"

View File

@ -104,6 +104,7 @@ Equipment Corporation.
#include "dix/exevents_priv.h"
#include "dix/input_priv.h"
#include "os/auth.h"
#include "os/screensaver.h"
#include "misc.h"
#include "scrnintstr.h"

View File

@ -173,9 +173,6 @@ extern _X_EXPORT void TimerCheck(void);
extern _X_EXPORT void TimerCancel(OsTimerPtr /* pTimer */ );
extern _X_EXPORT void TimerFree(OsTimerPtr /* pTimer */ );
extern _X_EXPORT void SetScreenSaverTimer(void);
extern _X_EXPORT void FreeScreenSaverTimer(void);
extern _X_EXPORT void GiveUp(int /*sig */ );
/*

View File

@ -39,6 +39,9 @@ in this Software without prior written authorization from The Open Group.
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xproto.h>
#include "os/screensaver.h"
#include "misc.h"
#include "windowstr.h"
#include "pixmapstr.h"

View File

@ -66,6 +66,7 @@ SOFTWARE.
#include "dix/dix_priv.h"
#include "os/busfault.h"
#include "os/screensaver.h"
#include "misc.h"
#include "osdep.h"

11
os/screensaver.h Normal file
View File

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_OS_SCREENSAVER_H
#define _XSERVER_OS_SCREENSAVER_H
void SetScreenSaverTimer(void);
void FreeScreenSaverTimer(void);
#endif /* _XSERVER_OS_SCREENSAVER_H */