Skip to main content

ffi_init_agent

Function ffi_init_agent 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ffi_init_agent( socket_path: *const c_char, ) -> c_int
Expand description

Initializes the FFI agent with the specified socket path.

Must be called before using ffi_agent_sign() or other agent-related FFI functions.

§Safety

  • socket_path must be null or point to a valid C string.

§Returns

  • 0 on success
  • 1 if the socket path is invalid
  • FFI_ERR_PANIC (-127) if a panic occurred