projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in code changes for all of the new parser.
[awesomized/libmemcached]
/
libhashkit
/
types.h
diff --git
a/libhashkit/types.h
b/libhashkit/types.h
index b2e5f798d0827fa3a97ef272975ea287de859e5e..255620b838ed529a4fcc1ddce12370c4183a6785 100644
(file)
--- a/
libhashkit/types.h
+++ b/
libhashkit/types.h
@@
-11,6
+11,7
@@
#define HASHKIT_TYPES_H
#ifdef __cplusplus
#define HASHKIT_TYPES_H
#ifdef __cplusplus
+
extern "C" {
#endif
extern "C" {
#endif
@@
-18,6
+19,8
@@
typedef enum {
HASHKIT_SUCCESS,
HASHKIT_FAILURE,
HASHKIT_MEMORY_ALLOCATION_FAILURE,
HASHKIT_SUCCESS,
HASHKIT_FAILURE,
HASHKIT_MEMORY_ALLOCATION_FAILURE,
+ HASHKIT_INVALID_HASH,
+ HASHKIT_INVALID_ARGUMENT,
HASHKIT_MAXIMUM_RETURN /* Always add new error code before */
} hashkit_return_t;
HASHKIT_MAXIMUM_RETURN /* Always add new error code before */
} hashkit_return_t;
@@
-49,6
+52,7
@@
typedef enum
typedef struct hashkit_st hashkit_st;
typedef struct hashkit_st hashkit_st;
+
typedef uint32_t (*hashkit_hash_fn)(const char *key, size_t key_length, void *context);
#ifdef __cplusplus
typedef uint32_t (*hashkit_hash_fn)(const char *key, size_t key_length, void *context);
#ifdef __cplusplus