restful_server sample
mdns_add_args
is only used within restful_server sample.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
restful_server sample
mdns_add_args
mdns_add_args variable
Syntax
Show:
Summary
Declaration
from
mdns_console.c:696
static
struct
{
struct
arg_str
*
service
;
struct
arg_str
*
proto
;
struct
arg_int
*
port
;
struct
arg_str
*
instance
;
struct
arg_str
*
host
;
struct
arg_str
*
txt
;
struct
arg_end
*
end
;
}
mdns_add_args
;
Examples
References
from
examples
Code
Location
Referrer
}
mdns_add_args
;
mdns_console.c:704
int
nerrors
=
arg_parse
(
argc
,
argv
,
(
void
*
*
)
&
mdns_add_args
)
;
mdns_console.c:708
cmd_mdns_service_add()
arg_print_errors
(
stderr
,
mdns_add_args
.
end
,
argv
[
0
]
)
;
mdns_console.c:710
cmd_mdns_service_add()
if
(
!
mdns_add_args
.
service
->
sval
[
0
]
||
!
mdns_add_args
.
proto
->
sval
[
0
]
||
!
mdns_add_args
.
port
->
ival
[
0
]
)
{
mdns_console.c:714
cmd_mdns_service_add()
if
(
mdns_add_args
.
instance
->
sval
[
0
]
&&
mdns_add_args
.
instance
->
sval
[
0
]
[
0
]
)
{
mdns_console.c:719
cmd_mdns_service_add()
instance
=
mdns_add_args
.
instance
->
sval
[
0
]
;
mdns_console.c:720
cmd_mdns_service_add()
if
(
mdns_add_args
.
host
->
count
&&
mdns_add_args
.
host
->
sval
[
0
]
)
{
mdns_console.c:724
cmd_mdns_service_add()
host
=
mdns_add_args
.
host
->
sval
[
0
]
;
mdns_console.c:725
cmd_mdns_service_add()
if
(
mdns_add_args
.
txt
->
count
)
{
mdns_console.c:729
cmd_mdns_service_add()
items
=
_convert_items
(
mdns_add_args
.
txt
->
sval
,
mdns_add_args
.
txt
->
count
)
;
mdns_console.c:730
cmd_mdns_service_add()
ESP_ERROR_CHECK
(
mdns_service_add_for_host
(
instance
,
mdns_add_args
.
service
->
sval
[
0
]
,
mdns_add_args
.
proto
->
sval
[
0
]
,
mdns_console.c:738
cmd_mdns_service_add()
host
,
mdns_add_args
.
port
->
ival
[
0
]
,
items
,
mdns_add_args
.
txt
->
count
)
)
;
mdns_console.c:739
cmd_mdns_service_add()
mdns_add_args
.
service
=
arg_str1
(
NULL
,
NULL
,
"<service>"
,
"MDNS Service"
)
;
mdns_console.c:746
register_mdns_service_add()
mdns_add_args
.
proto
=
arg_str1
(
NULL
,
NULL
,
"<proto>"
,
"IP Protocol"
)
;
mdns_console.c:747
register_mdns_service_add()
mdns_add_args
.
port
=
arg_int1
(
NULL
,
NULL
,
"<port>"
,
"Service Port"
)
;
mdns_console.c:748
register_mdns_service_add()
mdns_add_args
.
instance
=
arg_str0
(
"i"
,
"instance"
,
"<instance>"
,
"Instance name"
)
;
mdns_console.c:749
register_mdns_service_add()
mdns_add_args
.
host
=
arg_str0
(
"h"
,
"host"
,
"<hostname>"
,
"Service for this (delegated) host"
)
;
mdns_console.c:750
register_mdns_service_add()
mdns_add_args
.
txt
=
arg_strn
(
NULL
,
NULL
,
"item"
,
0
,
30
,
"TXT Items (name=value)"
)
;
mdns_console.c:751
register_mdns_service_add()
mdns_add_args
.
end
=
arg_end
(
2
)
;
mdns_console.c:752
register_mdns_service_add()
.
argtable
=
&
mdns_add_args
mdns_console.c:759
register_mdns_service_add()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mdns_add_args
is read by 2 functions:
All items filtered out
mdns_add_args
cmd_mdns_service_add()
register_mdns_service_add()
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
Lifecycle
from
examples
All items filtered out
All items filtered out