myMPD
Internal API documentation
Loading...
Searching...
No Matches
mimetype.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_MIMETYPE_H
12#define MYMPD_MIMETYPE_H
13
14#include "dist/sds/sds.h"
15
16#include <stdbool.h>
17
18const char *get_mime_type_by_ext(const char *filename);
19const char *get_ext_by_mime_type(const char *mime_type);
20const char *get_mime_type_by_magic_stream(sds stream);
21const char *get_mime_type_by_magic_file(const char *filename);
22bool is_image(const char *filename);
23
24#endif
const char * get_ext_by_mime_type(const char *mime_type)
Definition mimetype.c:75
bool is_image(const char *filename)
Definition mimetype.c:169
const char * get_mime_type_by_magic_file(const char *filename)
Definition mimetype.c:128
const char * get_mime_type_by_magic_stream(sds stream)
Definition mimetype.c:93
const char * get_mime_type_by_ext(const char *filename)
Definition mimetype.c:56