randr: unexport screen related request handlers

Those aren't used by any drivers and never should so, thus no need to
keep them exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-16 10:09:18 +02:00
parent 5a17f15f22
commit aa981da992
5 changed files with 25 additions and 22 deletions

View File

@ -498,27 +498,6 @@ RRScreenSizeSet(ScreenPtr pScreen,
extern _X_EXPORT void
RRSendConfigNotify(ScreenPtr pScreen);
/*
* screen dispatch
*/
extern _X_EXPORT int
ProcRRGetScreenSizeRange(ClientPtr client);
extern _X_EXPORT int
ProcRRSetScreenSize(ClientPtr client);
extern _X_EXPORT int
ProcRRGetScreenResources(ClientPtr client);
extern _X_EXPORT int
ProcRRGetScreenResourcesCurrent(ClientPtr client);
extern _X_EXPORT int
ProcRRSetScreenConfig(ClientPtr client);
extern _X_EXPORT int
ProcRRGetScreenInfo(ClientPtr client);
/*
* Deliver a ScreenNotify event
*/

View File

@ -23,6 +23,7 @@
#include "dix/dix_priv.h"
#include "randr/randrstr_priv.h"
#include "randr/rrdispatch_priv.h"
#include "os/fmt.h"
#include "protocol-versions.h"

20
randr/rrdispatch_priv.h Normal file
View File

@ -0,0 +1,20 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*
* @brief: prototypes for the individual request handlers
*/
#ifndef _XSERVER_RANDR_RRDISPATCH_H
#define _XSERVER_RANDR_RRDISPATCH_H
#include "include/dix.h"
/* screen related dispatch */
int ProcRRGetScreenSizeRange(ClientPtr client);
int ProcRRSetScreenSize(ClientPtr client);
int ProcRRGetScreenResources(ClientPtr client);
int ProcRRGetScreenResourcesCurrent(ClientPtr client);
int ProcRRSetScreenConfig(ClientPtr client);
int ProcRRGetScreenInfo(ClientPtr client);
#endif /* _XSERVER_RANDR_RRDISPATCH_H */

View File

@ -23,6 +23,7 @@
#include "dix/dix_priv.h"
#include "randr/randrstr_priv.h"
#include "randr/rrdispatch_priv.h"
static CARD16
RR10CurrentSizeID(ScreenPtr pScreen);

View File

@ -19,8 +19,10 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "randrstr_priv.h"
#include "randr/randrstr_priv.h"
#include "randr/rrdispatch_priv.h"
static int _X_COLD
SProcRRQueryVersion(ClientPtr client)