Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.Metadata / Interop / Interop.MetadataEditor.cs
1 using System;
2 using System.Runtime.InteropServices;
3 using Tizen.Multimedia;
4
5 internal static partial class Interop
6 {
7     internal static partial class MetadataEditor
8     {
9         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_create")]
10         internal static extern MetadataEditorError Create(out IntPtr handle);
11
12         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_set_path")]
13         internal static extern MetadataEditorError SetPath(IntPtr handle, string path);
14
15         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_destroy")]
16         internal static extern MetadataEditorError Destroy(IntPtr handle);
17
18         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_get_metadata")]
19         internal static extern MetadataEditorError GetMetadata(IntPtr handle, MetadataEditorAttr attribute, out IntPtr value);
20
21         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_set_metadata")]
22         internal static extern MetadataEditorError SetMetadata(IntPtr handle, MetadataEditorAttr attribute, string value);
23
24         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_update_metadata")]
25         internal static extern MetadataEditorError UpdateMetadata(IntPtr handle);
26
27         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_get_picture")]
28         internal static extern MetadataEditorError GetPicture(IntPtr handle, int index, out IntPtr picture, out int size, out IntPtr mimeType);
29
30         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_append_picture")]
31         internal static extern MetadataEditorError AddPicture(IntPtr handle, string path);
32
33         [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_remove_picture")]
34         internal static extern MetadataEditorError RemovePicture(IntPtr handle, int index);
35     }
36 }