MCPcopy Create free account
hub / github.com/kiibohd/controller / CLI_registerDictionary

Function CLI_registerDictionary

Debug/cli/cli.c:423–435  ·  view source on GitHub ↗

Registers a command dictionary with the CLI

Source from the content-addressed store, hash-verified

421
422// Registers a command dictionary with the CLI
423void CLI_registerDictionary( const CLIDictItem *cmdDict, const char* dictName )
424{
425 // Make sure this max limit of dictionaries hasn't been reached
426 if ( CLIDictionariesUsed >= CLIMaxDictionaries )
427 {
428 erro_printNL("Max number of dictionaries defined already...");
429 return;
430 }
431
432 // Add dictionary
433 CLIDictNames[CLIDictionariesUsed] = (char*)dictName;
434 CLIDict[CLIDictionariesUsed++] = (CLIDictItem*)cmdDict;
435}
436
437inline void CLI_tabCompletion()
438{

Callers 15

Macro_setupFunction · 0.85
Pixel_setupFunction · 0.85
Connect_setupFunction · 0.85
Dial_setupFunction · 0.85
LED_setupFunction · 0.85
Joystick_setupFunction · 0.85
Port_setupFunction · 0.85
Matrix_setupFunction · 0.85
Matrix_setupFunction · 0.85
Storage_initFunction · 0.85
LCD_setupFunction · 0.85
LED_setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…