diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-05-19 12:56:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 12:56:02 -0700 |
commit | 5c9f49e2123c5df7148939a70b80cd72e4e59646 (patch) | |
tree | 7b91fb91c8f32870028ad564f0503e68921e2e8e /hiredis.h | |
parent | 243099ccd24b3a02aa3685abcfac77306a3b7d67 (diff) |
Resp3 verbatim string support (#805)
Pull RESP3 verbatim string handling from Redis
Fixes #802
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |