diff options
Diffstat (limited to 'examples/redis-unstable/src/call_reply.h')
| -rw-r--r-- | examples/redis-unstable/src/call_reply.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/examples/redis-unstable/src/call_reply.h b/examples/redis-unstable/src/call_reply.h deleted file mode 100644 index 4ae7f3c..0000000 --- a/examples/redis-unstable/src/call_reply.h +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2009-Present, Redis Ltd. | ||
| 3 | * All rights reserved. | ||
| 4 | * | ||
| 5 | * Licensed under your choice of (a) the Redis Source Available License 2.0 | ||
| 6 | * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the | ||
| 7 | * GNU Affero General Public License v3 (AGPLv3). | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef SRC_CALL_REPLY_H_ | ||
| 11 | #define SRC_CALL_REPLY_H_ | ||
| 12 | |||
| 13 | #include "resp_parser.h" | ||
| 14 | |||
| 15 | typedef struct CallReply CallReply; | ||
| 16 | typedef void (*RedisModuleOnUnblocked)(void *ctx, CallReply *reply, void *private_data); | ||
| 17 | |||
| 18 | CallReply *callReplyCreate(sds reply, list *deferred_error_list, void *private_data); | ||
| 19 | CallReply *callReplyCreateError(sds reply, void *private_data); | ||
| 20 | int callReplyType(CallReply *rep); | ||
| 21 | const char *callReplyGetString(CallReply *rep, size_t *len); | ||
| 22 | long long callReplyGetLongLong(CallReply *rep); | ||
| 23 | double callReplyGetDouble(CallReply *rep); | ||
| 24 | int callReplyGetBool(CallReply *rep); | ||
| 25 | size_t callReplyGetLen(CallReply *rep); | ||
| 26 | CallReply *callReplyGetArrayElement(CallReply *rep, size_t idx); | ||
| 27 | CallReply *callReplyGetSetElement(CallReply *rep, size_t idx); | ||
| 28 | int callReplyGetMapElement(CallReply *rep, size_t idx, CallReply **key, CallReply **val); | ||
| 29 | CallReply *callReplyGetAttribute(CallReply *rep); | ||
| 30 | int callReplyGetAttributeElement(CallReply *rep, size_t idx, CallReply **key, CallReply **val); | ||
| 31 | const char *callReplyGetBigNumber(CallReply *rep, size_t *len); | ||
| 32 | const char *callReplyGetVerbatim(CallReply *rep, size_t *len, const char **format); | ||
| 33 | const char *callReplyGetProto(CallReply *rep, size_t *len); | ||
| 34 | void *callReplyGetPrivateData(CallReply *rep); | ||
| 35 | int callReplyIsResp3(CallReply *rep); | ||
| 36 | list *callReplyDeferredErrorList(CallReply *rep); | ||
| 37 | void freeCallReply(CallReply *rep); | ||
| 38 | CallReply *callReplyCreatePromise(void *private_data); | ||
| 39 | |||
| 40 | #endif /* SRC_CALL_REPLY_H_ */ | ||
