diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2019-08-04 12:13:04 +0300 |
---|---|---|
committer | Yossi Gottlieb <yossigo@gmail.com> | 2019-08-04 12:13:04 +0300 |
commit | 91de9c975ac66b6eaddb6de96440a282e4227447 (patch) | |
tree | b6cfcba468cae15de5b60315b678aab5a9ca317a /hiredis.h | |
parent | a7a1886b7eaeac0265af419a3f9c0793e7098d46 (diff) |
RESP3 support changes from Redis.
This corresponds to commits d5c54f0b..bea09a7f in the redis repository.
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -101,8 +101,10 @@ extern "C" { typedef struct redisReply { int type; /* REDIS_REPLY_* */ long long integer; /* The integer when type is REDIS_REPLY_INTEGER */ + double dval; /* The double when type is REDIS_REPLY_DOUBLE */ size_t len; /* Length of string */ - char *str; /* Used for both REDIS_REPLY_ERROR and REDIS_REPLY_STRING */ + char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING + and REDIS_REPLY_DOUBLE (in additionl to dval). */ size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */ struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */ } redisReply; |