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 ef5ff67106
commit 772cc974f7
3 changed files with 15 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ from The Open Group.
#include <X11/Xproto.h>
#include <X11/extensions/xcmiscproto.h>
#include "dix/resource_priv.h"
#include "miext/extinit_priv.h"
#include "misc.h"

View File

@@ -5,6 +5,8 @@
#ifndef _XSERVER_DIX_RESOURCE_PRIV_H
#define _XSERVER_DIX_RESOURCE_PRIV_H
#include <X11/Xdefs.h>
#include "include/dix.h"
#include "include/resource.h"
@@ -125,4 +127,16 @@ static inline Bool dixResouceIsServerOwned(XID xid) {
*/
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 */

View File

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