summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/src/commands.h
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/src/commands.h')
-rw-r--r--examples/redis-unstable/src/commands.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/examples/redis-unstable/src/commands.h b/examples/redis-unstable/src/commands.h
deleted file mode 100644
index 1eefab4..0000000
--- a/examples/redis-unstable/src/commands.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef __REDIS_COMMANDS_H
-#define __REDIS_COMMANDS_H
-
-/* Must be synced with ARG_TYPE_STR and generate-command-code.py */
-typedef enum {
- ARG_TYPE_STRING,
- ARG_TYPE_INTEGER,
- ARG_TYPE_DOUBLE,
- ARG_TYPE_KEY, /* A string, but represents a keyname */
- ARG_TYPE_PATTERN,
- ARG_TYPE_UNIX_TIME,
- ARG_TYPE_PURE_TOKEN,
- ARG_TYPE_ONEOF, /* Has subargs */
- ARG_TYPE_BLOCK /* Has subargs */
-} redisCommandArgType;
-
-#define CMD_ARG_NONE (0)
-#define CMD_ARG_OPTIONAL (1<<0)
-#define CMD_ARG_MULTIPLE (1<<1)
-#define CMD_ARG_MULTIPLE_TOKEN (1<<2)
-
-/* Must be compatible with RedisModuleCommandArg. See moduleCopyCommandArgs. */
-typedef struct redisCommandArg {
- const char *name;
- redisCommandArgType type;
- int key_spec_index;
- const char *token;
- const char *summary;
- const char *since;
- int flags;
- const char *deprecated_since;
- int num_args;
- struct redisCommandArg *subargs;
- const char *display_text;
-} redisCommandArg;
-
-/* Returns the command group name by group number. */
-const char *commandGroupStr(int index);
-
-#endif