mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 06:51:32 +00:00
Allow passing arguments to modules on load.
This commit is contained in:
@ -683,6 +683,12 @@ struct saveparam {
|
||||
int changes;
|
||||
};
|
||||
|
||||
struct loadmodule {
|
||||
sds path;
|
||||
int argc;
|
||||
sds argv[];
|
||||
};
|
||||
|
||||
struct sharedObjectsStruct {
|
||||
robj *crlf, *ok, *err, *emptybulk, *czero, *cone, *cnegone, *pong, *space,
|
||||
*colon, *nullbulk, *nullmultibulk, *queued,
|
||||
@ -1156,7 +1162,7 @@ extern dictType modulesDictType;
|
||||
|
||||
/* Modules */
|
||||
void moduleInitModulesSystem(void);
|
||||
int moduleLoad(const char *path);
|
||||
int moduleLoad(const char *path, void **argv, int argc);
|
||||
void moduleLoadFromQueue(void);
|
||||
int *moduleGetCommandKeysViaAPI(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
|
||||
moduleType *moduleTypeLookupModuleByID(uint64_t id);
|
||||
|
Reference in New Issue
Block a user