2 using System.Runtime.InteropServices;
4 internal static partial class Interop
6 internal static partial class Mime
8 [DllImport(Libraries.Mime, EntryPoint = "mime_type_get_mime_type", CallingConvention = CallingConvention.Cdecl)]
9 internal static extern int GetMime(
10 [System.Runtime.InteropServices.InAttribute()]
11 [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string file_extension
12 , out string mime_type);
14 [DllImport(Libraries.Mime, EntryPoint = "mime_type_get_file_extension", CallingConvention = CallingConvention.Cdecl)]
15 internal static extern int GetFile(
16 [System.Runtime.InteropServices.InAttribute()]
17 [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string mime_type
18 , out System.IntPtr file_extension, out int length);