32 .
init_fn = __vsf_linux_httpd_urihandler_file_init,
33 .fini_fn = __vsf_linux_httpd_urihandler_file_fini,
34 .serve_fn = __vsf_linux_httpd_urihandler_file_serve,
62 char *uri = req->
uri, *root_path = session->httpd->
root_path;
64 if (
NULL == root_path) {
72 if (root_path !=
NULL) {
100 uri_file = html_file;
108 stream->buffer = req->buffer;
109 stream->size =
sizeof(req->buffer);
111 req->stream_out = &stream->use_as__vsf_stream_t;
130#if VSF_KERNEL_CFG_EDA_SUPPORT_ON_TERMINATE == ENABLED
133 urihandler_file->
eda.
fn.
evthandler = __vsf_linux_httpd_urihandler_file_evthandler;
#define vsf_container_of(__ptr, __type, __member)
Definition __type.h:164
vsf_err_t
Definition __type.h:42
@ VSF_ERR_NONE
none error
Definition __type.h:44
@ VSF_ERR_FAIL
failed
Definition __type.h:51
vk_file_t * file
Definition vsf_fs.h:186
vsf_eda_on_terminate_t on_terminate
Definition vsf_eda.h:770
vsf_eda_evthandler_t evthandler
Definition vsf_eda.h:781
Definition vsf_fifo_stream.h:99
Definition vsf_linux_httpd.h:251
bool is_stream_out_started
Definition vsf_linux_httpd.h:291
vsf_linux_httpd_mime_t mime
Definition vsf_linux_httpd.h:291
char * uri
Definition vsf_linux_httpd.h:291
uint32_t content_length
Definition vsf_linux_httpd.h:291
Definition vsf_linux_httpd.h:297
__VSF_LINUX_HTTPD_PUBLIC_CONST__ char * root_path
Definition vsf_linux_httpd.h:326
Definition vsf_simple_stream.h:254
#define VSF_STREAM_INIT(__stream)
Definition vsf_simple_stream.h:126
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
#define NULL
Definition lvgl.h:26
unsigned char uint8_t
Definition lvgl.h:40
unsigned int uint_fast32_t
Definition stdint.h:27
Definition __vsf_linux_urihandler_file.h:34
vk_file_stream_t file_stream
Definition __vsf_linux_urihandler_file.h:37
vsf_fifo_stream_t stream
Definition __vsf_linux_urihandler_file.h:36
vsf_eda_t eda
Definition __vsf_linux_urihandler_file.h:35
Definition vsf_linux_httpd.h:170
vsf_err_t(* init_fn)(vsf_linux_httpd_request_t *req, uint8_t *data, uint_fast32_t size)
Definition vsf_linux_httpd.h:171
uintptr_t vsf_eda_get_return_value(void)
Definition vsf_eda.c:475
int16_t vsf_evt_t
Definition vsf_eda.h:654
@ VSF_EVT_INIT
Definition vsf_eda.h:605
@ VSF_EVT_RETURN
Definition vsf_eda.h:609
#define vsf_eda_init(__eda,...)
Definition vsf_eda.h:166
const vsf_stream_op_t vsf_fifo_stream_op
Definition vsf_fifo_stream.c:45
vsf_err_t vk_file_close(vk_file_t *file)
Definition vsf_fs.c:713
vsf_err_t vk_file_open(vk_file_t *dir, const char *name, vk_file_t **file)
Definition vsf_fs.c:686
vsf_err_t vk_file_read_stream(vk_file_stream_t *pthis, vsf_stream_t *stream, uint_fast32_t size)
Definition vsf_fs.c:1544
@ VSF_FILE_ATTR_DIRECTORY
Definition vsf_fs_cfg.h:104
#define VSF_LINUX_ASSERT
Definition vsf_linux_cfg.h:31
@ VSF_LINUX_HTTPD_MIME_TEXT_HTML
Definition vsf_linux_httpd.h:91
@ VSF_LINUX_HTTPD_NOT_FOUND
Definition vsf_linux_httpd.h:147
@ VSF_LINUX_HTTPD_OK
Definition vsf_linux_httpd.h:139
uint32_t size
Definition vsf_memfs.h:50