Skip to content

Commit

Permalink
[NUI] Bind FrameUpdateCallback / EventThreadCallback / ProcessorContr…
Browse files Browse the repository at this point in the history
…oller native release API

Signed-off-by: Eunki, Hong <[email protected]>
  • Loading branch information
Eunki, Hong authored and hinohie committed Sep 4, 2024
1 parent 4953367 commit b0d0d4e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tizen.NUI/src/internal/Common/EventThreadCallback.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ internal EventThreadCallback(global::System.IntPtr cPtr, bool cMemoryOwn) : base
[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)
Expand Down
8 changes: 8 additions & 0 deletions src/Tizen.NUI/src/internal/Common/ProcessorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ internal ProcessorController(global::System.IntPtr cPtr, bool cMemoryOwn) : base
{
}

/// 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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ internal static partial class EventThreadCallback
[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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ internal static partial class FrameUpdateCallbackInterface
[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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal static partial class ProcessorController
[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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ public FrameUpdateCallbackInterface(uint updateCallbackVersion) : this(Interop.F
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;
Expand Down

0 comments on commit b0d0d4e

Please sign in to comment.