mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
SDK: Fix missing RECORD_CLI define (#4185)
* SDK: Fix missing RECORD_CLI define * sdk: added compatibility `cli.h` header * cli: updated porting comments --------- Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
@@ -22,7 +22,7 @@ App(
|
||||
entry_point="cli_vcp_srv",
|
||||
stack_size=1024,
|
||||
order=10,
|
||||
sdk_headers=["cli_vcp.h"],
|
||||
sdk_headers=["cli_vcp.h", "cli.h"],
|
||||
sources=["cli_vcp.c"],
|
||||
)
|
||||
|
||||
|
||||
13
applications/services/cli/cli.h
Normal file
13
applications/services/cli/cli.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* Compatibility header for ease of porting existing apps.
|
||||
* In short:
|
||||
* Cli* is replaced with with CliRegistry*
|
||||
* cli_* functions are replaced with cli_registry_* functions
|
||||
* (i.e., cli_add_command() is now cli_registry_add_command())
|
||||
*/
|
||||
|
||||
#include <toolbox/cli/cli_registry.h>
|
||||
|
||||
#define RECORD_CLI "cli"
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "cli.h"
|
||||
#include <toolbox/cli/cli_command.h>
|
||||
#include <toolbox/cli/cli_registry.h>
|
||||
|
||||
#define RECORD_CLI "cli"
|
||||
#define CLI_APPID "cli"
|
||||
|
||||
void cli_main_commands_init(CliRegistry* registry);
|
||||
|
||||
@@ -2,6 +2,7 @@ entry,status,name,type,params
|
||||
Version,+,85.0,,
|
||||
Header,+,applications/services/bt/bt_service/bt.h,,
|
||||
Header,+,applications/services/bt/bt_service/bt_keys_storage.h,,
|
||||
Header,+,applications/services/cli/cli.h,,
|
||||
Header,+,applications/services/cli/cli_vcp.h,,
|
||||
Header,+,applications/services/dialogs/dialogs.h,,
|
||||
Header,+,applications/services/dolphin/dolphin.h,,
|
||||
|
||||
|
@@ -3,6 +3,7 @@ Version,+,85.0,,
|
||||
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
|
||||
Header,+,applications/services/bt/bt_service/bt.h,,
|
||||
Header,+,applications/services/bt/bt_service/bt_keys_storage.h,,
|
||||
Header,+,applications/services/cli/cli.h,,
|
||||
Header,+,applications/services/cli/cli_vcp.h,,
|
||||
Header,+,applications/services/dialogs/dialogs.h,,
|
||||
Header,+,applications/services/dolphin/dolphin.h,,
|
||||
|
||||
|
Reference in New Issue
Block a user