pforge_execute_handler

Function pforge_execute_handler 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pforge_execute_handler( handler_name: *const c_char, input_json: *const u8, input_len: usize, ) -> FfiResult
Expand description

Execute a handler by name with JSON input

ยงSafety

  • handler_name must be a valid null-terminated string
  • input_json must be a valid pointer to JSON bytes
  • input_len must be the correct length of input data
  • Caller must free result data with pforge_free_result