[NUI] Bind FrameUpdateCallback / EventThreadCallback / ProcessorController native...
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 4 Sep 2024 05:25:29 +0000 (14:25 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Wed, 4 Sep 2024 09:37:54 +0000 (18:37 +0900)
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Common/EventThreadCallback.cs
src/Tizen.NUI/src/internal/Common/ProcessorController.cs
src/Tizen.NUI/src/internal/Interop/Interop.EventThreadCallback.cs
src/Tizen.NUI/src/internal/Interop/Interop.FrameUpdateCallbackInterface.cs
src/Tizen.NUI/src/internal/Interop/Interop.ProcessorController.cs
src/Tizen.NUI/src/public/Common/FrameUpdateCallbackInterface.cs

index 9115d078f05003217e00555dfa06aa63973a9e00..8ebd257d4a18d7fc428c58d3385bc14bcb5dea4d 100755 (executable)
@@ -31,7 +31,8 @@ namespace Tizen.NUI
         [EditorBrowsable(EditorBrowsableState.Never)]
         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
         {
-            //NDalicManualPINVOKE.DeleteEventThreadCallback(swigCPtr);
+            Interop.EventThreadCallback.DeleteEventThreadCallback(swigCPtr);
+            NDalicPINVOKE.ThrowExceptionIfExists();
         }
 
         public EventThreadCallback(CallbackDelegate func) : this(Interop.EventThreadCallback.NewEventThreadCallback(func), true)
index e40e9f721650a036bfd27339371260bcf0e44d41..f59aea7e1e5a59afc1cec0d90f7b28430d88f553 100755 (executable)
@@ -52,6 +52,14 @@ namespace Tizen.NUI
         {
         }
 
+        /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+        {
+            Interop.ProcessorController.DeleteProcessorController(swigCPtr);
+            NDalicPINVOKE.ThrowExceptionIfExists();
+        }
+
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         internal delegate void ProcessorEventHandler();
 
index af8a9c272a2b52a22099ca71028273dc559d3cdd..e50919882a4854b3d2bec85bb69a6f272347fb54 100755 (executable)
@@ -24,6 +24,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_EventThreadCallback")]
             public static extern global::System.IntPtr NewEventThreadCallback(Tizen.NUI.EventThreadCallback.CallbackDelegate delegate1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_EventThreadCallback")]
+            public static extern void DeleteEventThreadCallback(global::System.Runtime.InteropServices.HandleRef jarg1);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_EventThreadCallback_Trigger")]
             public static extern void Trigger(global::System.Runtime.InteropServices.HandleRef jarg1);
         }
index 2c0ff9384912e45348c2a9ba92f64a67f65cda18..8a6dbf122bd285cf3cbdb8fd67ab3db5fcda51a8 100755 (executable)
@@ -24,6 +24,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_FrameCallbackInterface")]
             public static extern global::System.IntPtr newFrameUpdateCallbackInterface();
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_FrameCallbackInterface")]
+            public static extern void DeleteFrameUpdateCallbackInterface(global::System.Runtime.InteropServices.HandleRef jarg1);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_FrameCallbackInterface_director_connect_with_return")]
             public static extern void FrameUpdateCallbackInterfaceDirectorConnectV1(global::System.Runtime.InteropServices.HandleRef jarg1, Tizen.NUI.FrameUpdateCallbackInterface.DelegateFrameUpdateCallbackInterfaceV1 delegate1);
 
index ce3f97c78f3ea33086426d4e7a8374d6e7185b0f..bc37d526c305f9d04266324433c1cd3718d11ee5 100755 (executable)
@@ -25,6 +25,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_ProcessorController_Without_Initialize")]
             public static extern global::System.IntPtr NewWithoutInitialize();
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_ProcessorController")]
+            public static extern void DeleteProcessorController(global::System.Runtime.InteropServices.HandleRef processorController);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ProcessorController_Initialize")]
             public static extern void Initialize(global::System.Runtime.InteropServices.HandleRef processorController);
 
index 86405ba442ab14e9dea775a47ab087e03978e135..2a429715376e7395bd81396871a10a36544fcbf6 100755 (executable)
@@ -49,6 +49,14 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// This will not be public opened.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+        {
+            Interop.FrameUpdateCallbackInterface.DeleteFrameUpdateCallbackInterface(swigCPtr);
+            NDalicPINVOKE.ThrowExceptionIfExists();
+        }
+
         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
         public uint UpdateCallbackVersion => onUpdateCallbackVersion;