#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_schema_builder_extension(
builder: *mut PamojaMavlinkSchemaBuilder,
name: *const c_char,
field_type: u32,
array_len: u8,
) -> PamojaStatusExpand description
Adds a MAVLink 2 extension field, in the order the definition declares it.
Extensions keep their declared order, stay out of the CRC_EXTRA seed, and read as zero
from a frame sent by a peer that predates them.
§Arguments
builder- the description to extend.name- the field name.field_type- the field’s type, one of thePAMOJA_MAVLINK_FIELD_*codes.array_len- the element count for an array, or0for a scalar.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if a pointer is null, name is not UTF-8, or
field_type is not a MAVLink field type.
§Safety
builder must be a live builder handle and name a null-terminated C string.