MCPcopy Create free account
hub / github.com/F-Stack/f-stack / moduleRegisterCoreAPI

Function moduleRegisterCoreAPI

app/redis-6.2.6/src/module.c:9243–9506  ·  view source on GitHub ↗

Register all the APIs we export. Keep this function at the end of the * file so that's easy to seek it to add new entries. */

Source from the content-addressed store, hash-verified

9241/* Register all the APIs we export. Keep this function at the end of the
9242 * file so that's easy to seek it to add new entries. */
9243void moduleRegisterCoreAPI(void) {
9244 server.moduleapi = dictCreate(&moduleAPIDictType,NULL);
9245 server.sharedapi = dictCreate(&moduleAPIDictType,NULL);
9246 REGISTER_API(Alloc);
9247 REGISTER_API(Calloc);
9248 REGISTER_API(Realloc);
9249 REGISTER_API(Free);
9250 REGISTER_API(Strdup);
9251 REGISTER_API(CreateCommand);
9252 REGISTER_API(SetModuleAttribs);
9253 REGISTER_API(IsModuleNameBusy);
9254 REGISTER_API(WrongArity);
9255 REGISTER_API(ReplyWithLongLong);
9256 REGISTER_API(ReplyWithError);
9257 REGISTER_API(ReplyWithSimpleString);
9258 REGISTER_API(ReplyWithArray);
9259 REGISTER_API(ReplyWithNullArray);
9260 REGISTER_API(ReplyWithEmptyArray);
9261 REGISTER_API(ReplySetArrayLength);
9262 REGISTER_API(ReplyWithString);
9263 REGISTER_API(ReplyWithEmptyString);
9264 REGISTER_API(ReplyWithVerbatimString);
9265 REGISTER_API(ReplyWithStringBuffer);
9266 REGISTER_API(ReplyWithCString);
9267 REGISTER_API(ReplyWithNull);
9268 REGISTER_API(ReplyWithCallReply);
9269 REGISTER_API(ReplyWithDouble);
9270 REGISTER_API(ReplyWithLongDouble);
9271 REGISTER_API(GetSelectedDb);
9272 REGISTER_API(SelectDb);
9273 REGISTER_API(OpenKey);
9274 REGISTER_API(CloseKey);
9275 REGISTER_API(KeyType);
9276 REGISTER_API(ValueLength);
9277 REGISTER_API(ListPush);
9278 REGISTER_API(ListPop);
9279 REGISTER_API(StringToLongLong);
9280 REGISTER_API(StringToDouble);
9281 REGISTER_API(StringToLongDouble);
9282 REGISTER_API(StringToStreamID);
9283 REGISTER_API(Call);
9284 REGISTER_API(CallReplyProto);
9285 REGISTER_API(FreeCallReply);
9286 REGISTER_API(CallReplyInteger);
9287 REGISTER_API(CallReplyType);
9288 REGISTER_API(CallReplyLength);
9289 REGISTER_API(CallReplyArrayElement);
9290 REGISTER_API(CallReplyStringPtr);
9291 REGISTER_API(CreateStringFromCallReply);
9292 REGISTER_API(CreateString);
9293 REGISTER_API(CreateStringFromLongLong);
9294 REGISTER_API(CreateStringFromDouble);
9295 REGISTER_API(CreateStringFromLongDouble);
9296 REGISTER_API(CreateStringFromString);
9297 REGISTER_API(CreateStringFromStreamID);
9298 REGISTER_API(CreateStringPrintf);
9299 REGISTER_API(FreeString);
9300 REGISTER_API(StringPtrLen);

Callers 1

moduleInitModulesSystemFunction · 0.85

Calls 1

dictCreateFunction · 0.70

Tested by

no test coverage detected