Skip to main content

pamoja_mavlink_schema_builder_new

Function pamoja_mavlink_schema_builder_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mavlink_schema_builder_new( msgid: u32, name: *const c_char, ) -> *mut PamojaMavlinkSchemaBuilder
Expand description

Starts describing a message.

§Arguments

  • msgid - the message id on the wire.
  • name - the message name, which the seed derivation folds in, so it must match the dialect exactly.

§Returns

A builder the caller releases with pamoja_mavlink_schema_builder_free or consumes with pamoja_mavlink_schema_builder_build, or null if name is null or not UTF-8.

§Safety

name must be a null-terminated C string.