[Errors] Make error codes and utility functions public
authorSidharth Gupta <sid92.gupta@samsung.com>
Tue, 3 May 2016 04:52:48 +0000 (13:52 +0900)
committerSidharth Gupta <sid92.gupta@samsung.com>
Tue, 3 May 2016 04:54:22 +0000 (13:54 +0900)
This is temporary so that other device APIs can access
the error features during the implementation phase.

Signed-off-by: Sidharth Gupta <sid92.gupta@samsung.com>
Change-Id: Idc7f99d845878778d407eb6c62147fce1ac0ab06

Tizen.Internals/Tizen.Internals.Errors/ErrorCode.cs
Tizen.Internals/Tizen.Internals.Errors/ErrorFacts.cs

index 3f6ef90..331f7e2 100644 (file)
@@ -9,7 +9,7 @@
 
 namespace Tizen.Internals.Errors
 {
-    internal enum ErrorCode : int
+    public enum ErrorCode : int
     {
         None = 0, //  0, /**< Successful */
         NotPermitted = -1, //  -EPERM, /**< Operation not permitted */
index 3c9cf5a..4a09063 100644 (file)
@@ -15,13 +15,13 @@ namespace Tizen.Internals.Errors
     /// <summary>
     /// 
     /// </summary>
-    internal static class ErrorFacts
+    public static class ErrorFacts
     {
         /// <summary>
         /// 
         /// </summary>
         /// <returns></returns>
-        internal static int GetLastResult()
+        public static int GetLastResult()
         {
             return Interop.CommonError.GetLastResult();
         }
@@ -31,7 +31,7 @@ namespace Tizen.Internals.Errors
         /// </summary>
         /// <param name="errorCode"></param>
         /// <returns></returns>
-        internal static string GetErrorMessage(int errorCode)
+        public static string GetErrorMessage(int errorCode)
         {
             IntPtr errorPtr = Interop.CommonError.GetErrorMessage(errorCode);
             return Marshal.PtrToStringAuto(errorPtr);