[NUI] Ensure UnmanagedType.U1 mark add for bool return type
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 12 Nov 2024 04:00:40 +0000 (13:00 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 19 Nov 2024 06:39:04 +0000 (15:39 +0900)
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Common/VersionCheck.cs
src/Tizen.NUI/src/internal/Interop/Interop.DragAndDrop.cs
src/Tizen.NUI/src/internal/Interop/Interop.NativeImageQueue.cs
src/Tizen.NUI/src/internal/Interop/Interop.PropertyMap.cs
src/Tizen.NUI/src/internal/Interop/Interop.VisualFactory.cs
src/Tizen.NUI/src/internal/Utility/EnvironmentVariable.cs

index 6c961fbdbec92772af173331ba91040e8d3df803..540955f8a58d1bcde286ae489b5fa270d0e94100 100755 (executable)
@@ -33,9 +33,11 @@ namespace Tizen.NUI
         public const int reservedVer2 = 0;
 
         [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_NativeVersionCheck")]
+        [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
         public static extern bool NativeVersionCheck(ref int ver1, ref int ver2, ref int ver3);
 
         [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_NUI_InternalAPIVersionCheck")]
+        [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
         public static extern bool InternalAPIVersionCheck(ref int ver1, ref int ver2, ref int ver3);
 
         static internal bool DaliVersionMatchWithNUI()
index 278ea1b2fed164907cd5426ad25d55255995b64c..e921ba3060a5f15af42289e4b2aaefbb5d3ad1a9 100755 (executable)
@@ -33,6 +33,7 @@ namespace Tizen.NUI
             public static extern global::System.IntPtr New();
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_DragAndDrop_StartDragAndDrop")]
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool StartDragAndDrop(global::System.Runtime.InteropServices.HandleRef dragAndDrop, global::System.Runtime.InteropServices.HandleRef sourceView, global::System.Runtime.InteropServices.HandleRef shadow, string [] mimeTypes, int mimeTypsSize, string [] dataSet, int dataSetSize, global::System.Runtime.InteropServices.HandleRef callback);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_DragAndDrop_AddListener")]
@@ -58,6 +59,7 @@ namespace Tizen.NUI
             public static extern global::System.IntPtr GetPosition(global::System.IntPtr dragAndDrop);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_DragEvent_GetMimeTypes")]
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool GetMimeTypes(global::System.IntPtr dragAndDrop, out global::System.IntPtr mimeTypes, out int count);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_DragEvent_GetData")]
index d008a992de86e54d5cc9e5b83c75a1f2b23135aa..56d65ecc97946b1e6bba787248489bbc26ce084a 100644 (file)
@@ -33,6 +33,7 @@ namespace Tizen.NUI
             public static extern void Delete(IntPtr queue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_NativeImageQueue_CanDequeueBuffer")]
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool CanDequeueBuffer(IntPtr queue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_NativeImageQueue_DequeueBuffer")]
index eaaead83d6128d51865b6e7195c647d83d2a1248..9268f58a66c8e70e7294db941f3e4b181cfb4667 100755 (executable)
@@ -50,9 +50,11 @@ namespace Tizen.NUI
             public static extern global::System.IntPtr Add(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Property_Map_Remove__SWIG_0")]
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool Remove(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Property_Map_Remove__SWIG_1")]
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool Remove(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Property_Map_GetValue")]
index 0be090072462b0c15ae12b224667369e71a50bc0..3db470b1879e5a399cd464ecbb7c198f56357222 100755 (executable)
@@ -32,6 +32,7 @@ namespace Tizen.NUI
             public static extern global::System.IntPtr CreateVisual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_VisualFactory_AddPrecompileShader")]
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool AddPrecompileShader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_VisualFactory_UsePreCompiledShader")]
index 017d6dfdad099222d96ee10f14cb16ea1b95c853..5fdee02269794a6f0e1818788563efb83539dff8 100755 (executable)
@@ -29,6 +29,7 @@ namespace Tizen.NUI
         private static extern string EnvironmentVariable_GetEnvironmentVariable(string jarg1);
 
         [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_SetEnvironmentVariable")]
+        [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
         private static extern bool EnvironmentVariable_SetEnvironmentVariable(string jarg1, string jarg2);
 
         /// <summary>