X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Ftypes.h;h=b2e5f798d0827fa3a97ef272975ea287de859e5e;hb=acd4e556bf8e21005dc42500e3f76b40adb89949;hp=fadb4d939322704d3955830c019951466afe056b;hpb=a81bddebd55105aefa57af7cc87adbda3d1a022e;p=awesomized%2Flibmemcached diff --git a/libhashkit/types.h b/libhashkit/types.h index fadb4d93..b2e5f798 100644 --- a/libhashkit/types.h +++ b/libhashkit/types.h @@ -32,6 +32,7 @@ typedef enum { HASHKIT_HASH_HSIEH, HASHKIT_HASH_MURMUR, HASHKIT_HASH_JENKINS, + HASHKIT_HASH_CUSTOM, HASHKIT_HASH_MAX } hashkit_hash_algorithm_t; @@ -48,7 +49,7 @@ typedef enum typedef struct hashkit_st hashkit_st; -typedef uint32_t (*hashkit_hash_fn)(const char *key, size_t key_length); +typedef uint32_t (*hashkit_hash_fn)(const char *key, size_t key_length, void *context); #ifdef __cplusplus }