restful_server sample
CHECK_FILE_EXTENSION
is only used within restful_server sample.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
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
CHECK_FILE_EXTENSION
CHECK_FILE_EXTENSION macro
Syntax
Show:
Summary
Declaration
from
rest_server.c:37
#define
CHECK_FILE_EXTENSION
(
filename
,
ext
)
(
strcasecmp
(
&
filename
[
strlen
(
filename
)
-
strlen
(
ext
)
]
,
ext
)
==
0
)
Arguments
Argument
filename
ext
Examples
References
from
examples
Code
Location
#define
CHECK_FILE_EXTENSION
(
filename
,
ext
)
(
strcasecmp
(
&
filename
[
strlen
(
filename
)
-
strlen
(
ext
)
]
,
ext
)
==
0
)
rest_server.c:37
if
(
CHECK_FILE_EXTENSION
(
filepath
,
".html"
)
)
{
rest_server.c:43
}
else
if
(
CHECK_FILE_EXTENSION
(
filepath
,
".js"
)
)
{
rest_server.c:45
}
else
if
(
CHECK_FILE_EXTENSION
(
filepath
,
".css"
)
)
{
rest_server.c:47
}
else
if
(
CHECK_FILE_EXTENSION
(
filepath
,
".png"
)
)
{
rest_server.c:49
}
else
if
(
CHECK_FILE_EXTENSION
(
filepath
,
".ico"
)
)
{
rest_server.c:51
}
else
if
(
CHECK_FILE_EXTENSION
(
filepath
,
".svg"
)
)
{
rest_server.c:53
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
Lifecycle
from
examples
All items filtered out
All items filtered out