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>
}
[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);
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)