X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Ftypes.h;h=8d39696227d61f1ca97f8acfe8236e60fc50d178;hb=3430cb015fb0add207ff733f484dbb4a9fed3655;hp=b2e5f798d0827fa3a97ef272975ea287de859e5e;hpb=acd4e556bf8e21005dc42500e3f76b40adb89949;p=m6w6%2Flibmemcached diff --git a/libhashkit/types.h b/libhashkit/types.h index b2e5f798..8d396962 100644 --- a/libhashkit/types.h +++ b/libhashkit/types.h @@ -11,6 +11,7 @@ #define HASHKIT_TYPES_H #ifdef __cplusplus + extern "C" { #endif @@ -49,6 +50,7 @@ typedef enum typedef struct hashkit_st hashkit_st; + typedef uint32_t (*hashkit_hash_fn)(const char *key, size_t key_length, void *context); #ifdef __cplusplus