All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cli_registry_i.h File Reference

Internal API for getting commands registered with the CLI. More...

#include <furi.h>
#include <m-bptree.h>
#include "cli_registry.h"

Go to the source code of this file.

Data Structures

struct  CliRegistryCommand
 

Macros

#define CLI_BUILTIN_COMMAND_STACK_SIZE   (4 * 1024U)
 
#define CLI_COMMANDS_TREE_RANK   4
 
#define M_OPL_CliCommandTree_t()
 

Functions

 BPTREE_DEF2 (CliCommandTree, CLI_COMMANDS_TREE_RANK, FuriString *, FURI_STRING_OPLIST, CliRegistryCommand, M_POD_OPLIST)
 
bool cli_registry_get_command (CliRegistry *registry, FuriString *command, CliRegistryCommand *result)
 
void cli_registry_lock (CliRegistry *registry)
 
void cli_registry_unlock (CliRegistry *registry)
 
CliCommandTree_t * cli_registry_get_commands (CliRegistry *registry)
 

Detailed Description

Internal API for getting commands registered with the CLI.

Macro Definition Documentation

◆ M_OPL_CliCommandTree_t

#define M_OPL_CliCommandTree_t ( )
Value:
BPTREE_OPLIST2(CliCommandTree, FURI_STRING_OPLIST, M_POD_OPLIST)
#define FURI_STRING_OPLIST
OPLIST for FuriString.
Definition string.h:778

Function Documentation

◆ cli_registry_get_commands()

CliCommandTree_t * cli_registry_get_commands ( CliRegistry * registry)
Warning
Surround calls to this function with cli_registry_[un]lock