[CommonError] Add common errors and utility functions
[platform/core/csapi/tizen.git] / Tizen.Internals / Interop / Interop.CommonError.cs
1 /// Copyright 2016 by Samsung Electronics, Inc.,
2 ///
3 /// This software is the confidential and proprietary information
4 /// of Samsung Electronics, Inc. ("Confidential Information"). You
5 /// shall not disclose such Confidential Information and shall use
6 /// it only in accordance with the terms of the license agreement
7 /// you entered into with Samsung.
8
9
10 using System;
11 using System.Runtime.InteropServices;
12
13 internal static partial class Interop
14 {
15     internal static partial class Libraries
16     {
17         public const string Base = "libcapi-base-common.so.0";
18     }
19
20     internal static partial class CommonError
21     {
22         [DllImport(Libraries.Base, EntryPoint = "get_last_result")]
23         internal static extern int GetLastResult();
24
25         [DllImport(Libraries.Base, EntryPoint = "get_error_message")]
26         internal static extern IntPtr GetErrorMessage(int errorCode);
27     }
28 }