aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/call_reply.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/call_reply.h')
-rw-r--r--examples/redis-unstable/src/call_reply.h40
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
15typedef struct CallReply CallReply;
16typedef void (*RedisModuleOnUnblocked)(void *ctx, CallReply *reply, void *private_data);
17
18CallReply *callReplyCreate(sds reply, list *deferred_error_list, void *private_data);
19CallReply *callReplyCreateError(sds reply, void *private_data);
20int callReplyType(CallReply *rep);
21const char *callReplyGetString(CallReply *rep, size_t *len);
22long long callReplyGetLongLong(CallReply *rep);
23double callReplyGetDouble(CallReply *rep);
24int callReplyGetBool(CallReply *rep);
25size_t callReplyGetLen(CallReply *rep);
26CallReply *callReplyGetArrayElement(CallReply *rep, size_t idx);
27CallReply *callReplyGetSetElement(CallReply *rep, size_t idx);
28int callReplyGetMapElement(CallReply *rep, size_t idx, CallReply **key, CallReply **val);
29CallReply *callReplyGetAttribute(CallReply *rep);
30int callReplyGetAttributeElement(CallReply *rep, size_t idx, CallReply **key, CallReply **val);
31const char *callReplyGetBigNumber(CallReply *rep, size_t *len);
32const char *callReplyGetVerbatim(CallReply *rep, size_t *len, const char **format);
33const char *callReplyGetProto(CallReply *rep, size_t *len);
34void *callReplyGetPrivateData(CallReply *rep);
35int callReplyIsResp3(CallReply *rep);
36list *callReplyDeferredErrorList(CallReply *rep);
37void freeCallReply(CallReply *rep);
38CallReply *callReplyCreatePromise(void *private_data);
39
40#endif /* SRC_CALL_REPLY_H_ */