restful_server sample
_str_null_or_empty()
is only used within restful_server sample.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
restful_server sample
_str_null_or_empty()
_str_null_or_empty() function
Syntax
Show:
Summary
Declaration
from
mdns.c:224
static
inline
bool
_str_null_or_empty
(
const
char
*
str
)
;
Arguments
Argument
str
Examples
References
from
examples
Code
Location
Referrer
static
inline
bool
_str_null_or_empty
(
const
char
*
str
)
mdns.c:224
(
_str_null_or_empty
(
hostname
)
||
!
strcasecmp
(
srv
->
hostname
,
hostname
)
)
;
mdns.c:279
_mdns_service_match()
if
(
_mdns_server
&&
!
_str_null_or_empty
(
_mdns_server
->
instance
)
)
{
mdns.c:375
_mdns_get_default_instance_name()
if
(
_mdns_server
&&
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:379
_mdns_get_default_instance_name()
if
(
service
&&
!
_str_null_or_empty
(
service
->
instance
)
)
{
mdns.c:391
_mdns_get_service_instance_name()
!
strcasecmp
(
srv
->
proto
,
proto
)
&&
(
_str_null_or_empty
(
hostname
)
||
!
strcasecmp
(
srv
->
hostname
,
hostname
)
)
;
mdns.c:419
_mdns_service_match_instance()
if
(
_str_null_or_empty
(
str
[
0
]
)
)
{
mdns.c:1080
_mdns_append_srv_record()
if
(
_str_null_or_empty
(
str
[
0
]
)
)
{
mdns.c:1114
_mdns_append_a_record()
if
(
_str_null_or_empty
(
str
[
0
]
)
)
{
mdns.c:1166
_mdns_append_aaaa_record()
if
(
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:2055
_mdns_append_host_list()
if
(
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
&&
mdns.c:2097
_mdns_append_host_questions_for_services()
if
(
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:2322
_mdns_init_pcb_probe()
if
(
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:2385
_mdns_send_bye()
if
(
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:2478
_mdns_announce_pcb()
if
(
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:2914
_mdns_check_srv_collision()
if
(
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
&&
mdns.c:3124
_hostname_is_ours()
if
(
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
&&
mdns.c:3175
_mdns_delegate_hostname_set_address()
if
(
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
// self-hostname needs to be defined
mdns.c:3293
_mdns_name_is_selfhosted()
if
(
_str_null_or_empty
(
name
->
service
)
&&
_str_null_or_empty
(
name
->
proto
)
&&
mdns.c:3298
_mdns_name_is_selfhosted()
if
(
_str_null_or_empty
(
name
->
domain
)
||
(
strcasecmp
(
name
->
domain
,
MDNS_DEFAULT_DOMAIN
)
mdns.c:3317
_mdns_name_is_ours()
if
(
_str_null_or_empty
(
name
->
service
)
&&
_str_null_or_empty
(
name
->
proto
)
)
{
mdns.c:3326
_mdns_name_is_ours()
if
(
!
_str_null_or_empty
(
name
->
host
)
mdns.c:3327
_mdns_name_is_ours()
&&
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
mdns.c:3328
_mdns_name_is_ours()
if
(
_str_null_or_empty
(
name
->
service
)
||
_str_null_or_empty
(
name
->
proto
)
)
{
mdns.c:3336
_mdns_name_is_ours()
}
else
if
(
_str_null_or_empty
(
name
->
host
)
)
{
mdns.c:3345
_mdns_name_is_ours()
if
(
name
->
sub
||
_str_null_or_empty
(
name
->
host
)
)
{
mdns.c:3355
_mdns_name_is_ours()
if
(
header
.
questions
&&
!
header
.
answers
&&
_str_null_or_empty
(
_mdns_server
->
hostname
)
)
{
mdns.c:3746
mdns_parse_packet()
if
(
type
==
MDNS_TYPE_ANY
&&
!
_str_null_or_empty
(
name
->
host
)
)
{
mdns.c:3816
mdns_parse_packet()
if
(
!
_str_null_or_empty
(
service
->
service
->
instance
)
)
{
mdns.c:4070
mdns_parse_packet()
}
else
if
(
!
_str_null_or_empty
(
_mdns_server
->
instance
)
)
{
mdns.c:4077
mdns_parse_packet()
if
(
!
_str_null_or_empty
(
name
)
)
{
mdns.c:4604
_mdns_search_init()
if
(
!
_str_null_or_empty
(
service
)
)
{
mdns.c:4612
_mdns_search_init()
if
(
!
_str_null_or_empty
(
proto
)
)
{
mdns.c:4620
_mdns_search_init()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
hostname
,
r
->
hostname
)
)
{
mdns.c:4783
_mdns_search_result_add_ip()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
instance_name
)
&&
!
strcasecmp
(
instance
,
r
->
instance_name
)
)
{
mdns.c:4802
_mdns_search_result_add_ptr()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
hostname
,
r
->
hostname
)
)
{
mdns.c:4843
_mdns_search_result_add_srv()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
name
->
host
,
r
->
hostname
)
)
{
mdns.c:4954
_mdns_search_find_from()
if
(
_str_null_or_empty
(
hostname
)
||
strlen
(
hostname
)
>
(
MDNS_NAME_BUF_LEN
-
1
)
)
{
mdns.c:5814
mdns_hostname_set()
if
(
_str_null_or_empty
(
hostname
)
||
strlen
(
hostname
)
>
(
MDNS_NAME_BUF_LEN
-
1
)
)
{
mdns.c:5862
mdns_delegate_hostname_add()
if
(
_str_null_or_empty
(
hostname
)
||
strlen
(
hostname
)
>
(
MDNS_NAME_BUF_LEN
-
1
)
)
{
mdns.c:5893
mdns_delegate_hostname_remove()
if
(
_str_null_or_empty
(
hostname
)
||
strlen
(
hostname
)
>
(
MDNS_NAME_BUF_LEN
-
1
)
)
{
mdns.c:5922
mdns_delegate_hostname_set_address()
if
(
_str_null_or_empty
(
instance
)
||
_mdns_server
->
hostname
==
NULL
||
strlen
(
instance
)
>
(
MDNS_NAME_BUF_LEN
-
1
)
)
{
mdns.c:5961
mdns_instance_name_set()
if
(
!
_mdns_server
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
||
!
_mdns_server
->
hostname
)
{
mdns.c:5992
mdns_service_add_for_host()
if
(
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:6126
_mdns_lookup_service()
bool
is_service_selfhosted
=
!
_str_null_or_empty
(
_mdns_server
->
hostname
)
&&
!
strcasecmp
(
_mdns_server
->
hostname
,
srv
->
hostname
)
;
mdns.c:6138
_mdns_lookup_service()
bool
is_service_delegated
=
_str_null_or_empty
(
_mdns_server
->
hostname
)
||
strcasecmp
(
_mdns_server
->
hostname
,
srv
->
hostname
)
;
mdns.c:6139
_mdns_lookup_service()
(
_str_null_or_empty
(
instance
)
||
_mdns_instance_name_match
(
srv
->
instance
,
instance
)
)
)
{
mdns.c:6142
_mdns_lookup_service()
item
->
ttl
=
_str_null_or_empty
(
instance
)
?
MDNS_ANSWER_PTR_TTL
:
MDNS_ANSWER_SRV_TTL
;
mdns.c:6151
_mdns_lookup_service()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
port
,
mdns.c:6209
mdns_service_port_set_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
!
(
num_items
&&
txt_items
==
NULL
)
,
mdns.c:6236
mdns_service_txt_set_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
!
_str_null_or_empty
(
key
)
&&
mdns.c:6276
mdns_service_txt_item_set_for_host_with_explicit_value_len()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
!
_str_null_or_empty
(
key
)
,
mdns.c:6356
mdns_service_txt_item_remove_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
mdns.c:6439
mdns_service_subtype_remove_for_host()
!
_str_null_or_empty
(
subtype
)
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"Invalid state or arguments"
)
;
mdns.c:6440
mdns_service_subtype_remove_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
mdns.c:6497
mdns_service_subtype_add_multiple_items_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service_type
)
&&
!
_str_null_or_empty
(
proto
)
,
mdns.c:6592
mdns_service_subtype_update_multiple_items_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
&&
mdns.c:6640
mdns_service_instance_name_set_for_host()
!
_str_null_or_empty
(
instance
)
&&
strlen
(
instance
)
<=
(
MDNS_NAME_BUF_LEN
-
1
)
,
ESP_ERR_INVALID_ARG
,
err
,
TAG
,
"Invalid state or arguments"
)
;
mdns.c:6641
mdns_service_instance_name_set_for_host()
ESP_GOTO_ON_FALSE
(
_mdns_server
&&
_mdns_server
->
services
&&
!
_str_null_or_empty
(
service
)
&&
!
_str_null_or_empty
(
proto
)
,
mdns.c:6672
mdns_service_remove_for_host()
if
(
!
_mdns_server
||
!
timeout
||
_str_null_or_empty
(
service
)
!=
_str_null_or_empty
(
proto
)
)
{
mdns.c:6829
mdns_query_async_new()
if
(
!
timeout
||
_str_null_or_empty
(
service
)
!=
_str_null_or_empty
(
proto
)
)
{
mdns.c:6856
mdns_query_generic()
if
(
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:6884
mdns_query_ptr()
if
(
_str_null_or_empty
(
instance
)
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:6893
mdns_query_srv()
if
(
_str_null_or_empty
(
instance
)
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:6902
mdns_query_txt()
if
(
!
result
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:6915
mdns_lookup_delegated_service()
if
(
!
result
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:6930
mdns_lookup_selfhosted_service()
if
(
_str_null_or_empty
(
name
)
)
{
mdns.c:6945
mdns_query_a()
if
(
_str_null_or_empty
(
name
)
)
{
mdns.c:6984
mdns_query_aaaa()
if
(
!
_str_null_or_empty
(
service
)
)
{
mdns.c:7318
_mdns_browse_init()
if
(
!
_str_null_or_empty
(
proto
)
)
{
mdns.c:7326
_mdns_browse_init()
if
(
!
_mdns_server
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:7342
mdns_browse_new()
if
(
!
_mdns_server
||
_str_null_or_empty
(
service
)
||
_str_null_or_empty
(
proto
)
)
{
mdns.c:7363
mdns_browse_delete()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
hostname
,
r
->
hostname
)
)
{
mdns.c:7498
_mdns_browse_result_add_ip()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
name
->
host
,
r
->
hostname
)
)
{
mdns.c:7564
_mdns_browse_find_from()
!
_str_null_or_empty
(
r
->
instance_name
)
&&
!
strcasecmp
(
instance
,
r
->
instance_name
)
&&
mdns.c:7608
_mdns_browse_result_add_txt()
!
_str_null_or_empty
(
r
->
service_type
)
&&
!
strcasecmp
(
service
,
r
->
service_type
)
&&
mdns.c:7609
_mdns_browse_result_add_txt()
!
_str_null_or_empty
(
r
->
proto
)
&&
!
strcasecmp
(
proto
,
r
->
proto
)
)
{
mdns.c:7610
_mdns_browse_result_add_txt()
if
(
!
_str_null_or_empty
(
result_list
->
hostname
)
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
result_list
->
hostname
,
r
->
hostname
)
&&
mdns.c:7695
_mdns_copy_address_in_previous_result()
!
_str_null_or_empty
(
r
->
instance_name
)
&&
!
strcasecmp
(
instance
,
r
->
instance_name
)
&&
mdns.c:7726
_mdns_browse_result_add_srv()
!
_str_null_or_empty
(
r
->
service_type
)
&&
!
strcasecmp
(
service
,
r
->
service_type
)
&&
mdns.c:7727
_mdns_browse_result_add_srv()
!
_str_null_or_empty
(
r
->
proto
)
&&
!
strcasecmp
(
proto
,
r
->
proto
)
)
{
mdns.c:7728
_mdns_browse_result_add_srv()
if
(
_str_null_or_empty
(
r
->
hostname
)
||
strcasecmp
(
hostname
,
r
->
hostname
)
)
{
mdns.c:7729
_mdns_browse_result_add_srv()
Call Tree
from
examples
_str_null_or_empty()
is called by 56 functions:
_mdns_service_match()
_mdns_get_default_instance_name()
_mdns_get_service_instance_name()
_mdns_service_match_instance()
_mdns_append_srv_record()
_mdns_append_a_record()
_mdns_append_aaaa_record()
_mdns_append_host_list()
_mdns_append_host_questions_for_services()
_mdns_init_pcb_probe()
_mdns_send_bye()
_mdns_announce_pcb()
_mdns_check_srv_collision()
_hostname_is_ours()
_mdns_delegate_hostname_set_address()
_mdns_name_is_selfhosted()
_mdns_name_is_ours()
mdns_parse_packet()
_mdns_search_init()
_mdns_search_result_add_ip()
_mdns_search_result_add_ptr()
_mdns_search_result_add_srv()
_mdns_search_find_from()
mdns_hostname_set()
mdns_delegate_hostname_add()
mdns_delegate_hostname_remove()
mdns_delegate_hostname_set_address()
mdns_instance_name_set()
mdns_service_add_for_host()
_mdns_lookup_service()
mdns_service_port_set_for_host()
mdns_service_txt_set_for_host()
mdns_service_txt_item_set_for_host_with_explicit_value_len()
mdns_service_txt_item_remove_for_host()
mdns_service_subtype_remove_for_host()
mdns_service_subtype_add_multiple_items_for_host()
mdns_service_subtype_update_multiple_items_for_host()
mdns_service_instance_name_set_for_host()
mdns_service_remove_for_host()
mdns_query_async_new()
mdns_query_generic()
mdns_query_ptr()
mdns_query_srv()
mdns_query_txt()
mdns_lookup_delegated_service()
mdns_lookup_selfhosted_service()
mdns_query_a()
mdns_query_aaaa()
_mdns_browse_init()
mdns_browse_new()
mdns_browse_delete()
_mdns_browse_result_add_ip()
_mdns_browse_find_from()
_mdns_browse_result_add_txt()
_mdns_copy_address_in_previous_result()
_mdns_browse_result_add_srv()
All items filtered out
_str_null_or_empty()
All items filtered out
Data Use
from
examples
_str_null_or_empty()
:
All items filtered out
_str_null_or_empty()
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