@@ -580,10 +580,10 @@ internal partial struct WorkerOptions
580580 }
581581
582582 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
583- internal unsafe delegate void WorkerPollCallback ( void * user_data , [ NativeTypeName ( "const struct ByteArray *" ) ] ByteArray * success , [ NativeTypeName ( "const struct ByteArray *" ) ] ByteArray * fail ) ;
583+ internal unsafe delegate void WorkerCallback ( void * user_data , [ NativeTypeName ( "const struct ByteArray *" ) ] ByteArray * fail ) ;
584584
585585 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
586- internal unsafe delegate void WorkerCallback ( void * user_data , [ NativeTypeName ( "const struct ByteArray *" ) ] ByteArray * fail ) ;
586+ internal unsafe delegate void WorkerPollCallback ( void * user_data , [ NativeTypeName ( "const struct ByteArray *" ) ] ByteArray * success , [ NativeTypeName ( "const struct ByteArray *" ) ] ByteArray * fail ) ;
587587
588588 internal unsafe partial struct WorkerReplayerOrFail
589589 {
@@ -726,6 +726,9 @@ internal static unsafe partial class Methods
726726 [ DllImport ( "temporal_sdk_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
727727 public static extern void worker_free ( [ NativeTypeName ( "struct Worker *" ) ] Worker * worker ) ;
728728
729+ [ DllImport ( "temporal_sdk_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
730+ public static extern void worker_validate ( [ NativeTypeName ( "struct Worker *" ) ] Worker * worker , void * user_data , [ NativeTypeName ( "WorkerCallback" ) ] IntPtr callback ) ;
731+
729732 [ DllImport ( "temporal_sdk_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
730733 public static extern void worker_replace_client ( [ NativeTypeName ( "struct Worker *" ) ] Worker * worker , [ NativeTypeName ( "struct Client *" ) ] Client * new_client ) ;
731734
0 commit comments