@@ -16,7 +16,7 @@ pub struct Local {
1616///
1717/// It contains the arguments used to invoke the function, the isolate reference, the `this` object
1818/// the function is bound to and a mechanism to return a value to the caller.
19- pub type FunctionCallbackInfo = c_void ;
19+ pub type FunctionCallbackInfo = * const c_void ;
2020
2121#[ repr( C ) ]
2222#[ derive( Debug , Copy , Clone ) ]
@@ -93,14 +93,14 @@ extern "C" {
9393 pub fn Neon_Buffer_Uninitialized ( out : & mut Local , size : u32 ) -> bool ;
9494 pub fn Neon_Buffer_Data < ' a , ' b > ( base_out : & ' a mut * mut c_void , obj : Local ) -> usize ;
9595
96- pub fn Neon_Call_SetReturn ( info : & FunctionCallbackInfo , value : Local ) ;
97- pub fn Neon_Call_GetIsolate ( info : & FunctionCallbackInfo ) -> Isolate ;
96+ pub fn Neon_Call_SetReturn ( info : FunctionCallbackInfo , value : Local ) ;
97+ pub fn Neon_Call_GetIsolate ( info : FunctionCallbackInfo ) -> Isolate ;
9898 pub fn Neon_Call_CurrentIsolate ( ) -> Isolate ;
99- pub fn Neon_Call_IsConstruct ( info : & FunctionCallbackInfo ) -> bool ;
100- pub fn Neon_Call_This ( info : & FunctionCallbackInfo , out : & mut Local ) ;
101- pub fn Neon_Call_Data ( info : & FunctionCallbackInfo , out : & mut Local ) ;
102- pub fn Neon_Call_Length ( info : & FunctionCallbackInfo ) -> i32 ;
103- pub fn Neon_Call_Get ( info : & FunctionCallbackInfo , i : i32 , out : & mut Local ) ;
99+ pub fn Neon_Call_IsConstruct ( info : FunctionCallbackInfo ) -> bool ;
100+ pub fn Neon_Call_This ( isolate : Isolate , info : FunctionCallbackInfo , out : & mut Local ) ;
101+ pub fn Neon_Call_Data ( isolate : Isolate , info : FunctionCallbackInfo , out : & mut * mut c_void ) ;
102+ pub fn Neon_Call_Length ( isolate : Isolate , info : FunctionCallbackInfo ) -> i32 ;
103+ pub fn Neon_Call_Get ( isolate : Isolate , info : FunctionCallbackInfo , i : i32 , out : & mut Local ) ;
104104
105105 pub fn Neon_Class_GetClassMap ( isolate : Isolate ) -> * mut c_void ;
106106 pub fn Neon_Class_SetClassMap ( isolate : Isolate , map : * mut c_void , free_map : * mut c_void ) ;
@@ -115,9 +115,9 @@ extern "C" {
115115 pub fn Neon_Class_ThrowThisError ( isolate : Isolate , metadata : * mut c_void ) ;
116116 pub fn Neon_Class_AddMethod ( isolate : Isolate , metadata : * mut c_void , name : * const u8 , byte_length : u32 , method : Local ) -> bool ;
117117 pub fn Neon_Class_MetadataToConstructor ( out : & mut Local , isolate : Isolate , metadata : * mut c_void ) -> bool ;
118- pub fn Neon_Class_GetAllocateKernel ( obj : Local ) -> * mut c_void ;
119- pub fn Neon_Class_GetConstructKernel ( obj : Local ) -> * mut c_void ;
120- pub fn Neon_Class_GetCallKernel ( obj : Local ) -> * mut c_void ;
118+ pub fn Neon_Class_GetAllocateKernel ( data : * mut c_void ) -> * mut c_void ;
119+ pub fn Neon_Class_GetConstructKernel ( data : * mut c_void ) -> * mut c_void ;
120+ pub fn Neon_Class_GetCallKernel ( data : * mut c_void ) -> * mut c_void ;
121121 pub fn Neon_Class_Constructor ( out : & mut Local , ft : Local ) -> bool ;
122122 pub fn Neon_Class_HasInstance ( metadata : * mut c_void , v : Local ) -> bool ;
123123 pub fn Neon_Class_GetInstanceInternals ( obj : Local ) -> * mut c_void ;
@@ -133,7 +133,7 @@ extern "C" {
133133
134134 pub fn Neon_Fun_New ( out : & mut Local , isolate : Isolate , callback : CCallback ) -> bool ;
135135 pub fn Neon_Fun_Template_New ( out : & mut Local , isolate : Isolate , callback : CCallback ) -> bool ;
136- pub fn Neon_Fun_GetDynamicCallback ( obj : Local ) -> * mut c_void ;
136+ pub fn Neon_Fun_GetDynamicCallback ( isolate : Isolate , data : * mut c_void ) -> * mut c_void ;
137137 pub fn Neon_Fun_Call ( out : & mut Local , isolate : Isolate , fun : Local , this : Local , argc : i32 , argv : * mut c_void ) -> bool ;
138138 pub fn Neon_Fun_Construct ( out : & mut Local , isolate : Isolate , fun : Local , argc : i32 , argv : * mut c_void ) -> bool ;
139139
0 commit comments