Add SharedMemoryFlags.Inout & Change error from NotImplementedException to NotSupport...
authorDongsun Lee <ds73.lee@samsung.com>
Mon, 22 May 2017 05:47:57 +0000 (14:47 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Mon, 22 May 2017 07:13:55 +0000 (16:13 +0900)
Change-Id: I0ced0e8ea835467e0608e049fed03c4f80fa6fb7
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
src/Tizen.Security.TEEC/Interop/Interop.Errors.cs
src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs

index b95a116..eb86422 100644 (file)
@@ -25,7 +25,7 @@ internal static partial class Interop
             case (uint)LibteecError.None:
                 return ;
             case (uint)LibteecError.NotImplemented:
-                throw new NotImplementedException(string.Format("[{0}] {1} error=0x{2}",
+                throw new NotSupportedException(string.Format("[{0}] {1} error=0x{2}",
                         LogTag, msg, err.ToString("X")));
             case (uint)LibteecError.CommunicationFailed:
                 throw new Exception(string.Format("[{0}] {1} error=0x{2}",
index 437e13e..9e3229a 100644 (file)
@@ -93,6 +93,8 @@ namespace Tizen.Security.TEEC
         Input  = 0x00000001,
         /// <summary>A flag indicates Shared Memory can be written.</summary>
         Output = 0x00000002,
+        /// <summary>A flag indicates Shared Memory can be read and written.</summary>
+        InOut = 0x00000003,
     }
 
     /// <summary>