[NUI.WindowSystem] Add new API GetSourceMimetypes of KVMService
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.WindowSystem / src / internal / Interop / Interop.KVMService.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace Tizen.NUI.WindowSystem.Shell
6 {
7     internal static partial class Interop
8     {
9         internal static partial class KVMService
10         {
11             const string lib = "libtzsh_kvm_service.so.0";
12
13             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_create")]
14             internal static extern IntPtr Create(IntPtr tzsh, IntPtr win);
15
16             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_destroy")]
17             internal static extern int Destroy(IntPtr kvmService);
18
19             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_perform_drop")]
20             internal static extern int PerformDrop(IntPtr kvmService);
21
22             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_cancel_drag")]
23             internal static extern int CancelDrag(IntPtr kvmService);
24
25             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_receive_drag_data")]
26             internal static extern int ReceiveDragData(IntPtr kvmService, string mimeType);
27
28             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_get_source_mimetypes")]
29             internal static extern int GetSourceMimetypes(
30                 IntPtr kvmService,
31                 out string[] mimeTypes,
32                 out int count);
33
34             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_secondary_selection_set")]
35             internal static extern int SetSecondarySelection(IntPtr kvmService);
36
37             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_secondary_selection_unset")]
38             internal static extern int UnsetSecondarySelection(IntPtr kvmService);
39
40             internal delegate void KVMDragStartEventCallback(IntPtr data, IntPtr kvmService);
41             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_drag_start_cb_set")]
42             internal static extern int SetDragStartEventHandler(IntPtr kvmService, KVMDragStartEventCallback func, IntPtr data);
43
44             internal delegate void KVMDragEndEventCallback(IntPtr data, IntPtr kvmService);
45             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_kvm_service_drag_end_cb_set")]
46             internal static extern int SetDragEndEventHandler(IntPtr kvmService, KVMDragEndEventCallback func, IntPtr data);
47         }
48     }
49 }