[Applications.WidgetControl] change return type of get instance list callback for...
authorsukhyungkang <35091460+sukhyungkang@users.noreply.github.com>
Mon, 24 Oct 2022 23:11:54 +0000 (08:11 +0900)
committerGitHub <noreply@github.com>
Mon, 24 Oct 2022 23:11:54 +0000 (08:11 +0900)
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Co-authored-by: hjhun <36876573+hjhun@users.noreply.github.com>
src/Tizen.Applications.WidgetControl/Interop/Interop.WidgetService.cs
src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs

index 270e569..63c0514 100755 (executable)
@@ -53,7 +53,7 @@ internal static partial class Interop
         }
 
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
-        internal delegate void InstanceCallback(string widgetId, string instanceId, IntPtr userData);
+        internal delegate int InstanceCallback(string widgetId, string instanceId, IntPtr userData);
 
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         internal delegate int LifecycleCallback(string widgetId, LifecycleEvent e, string instanceId, IntPtr userData);
index c734da5..843a53a 100755 (executable)
@@ -643,6 +643,8 @@ namespace Tizen.Applications
             Interop.WidgetService.ErrorCode err = Interop.WidgetService.GetInstances(Id, (widgetId, instanceId, userData) =>
             {
                 instances.Add(new Instance(widgetId) { Id = instanceId });
+
+                return (int)Interop.WidgetService.ErrorCode.None;
             }, IntPtr.Zero);
 
             switch (err)