Check for failures while configuring client.
[awesomized/libmemcached] / libhashkit / types.h
index b2e5f798d0827fa3a97ef272975ea287de859e5e..255620b838ed529a4fcc1ddce12370c4183a6785 100644 (file)
@@ -11,6 +11,7 @@
 #define HASHKIT_TYPES_H
 
 #ifdef __cplusplus
+
 extern "C" {
 #endif
 
@@ -18,6 +19,8 @@ typedef enum {
   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;
 
@@ -49,6 +52,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