2 using System.Runtime.InteropServices;
3 using Tizen.Multimedia;
5 internal static partial class Interop
7 internal static partial class MetadataEditor
9 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_create")]
10 internal static extern MetadataEditorError Create(out IntPtr handle);
12 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_set_path")]
13 internal static extern MetadataEditorError SetPath(IntPtr handle, string path);
15 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_destroy")]
16 internal static extern MetadataEditorError Destroy(IntPtr handle);
18 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_get_metadata")]
19 internal static extern MetadataEditorError GetMetadata(IntPtr handle, MetadataEditorAttr attribute, out IntPtr value);
21 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_set_metadata")]
22 internal static extern MetadataEditorError SetMetadata(IntPtr handle, MetadataEditorAttr attribute, string value);
24 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_update_metadata")]
25 internal static extern MetadataEditorError UpdateMetadata(IntPtr handle);
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);
30 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_append_picture")]
31 internal static extern MetadataEditorError AddPicture(IntPtr handle, string path);
33 [DllImport(Libraries.MetadataEditor, EntryPoint = "metadata_editor_remove_picture")]
34 internal static extern MetadataEditorError RemovePicture(IntPtr handle, int index);