From 1ef4b90ce07ccc4e372f0b8179c69438bff24ae2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Feb 2017 16:08:38 +0300 Subject: mime type standardization --- include/m_core.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/m_core.h b/include/m_core.h index e02d594c66..8b834dbb62 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -335,6 +335,12 @@ MIR_APP_DLL(int) ProtoGetAvatarFormat(const wchar_t *ptszFileName); // detects image format by its contents MIR_APP_DLL(int) ProtoGetAvatarFileFormat(const wchar_t *ptszFileName); +// returns the mime type according to a picture type (PA_*) passed +MIR_APP_DLL(const wchar_t*) ProtoGetAvatarMimeType(int iFileType); + +// returns the picture type (PA_*) according to a mime type passed +MIR_APP_DLL(int) ProtoGetAvatarFormatByMimeType(const wchar_t *pwszMimeType); + // returns the image format and extension by the first bytes of picture // ptszExtension might be NULL #if defined( __cplusplus ) -- cgit v1.2.3