|
myMPD
Internal API documentation
|
Webserver utility functions. More...
#include "dist/mongoose/mongoose.h"#include "dist/sds/sds.h"

Go to the source code of this file.
Enumerations | |
| enum | placeholder_types { PLACEHOLDER_UNKNOWN = -1 , PLACEHOLDER_BOOKLET , PLACEHOLDER_FOLDER , PLACEHOLDER_MYMPD , PLACEHOLDER_NA , PLACEHOLDER_PLAYLIST , PLACEHOLDER_SMARTPLS , PLACEHOLDER_STREAM , PLACEHOLDER_TRANSPARENT , PLACEHOLDER_COUNT } |
Functions | |
| const char * | placeholder_lookup_name (enum placeholder_types placeholder) |
| void | webserver_redirect_placeholder_image (struct mg_connection *nc, enum placeholder_types placeholder_type) |
| void | webserver_serve_placeholder_image (struct mg_connection *nc, struct mg_http_message *hm, sds uri) |
| void | get_placeholder_image (sds workdir, const char *name, sds *result) |
Webserver utility functions.
| enum placeholder_types |
Placeholder types
| void get_placeholder_image | ( | sds | workdir, |
| const char * | name, | ||
| sds * | result | ||
| ) |
Finds and sets the placeholder images
| workdir | myMPD working directory |
| name | basename to search for |
| result | pointer to sds result |
| const char * placeholder_lookup_name | ( | enum placeholder_types | placeholder | ) |
Lookups the placeholder string
| placeholder | Placeholder |
| void webserver_redirect_placeholder_image | ( | struct mg_connection * | nc, |
| enum placeholder_types | placeholder_type | ||
| ) |
Redirects to the placeholder image
| nc | mongoose connection |
| placeholder_type | Type of placeholder image |
| void webserver_serve_placeholder_image | ( | struct mg_connection * | nc, |
| struct mg_http_message * | hm, | ||
| sds | uri | ||
| ) |
Serves the placeholder image
| nc | mongoose connection |
| hm | http message |
| uri | placeholder uri |