summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-05-19 12:56:02 -0700
committerGitHub <noreply@github.com>2020-05-19 12:56:02 -0700
commit5c9f49e2123c5df7148939a70b80cd72e4e59646 (patch)
tree7b91fb91c8f32870028ad564f0503e68921e2e8e /hiredis.h
parent243099ccd24b3a02aa3685abcfac77306a3b7d67 (diff)
Resp3 verbatim string support (#805)
Pull RESP3 verbatim string handling from Redis Fixes #802
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index 6733199..9282671 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -102,7 +102,9 @@ typedef struct redisReply {
double dval; /* The double when type is REDIS_REPLY_DOUBLE */
size_t len; /* Length of string */
char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING
- and REDIS_REPLY_DOUBLE (in additional to dval). */
+ REDIS_REPLY_VERB, and REDIS_REPLY_DOUBLE (in additional to dval). */
+ char vtype[4]; /* Used for REDIS_REPLY_VERB, contains the null
+ terminated 3 character content type, such as "txt". */
size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */
struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */
} redisReply;