[NUI] Add WindowSystem's quickpanel APIs (#1715)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.WindowSystem / src / internal / Interop / Interop.TizenShell.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace Tizen.NUI
6 {
7     internal static partial class Interop
8     {
9         internal static partial class TizenShell
10         {
11             const string lib = "libtzsh_common.so.0";
12
13             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_create")]
14             internal static extern IntPtr Create(int type);
15
16             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_destroy")]
17             internal static extern int Destroy(IntPtr tzsh);
18
19             [global::System.Runtime.InteropServices.DllImport(lib, EntryPoint = "tzsh_event_type_new")]
20             internal static extern int NewEventType(IntPtr tzsh, string name);
21
22             internal enum ToolKitType
23             {
24                 Unknown = 0,
25                 Efl = 1,
26             }
27
28             private const int ErrorTzsh = -0x02860000;
29
30             internal enum ErrorCode
31             {
32                 None = Tizen.Internals.Errors.ErrorCode.None,                            /* Successful */
33                 OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory,              /* Out of memory */
34                 InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter,    /* Invalid parameter */
35                 PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied,    /* Permission denied */
36                 NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported,            /* NOT supported */
37                 NoService = ErrorTzsh | 0x01,                                            /* Service does not exist */
38             }
39         }
40     }
41 }