Code with Doxygen Comments and TCT
[platform/core/csapi/tizenfx.git] / src / Tizen.Content.MimeType / Interop / Interop.Mime.cs
1 using System;
2 using System.Runtime.InteropServices;
3
4 internal static partial class Interop
5 {
6     internal static partial class Mime
7     {
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);
13
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);
19     }
20 }