X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_constants.h;h=1705bb6e57883ed71f0972b6e015faa68e81051a;hb=94cd1cbfb3fe6d0c446be9151ae9b15f775b6511;hp=5fdede9a765923ddc6b428f7732078ca1ced2c24;hpb=921abbe1906e77cc18cbe8859bc5afe9494d780e;p=awesomized%2Flibmemcached diff --git a/libmemcached/memcached_constants.h b/libmemcached/memcached_constants.h index 5fdede9a..1705bb6e 100644 --- a/libmemcached/memcached_constants.h +++ b/libmemcached/memcached_constants.h @@ -9,10 +9,6 @@ #ifndef __MEMCACHED_CONSTANTS_H__ #define __MEMCACHED_CONSTANTS_H__ -#ifdef __cplusplus -extern "C" { -#endif - /* Public defines */ #define MEMCACHED_DEFAULT_PORT 11211 #define MEMCACHED_MAX_KEY 251 /* We add one to have it null terminated */ @@ -66,6 +62,7 @@ typedef enum { MEMCACHED_INVALID_HOST_PROTOCOL, MEMCACHED_SERVER_MARKED_DEAD, MEMCACHED_UNKNOWN_STAT_KEY, + MEMCACHED_E2BIG, MEMCACHED_MAXIMUM_RETURN /* Always add new error code before */ } memcached_return; @@ -110,15 +107,17 @@ typedef enum { } memcached_behavior; typedef enum { - MEMCACHED_CALLBACK_PREFIX_KEY, - MEMCACHED_CALLBACK_USER_DATA, - MEMCACHED_CALLBACK_CLEANUP_FUNCTION, - MEMCACHED_CALLBACK_CLONE_FUNCTION, - MEMCACHED_CALLBACK_MALLOC_FUNCTION, - MEMCACHED_CALLBACK_REALLOC_FUNCTION, - MEMCACHED_CALLBACK_FREE_FUNCTION, - MEMCACHED_CALLBACK_GET_FAILURE, - MEMCACHED_CALLBACK_DELETE_TRIGGER + MEMCACHED_CALLBACK_PREFIX_KEY = 0, + MEMCACHED_CALLBACK_USER_DATA = 1, + MEMCACHED_CALLBACK_CLEANUP_FUNCTION = 2, + MEMCACHED_CALLBACK_CLONE_FUNCTION = 3, +#ifdef MEMCACHED_ENABLE_DEPRECATED + MEMCACHED_CALLBACK_MALLOC_FUNCTION = 4, + MEMCACHED_CALLBACK_REALLOC_FUNCTION = 5, + MEMCACHED_CALLBACK_FREE_FUNCTION = 6, +#endif + MEMCACHED_CALLBACK_GET_FAILURE = 7, + MEMCACHED_CALLBACK_DELETE_TRIGGER = 8 } memcached_callback; typedef enum { @@ -141,8 +140,4 @@ typedef enum { MEMCACHED_CONNECTION_UNIX_SOCKET } memcached_connection; -#ifdef __cplusplus -} -#endif - #endif /* __MEMCACHED_CONSTANTS_H__ */