diff options
author | antirez <antirez@gmail.com> | 2012-08-21 17:27:01 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-08-21 17:27:01 +0200 |
commit | d6704c9bd0f03f277ee23a4e3e1fc86a74e130b3 (patch) | |
tree | e4572aeded1e354d0253128004e19d12e9329137 /deps/hiredis/hiredis.h | |
parent | cada7f9671da8af04400853bed3f3bc1790a522a (diff) | |
download | redis-d6704c9bd0f03f277ee23a4e3e1fc86a74e130b3.tar.gz |
hiredis library updated.
This version of hiredis merges modifications of the Redis fork with
latest changes in the hiredis repository.
The same version was pushed on the hiredis repository and will probably
merged into the master branch in short time.
Diffstat (limited to 'deps/hiredis/hiredis.h')
-rw-r--r-- | deps/hiredis/hiredis.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/hiredis/hiredis.h b/deps/hiredis/hiredis.h index a73f50e95..b922831e3 100644 --- a/deps/hiredis/hiredis.h +++ b/deps/hiredis/hiredis.h @@ -76,6 +76,9 @@ /* Flag that is set when the async context has one or more subscriptions. */ #define REDIS_SUBSCRIBED 0x20 +/* Flag that is set when monitor mode is active */ +#define REDIS_MONITORING 0x40 + #define REDIS_REPLY_STRING 1 #define REDIS_REPLY_ARRAY 2 #define REDIS_REPLY_INTEGER 3 @@ -83,6 +86,8 @@ #define REDIS_REPLY_STATUS 5 #define REDIS_REPLY_ERROR 6 +#define REDIS_READER_MAX_BUF (1024*16) /* Default max unused reader buffer. */ + #ifdef __cplusplus extern "C" { #endif @@ -122,6 +127,7 @@ typedef struct redisReader { char *buf; /* Read buffer */ size_t pos; /* Buffer cursor */ size_t len; /* Buffer length */ + size_t maxbuf; /* Max length of unused buffer */ redisReadTask rstack[9]; int ridx; /* Index of current read task */ |