@@ -577,10 +577,11 @@ internal partial struct SlotReserveCtx
577577 }
578578
579579 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
580- internal delegate void CustomReserveSlotCallback ( [ NativeTypeName ( "struct SlotReserveCtx" ) ] SlotReserveCtx ctx ) ;
580+ internal unsafe delegate void CustomReserveSlotCallback ( [ NativeTypeName ( "struct SlotReserveCtx" ) ] SlotReserveCtx ctx , void * sender ) ;
581581
582582 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
583- internal delegate void CustomTryReserveSlotCallback ( [ NativeTypeName ( "struct SlotReserveCtx" ) ] SlotReserveCtx ctx ) ;
583+ [ return : NativeTypeName ( "uintptr_t" ) ]
584+ internal delegate UIntPtr CustomTryReserveSlotCallback ( [ NativeTypeName ( "struct SlotReserveCtx" ) ] SlotReserveCtx ctx ) ;
584585
585586 internal enum SlotInfo_Tag
586587 {
@@ -614,7 +615,7 @@ internal unsafe partial struct SlotInfo
614615 {
615616 public SlotInfo_Tag tag ;
616617
617- [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L419_C3 " ) ]
618+ [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L422_C3 " ) ]
618619 public _Anonymous_e__Union Anonymous ;
619620
620621 internal ref WorkflowSlotInfo_Body workflow_slot_info
@@ -664,13 +665,13 @@ internal partial struct _Anonymous_e__Union
664665 }
665666 }
666667
667- internal unsafe partial struct SlotMarkUsedCtx
668+ internal partial struct SlotMarkUsedCtx
668669 {
669670 [ NativeTypeName ( "struct SlotInfo" ) ]
670671 public SlotInfo slot_info ;
671672
672- [ NativeTypeName ( "const void * " ) ]
673- public void * slot_permit ;
673+ [ NativeTypeName ( "uintptr_t " ) ]
674+ public UIntPtr slot_permit ;
674675 }
675676
676677 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
@@ -681,8 +682,8 @@ internal unsafe partial struct SlotReleaseCtx
681682 [ NativeTypeName ( "const struct SlotInfo *" ) ]
682683 public SlotInfo * slot_info ;
683684
684- [ NativeTypeName ( "const void * " ) ]
685- public void * slot_permit ;
685+ [ NativeTypeName ( "uintptr_t " ) ]
686+ public UIntPtr slot_permit ;
686687 }
687688
688689 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
@@ -720,7 +721,7 @@ internal unsafe partial struct SlotSupplier
720721 {
721722 public SlotSupplier_Tag tag ;
722723
723- [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L465_C3 " ) ]
724+ [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L468_C3 " ) ]
724725 public _Anonymous_e__Union Anonymous ;
725726
726727 internal ref FixedSizeSlotSupplier fixed_size
@@ -760,15 +761,15 @@ internal ref CustomSlotSupplierCallbacksImpl custom
760761 internal unsafe partial struct _Anonymous_e__Union
761762 {
762763 [ FieldOffset ( 0 ) ]
763- [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L466_C5 " ) ]
764+ [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L469_C5 " ) ]
764765 public _Anonymous1_e__Struct Anonymous1 ;
765766
766767 [ FieldOffset ( 0 ) ]
767- [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L469_C5 " ) ]
768+ [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L472_C5 " ) ]
768769 public _Anonymous2_e__Struct Anonymous2 ;
769770
770771 [ FieldOffset ( 0 ) ]
771- [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L472_C5 " ) ]
772+ [ NativeTypeName ( "__AnonymousRecord_temporal-sdk-bridge_L475_C5 " ) ]
772773 public _Anonymous3_e__Struct Anonymous3 ;
773774
774775 internal partial struct _Anonymous1_e__Struct
@@ -1057,5 +1058,8 @@ internal static unsafe partial class Methods
10571058 [ DllImport ( "temporal_sdk_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
10581059 [ return : NativeTypeName ( "struct WorkerReplayPushResult" ) ]
10591060 public static extern WorkerReplayPushResult worker_replay_push ( [ NativeTypeName ( "struct Worker *" ) ] Worker * worker , [ NativeTypeName ( "struct WorkerReplayPusher *" ) ] WorkerReplayPusher * worker_replay_pusher , [ NativeTypeName ( "struct ByteArrayRef" ) ] ByteArrayRef workflow_id , [ NativeTypeName ( "struct ByteArrayRef" ) ] ByteArrayRef history ) ;
1061+
1062+ [ DllImport ( "temporal_sdk_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
1063+ public static extern void complete_async_reserve ( void * sender , [ NativeTypeName ( "uintptr_t" ) ] UIntPtr permit_id ) ;
10601064 }
10611065}
0 commit comments