[vlc-devel] [PATCH 1/3] Make httpd_MimeFromUrl public.

Angelo Haller vlc-devel at szanni.org
Sun Jul 29 19:19:32 CEST 2012

On 07/28/2012 11:06 PM, Rémi Denis-Courmont wrote:
> 	Hello,
> Le samedi 28 juillet 2012 17:39:34 vlc-devel at szanni.org, vous avez écrit :
>> ---
>>   include/vlc_httpd.h | 2 ++
>>   src/libvlccore.sym  | 1 +
>>   src/network/httpd.c | 2 +-
>>   3 files changed, 4 insertions(+), 1 deletion(-)
> I'm not sure why you want to export that function. But if you do need to
> export outside of the http daemon, then you need to move it and rename it.
I need a way to determine the mime content-type of a given file. I was
quite surprised that I couldn't find an API call for that. The only
things I found were in the http deamon and src/misc/image.c
Or did I miss something?

What would be an appropriate place to move it to? A new module
in include/ and src/misc/ ?

The alternative would be rely on libmagic, which would add another
dependency though.

Kind regards,

More information about the vlc-devel mailing list