dix: unexport and document GetXIDList()

Not used by any drivers (just the xcmisc extension), so no need
to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-03-06 19:10:45 +01:00
parent 727e8bcb09
commit 2556900be7
3 changed files with 19 additions and 7 deletions

View File

@ -28,18 +28,20 @@ from The Open Group.
#include <dix-config.h> #include <dix-config.h>
#include <stdint.h>
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/extensions/xcmiscproto.h>
#include "dix/resource_priv.h"
#include "misc.h" #include "misc.h"
#include "os.h" #include "os.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "extnsionst.h" #include "extnsionst.h"
#include "swaprep.h" #include "swaprep.h"
#include <X11/extensions/xcmiscproto.h>
#include "extinit_priv.h" #include "extinit_priv.h"
#include <stdint.h>
static int static int
ProcXCMiscGetVersion(ClientPtr client) ProcXCMiscGetVersion(ClientPtr client)
{ {

View File

@ -5,6 +5,8 @@
#ifndef _XSERVER_DIX_RESOURCE_PRIV_H #ifndef _XSERVER_DIX_RESOURCE_PRIV_H
#define _XSERVER_DIX_RESOURCE_PRIV_H #define _XSERVER_DIX_RESOURCE_PRIV_H
#include <X11/Xdefs.h>
#include "include/dix.h" #include "include/dix.h"
#include "include/resource.h" #include "include/resource.h"
@ -129,4 +131,16 @@ static inline Bool dixResouceIsServerOwned(XID xid) {
*/ */
int HashResourceID(XID id, unsigned int numBits); int HashResourceID(XID id, unsigned int numBits);
/*
* @brief scan for free XIDs for client
*
* @param pClient the client to scan
* @param count maximum size of items to return
* @param pids pointer to XID where to return found free XIDs
* @result number of free XIDs
*/
unsigned int GetXIDList(ClientPtr pClient,
unsigned int count,
XID *pids);
#endif /* _XSERVER_DIX_RESOURCE_PRIV_H */ #endif /* _XSERVER_DIX_RESOURCE_PRIV_H */

View File

@ -252,10 +252,6 @@ extern _X_EXPORT void GetXIDRange(int /*client */ ,
XID * /*minp */ , XID * /*minp */ ,
XID * /*maxp */ ); XID * /*maxp */ );
extern _X_EXPORT unsigned int GetXIDList(ClientPtr /*client */ ,
unsigned int /*count */ ,
XID * /*pids */ );
extern _X_EXPORT RESTYPE lastResourceType; extern _X_EXPORT RESTYPE lastResourceType;
extern _X_EXPORT RESTYPE TypeMask; extern _X_EXPORT RESTYPE TypeMask;