ipfrs_get

Function ipfrs_get 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ipfrs_get( client: *mut IpfrsClient, cid: *const c_char, out_data: *mut *mut u8, out_len: *mut usize, ) -> c_int
Expand description

Get data from IPFRS by CID

§Arguments

  • client - Pointer to IpfrsClient
  • cid - Null-terminated CID string
  • out_data - Output pointer to receive data buffer (must be freed with ipfrs_data_free)
  • out_len - Output pointer to receive data length

§Returns

Error code (0 for success)

§Safety

  • client must be a valid pointer from ipfrs_client_new()
  • cid must be a valid null-terminated UTF-8 string
  • out_data must be a valid pointer
  • out_len must be a valid pointer