|
myMPD
Internal API documentation
|
Webserver utility functions. More...
#include "compile_time.h"#include "src/webserver/mg_user_data.h"#include "src/lib/cert.h"#include "src/lib/filehandler.h"#include "src/lib/mem.h"#include "src/lib/sds_extras.h"
Functions | |
| static void | add_file (struct t_mg_user_data *mg_user_data, const char *uri, const char *mimetype, bool compressed, bool cache, const unsigned char *data, unsigned size) |
| static bool | read_certs (struct t_mg_user_data *mg_user_data, struct t_config *config) |
| struct t_mg_user_data * | webserver_init_mg_user_data (struct t_config *config) |
| void | mg_user_data_free (struct t_mg_user_data *mg_user_data) |
| void | mg_user_data_free_void (void *mg_user_data) |
Webserver utility functions.
|
static |
Private functions Adds a file to the
| mg_user_data | |
| uri | |
| mimetype | |
| compressed | |
| cache | |
| data | |
| size |
| void mg_user_data_free | ( | struct t_mg_user_data * | mg_user_data | ) |
Frees the members of mg_user_data struct and the struct itself
| mg_user_data | pointer to mg_user_data struct |
| void mg_user_data_free_void | ( | void * | mg_user_data | ) |
Frees the members of mg_user_data struct and the struct itself
| mg_user_data | pointer to mg_user_data struct |
|
static |
Reads the ssl key and certificate from disc
| mg_user_data | pointer to mongoose user data |
| config | pointer to myMPD config |
| struct t_mg_user_data * webserver_init_mg_user_data | ( | struct t_config * | config | ) |
Mallocs and initializes the mg_user_data struct for the webserver
| config | pointer to myMPD config |