209 const char* content_type,
248 const char* file_path,
249 const char* content_type,
Injected portable storage resources for downloader domain code.
bool mdl_urlname_sniff_image_type(const void *buf, size_t buf_len, const char *content_type, char *out_ext, size_t ext_cap, char *out_mime, size_t mime_cap)
Sniff true image extension and MIME type from magic bytes and/or HTTP Content-Type.
void mdl_urlname_ext(const char *url, char *out, size_t cap)
Choose a lower-case image file extension from a URL.
bool mdl_urlname_chapter_text_parse(const char *text, double *out)
Parse a selector result as one complete bounded chapter number.
ra8_err_t mdl_urlname_sniff_file(mdl_storage_t *storage, const char *file_path, const char *content_type, char *out_ext, size_t ext_cap, char *out_mime, size_t mime_cap)
Sniff true image extension and MIME type from portable storage.
double mdl_urlname_chapter_value(const char *url)
Parse a chapter URL as a possibly-decimal chapter value.
long mdl_urlname_chapter_number(const char *url)
Parse a chapter URL's integral chapter number.
void mdl_urlname_last_segment(const char *url, char *out, size_t cap)
Sanitised last non-empty path segment of a URL.
bool mdl_urlname_chapter_parse(const char *url, double *out)
Parse an explicitly-marked integral or decimal chapter value.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
One non-reentrant downloader filesystem dependency bundle.