Skip to main content

pamoja_mavlink_enum_len

Function pamoja_mavlink_enum_len 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mavlink_enum_len( enumeration: *const c_char, out_len: *mut usize, ) -> PamojaStatus
Expand description

Returns how many entries an enumeration names.

§Arguments

  • enumeration - the enumeration’s name, as null-terminated UTF-8.
  • out_len - receives the count, for walking the entries with pamoja_mavlink_enum_entry_at.

§Returns

PamojaStatus::Ok, or PamojaStatus::InvalidArgument if the enumeration is unknown or an argument is null.

§Safety

enumeration must be a valid null-terminated UTF-8 string or null, and out_len must be valid for a write or null.