summaryrefslogtreecommitdiff
path: root/include/resource.h
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-04-06 10:16:53 +0300
committerErkki Seppälä <erkki.seppala@vincit.fi>2012-04-18 12:44:49 +0300
commita2ac01a8ea8508ed35aa844a589672c1165e05e4 (patch)
treea77b0008a255b6f8380952649eca01ceec11b1f6 /include/resource.h
parenta0b0fb83f91bb82534a0d83fdd6c0222567b098d (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/resource.h')
-rw-r--r--include/resource.h8
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);