ESP-IDF
cmd_item_
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
cmd_item_
cmd_item_ struct
Default foreground color
Syntax
Show:
Summary
Declaration
from
commands.c:21
typedef
struct
cmd_item_
{
const
char
*
command
;
const
char
*
help
;
char
*
hint
;
esp_console_cmd_func_t
func
;
esp_console_cmd_func_with_context_t
func_w_context
;
void
*
argtable
;
void
*
context
;
SLIST_ENTRY
(
cmd_item_
)
next
;
}
cmd_item_t
;
Fields
Field
Declared as
Description
cmd_item_::command
const
char
*
Command name (statically allocated by application).
cmd_item_::help
const
char
*
Help text (statically allocated by application), may be NULL.
cmd_item_::hint
char
*
Hint text, usually lists possible arguments, dynamically allocated. May be NULL.
cmd_item_::func
esp_console_cmd_func_t
cmd_item_::func_w_context
esp_console_cmd_func_with_context_t
cmd_item_::argtable
void
*
cmd_item_::context
void
*
cmd_item_::next
SLIST_ENTRY
(
cmd_item_
)
Related Functions
Found 3 other functions taking a
cmd_item_
argument:
Function
esp_console_rm_item_free_hint()
print_arg_help()
print_arg_command()
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
cmd_item_
{
commands.c:21
}
cmd_item_t
;
commands.c:40
SLIST_ENTRY
(
cmd_item_
)
next
;
//!< next command in the list
commands.c:39
}
cmd_item_t
;
commands.c:40
cmd_item_t
typedef
void
(
*
const
fn_print_arg_t
)
(
cmd_item_t
*
)
;
commands.c:42
static
SLIST_HEAD
(
cmd_list_
,
cmd_item_
)
s_cmd_list
;
commands.c:45
cmd_list_
static
const
cmd_item_t
*
find_command_by_name
(
const
char
*
name
)
;
commands.c:55
find_command_by_name()
cmd_item_t
*
it
,
*
tmp
;
commands.c:88
esp_console_deinit()
SLIST_REMOVE
(
&
s_cmd_list
,
it
,
cmd_item_
,
next
)
;
commands.c:90
esp_console_deinit()
free
(
it
)
;
commands.c:92
esp_console_deinit()
void
esp_console_rm_item_free_hint
(
cmd_item_t
*
item
)
commands.c:97
esp_console_rm_item_free_hint()
esp_console_rm_item_free_hint()::item
SLIST_REMOVE
(
&
s_cmd_list
,
item
,
cmd_item_
,
next
)
;
commands.c:99
esp_console_rm_item_free_hint()
cmd_item_t
*
item
=
(
cmd_item_t
*
)
find_command_by_name
(
cmd_name
)
;
commands.c:105
esp_console_cmd_deregister()
cmd_item_t
*
item
=
NULL
;
commands.c:116
esp_console_cmd_register()
item
=
(
cmd_item_t
*
)
find_command_by_name
(
cmd
->
command
)
;
commands.c:127
esp_console_cmd_register()
cmd_item_t
*
last
;
commands.c:163
esp_console_cmd_register()
cmd_item_t
*
it
;
commands.c:164
esp_console_cmd_register()
cmd_item_t
*
it
;
commands.c:195
esp_console_get_completion()
cmd_item_t
*
it
;
commands.c:207
esp_console_get_hint()
static
const
cmd_item_t
*
find_command_by_name
(
const
char
*
name
)
commands.c:219
find_command_by_name()
const
cmd_item_t
*
cmd
=
NULL
;
commands.c:221
find_command_by_name()
cmd_item_t
*
it
;
commands.c:222
find_command_by_name()
const
cmd_item_t
*
cmd
=
find_command_by_name
(
argv
[
0
]
)
;
commands.c:251
esp_console_run()
static
void
print_arg_help
(
cmd_item_t
*
it
)
commands.c:272
print_arg_help()
print_arg_help()::it
static
void
print_arg_command
(
cmd_item_t
*
it
)
commands.c:292
print_arg_command()
print_arg_command()::it
cmd_item_t
*
it
;
commands.c:312
help_command()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Instance
Scope
Location
Project
return
find_command_by_name()
commands.c:55
esp_console_rm_item_free_hint()::item
esp_console_rm_item_free_hint()
commands.c:97
return
find_command_by_name()
commands.c:219
print_arg_help()::it
print_arg_help()
commands.c:272
print_arg_command()::it
print_arg_command()
commands.c:292
Lifecycle
from
examples
cmd_item_
is freed by 1 symbol:
All items filtered out
cmd_item_
esp_console_deinit()
All items filtered out