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:
parent
6588a74c15
commit
727e8bcb09
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue