dix: unexport and document HashResourceID()

Not used by any drivers/modules, 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 18:56:50 +01:00
parent 6588a74c15
commit 727e8bcb09
2 changed files with 14 additions and 12 deletions

View File

@ -115,4 +115,18 @@ static inline Bool dixResouceIsServerOwned(XID xid) {
return (dixClientForXID(xid) == serverClient);
}
/*
* @brief hash a XID for using as hashtable index
*
* @param id the XID to hash
* @param numBits number of bits in the resulting hash (>=0)
* @result the computed hash value
*
* @note This function is really only for handling
* INITHASHSIZE..MAXHASHSIZE bit hashes, but will handle any number
* of bits by either masking numBits lower bits of the ID or by
* providing at most MAXHASHSIZE hashes.
*/
int HashResourceID(XID id, unsigned int numBits);
#endif /* _XSERVER_DIX_RESOURCE_PRIV_H */

View File

@ -259,16 +259,4 @@ extern _X_EXPORT unsigned int GetXIDList(ClientPtr /*client */ ,
extern _X_EXPORT RESTYPE lastResourceType;
extern _X_EXPORT RESTYPE TypeMask;
/** @brief A hashing function to be used for hashing resource IDs
@param id The resource ID to hash
@param numBits The number of bits in the resulting hash. Must be >=0.
@note This function is really only for handling
INITHASHSIZE..MAXHASHSIZE bit hashes, but will handle any number
of bits by either masking numBits lower bits of the ID or by
providing at most MAXHASHSIZE hashes.
*/
extern _X_EXPORT int HashResourceID(XID id, unsigned int numBits);
#endif /* RESOURCE_H */