myMPD
Internal API documentation
|
Webserver implementation. More...
Go to the source code of this file.
Functions | |
void * | webserver_loop (void *arg_mgr) |
bool | webserver_init (struct mg_mgr *mgr, struct t_config *config, struct t_mg_user_data *mg_user_data) |
bool | webserver_read_certs (struct t_mg_user_data *mg_user_data, struct t_config *config) |
void * | webserver_free (struct mg_mgr *mgr) |
Webserver implementation.
void * webserver_free | ( | struct mg_mgr * | mgr | ) |
Frees the mongoose mgr
mgr | mongoose mgr to free |
bool webserver_init | ( | struct mg_mgr * | mgr, |
struct t_config * | config, | ||
struct t_mg_user_data * | mg_user_data | ||
) |
Public functions Initializes the webserver
mgr | mongoose mgr |
config | pointer to myMPD config |
mg_user_data | already allocated t_mg_user_data to populate |
void * webserver_loop | ( | void * | arg_mgr | ) |
Main function for the webserver thread
arg_mgr | void pointer to mongoose mgr |
bool webserver_read_certs | ( | struct t_mg_user_data * | mg_user_data, |
struct t_config * | config | ||
) |
Reads the ssl key and certificate from disc
mg_user_data | pointer to mongoose user data |
config | pointer to myMPD config |