Skip to main content

pamoja_gateway_station_router_refused

Function pamoja_gateway_station_router_refused 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_router_refused( router: *const u8, error: *const u8, error_len: usize, out_text: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Writes the answer that refuses a station, saying why.

§Arguments

  • router - the station being refused, eight bytes.
  • error - what is wrong, in words the operator can act on, UTF-8.
  • error_len - how many bytes error holds.
  • out_text - receives the answer, which the caller releases with pamoja_buffer_free.

§Returns

PamojaStatus::Ok once written.

§Safety

router must point to eight readable bytes, error to error_len readable bytes, and out_text to writable storage.