BSB Developer Docs
Loading...
Searching...
No Matches
cli_registry_i.h File Reference

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

#include <furi.h>
#include <m-dict.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_REGISTRY_COMMAND_CLEAR(a)
 
#define CLI_REGISTRY_COMMAND_OPTLIST   M_OPEXTEND(M_POD_OPLIST, CLEAR(CLI_REGISTRY_COMMAND_CLEAR))
 
#define M_OPL_CliCommandDict_t()
 

Functions

void cli_registry_command_clear (CliRegistryCommand cmd)
 
 DICT_DEF2 (CliCommandDict, FuriString *, FURI_STRING_OPLIST, CliRegistryCommand, CLI_REGISTRY_COMMAND_OPTLIST)
 
bool cli_registry_get_command (CliRegistry *registry, FuriString *command, CliRegistryCommand *result)
 
void cli_registry_lock (CliRegistry *registry)
 
void cli_registry_unlock (CliRegistry *registry)
 
CliCommandDict_t * cli_registry_get_commands (CliRegistry *registry)
 

Detailed Description

Internal API for getting commands registered with the CLI.

Macro Definition Documentation

◆ CLI_REGISTRY_COMMAND_CLEAR

#define CLI_REGISTRY_COMMAND_CLEAR ( a)
Value:
do { \
if(a.run_semaphore) furi_semaphore_free(a.run_semaphore); \
} while(0)

◆ M_OPL_CliCommandDict_t

#define M_OPL_CliCommandDict_t ( )
Value:
DICT_OPLIST(CliCommandDict, FURI_STRING_OPLIST, M_POD_OPLIST)

Function Documentation

◆ cli_registry_get_commands()

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