MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / moduleRegisterCoreAPI

Function moduleRegisterCoreAPI

src/module.cpp:9445–9708  ·  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

9443/* Register all the APIs we export. Keep this function at the end of the
9444 * file so that's easy to seek it to add new entries. */
9445void moduleRegisterCoreAPI(void) {
9446 g_pserver->moduleapi = dictCreate(&moduleAPIDictType,NULL);
9447 g_pserver->sharedapi = dictCreate(&moduleAPIDictType,NULL);
9448 REGISTER_API(Alloc);
9449 REGISTER_API(Calloc);
9450 REGISTER_API(Realloc);
9451 REGISTER_API(Free);
9452 REGISTER_API(Strdup);
9453 REGISTER_API(CreateCommand);
9454 REGISTER_API(SetModuleAttribs);
9455 REGISTER_API(IsModuleNameBusy);
9456 REGISTER_API(WrongArity);
9457 REGISTER_API(ReplyWithLongLong);
9458 REGISTER_API(ReplyWithError);
9459 REGISTER_API(ReplyWithSimpleString);
9460 REGISTER_API(ReplyWithArray);
9461 REGISTER_API(ReplyWithNullArray);
9462 REGISTER_API(ReplyWithEmptyArray);
9463 REGISTER_API(ReplySetArrayLength);
9464 REGISTER_API(ReplyWithString);
9465 REGISTER_API(ReplyWithEmptyString);
9466 REGISTER_API(ReplyWithVerbatimString);
9467 REGISTER_API(ReplyWithStringBuffer);
9468 REGISTER_API(ReplyWithCString);
9469 REGISTER_API(ReplyWithNull);
9470 REGISTER_API(ReplyWithCallReply);
9471 REGISTER_API(ReplyWithDouble);
9472 REGISTER_API(ReplyWithLongDouble);
9473 REGISTER_API(GetSelectedDb);
9474 REGISTER_API(SelectDb);
9475 REGISTER_API(OpenKey);
9476 REGISTER_API(CloseKey);
9477 REGISTER_API(KeyType);
9478 REGISTER_API(ValueLength);
9479 REGISTER_API(ListPush);
9480 REGISTER_API(ListPop);
9481 REGISTER_API(StringToLongLong);
9482 REGISTER_API(StringToDouble);
9483 REGISTER_API(StringToLongDouble);
9484 REGISTER_API(StringToStreamID);
9485 REGISTER_API(Call);
9486 REGISTER_API(CallReplyProto);
9487 REGISTER_API(FreeCallReply);
9488 REGISTER_API(CallReplyInteger);
9489 REGISTER_API(CallReplyType);
9490 REGISTER_API(CallReplyLength);
9491 REGISTER_API(CallReplyArrayElement);
9492 REGISTER_API(CallReplyStringPtr);
9493 REGISTER_API(CreateStringFromCallReply);
9494 REGISTER_API(CreateString);
9495 REGISTER_API(CreateStringFromLongLong);
9496 REGISTER_API(CreateStringFromDouble);
9497 REGISTER_API(CreateStringFromLongDouble);
9498 REGISTER_API(CreateStringFromString);
9499 REGISTER_API(CreateStringFromStreamID);
9500 REGISTER_API(CreateStringPrintf);
9501 REGISTER_API(FreeString);
9502 REGISTER_API(StringPtrLen);

Callers 1

moduleInitModulesSystemFunction · 0.85

Calls 1

dictCreateFunction · 0.70

Tested by

no test coverage detected