diff options
author | Erkki Seppälä <erkki.seppala@vincit.fi> | 2011-04-06 10:16:53 +0300 |
---|---|---|
committer | Erkki Seppälä <erkki.seppala@vincit.fi> | 2012-04-18 12:44:49 +0300 |
commit | a2ac01a8ea8508ed35aa844a589672c1165e05e4 (patch) | |
tree | a77b0008a255b6f8380952649eca01ceec11b1f6 /include | |
parent | a0b0fb83f91bb82534a0d83fdd6c0222567b098d (diff) |
dix: don't use a local wrapper for calling HashResourceID
Calls to Hash(client, id) were replaced with calls directly to
HashResourceID(id, clientTable[client].hashsize) and the Hash-function
was removed.
Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Diffstat (limited to 'include')
-rw-r--r-- | include/resource.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/resource.h b/include/resource.h index e8f263705..ae5dd51e7 100644 --- a/include/resource.h +++ b/include/resource.h @@ -275,10 +275,12 @@ 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 + @param numBits The number of bits in the resulting hash. Must be >=0. - @note This function can only handle INITHASHSIZE..MAXHASHSIZE bit - hashes and will return -1 if numBits is not within those bounds. + @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, int numBits); |