Skip to main content

pamoja_mavlink_dialect_add_schema

Function pamoja_mavlink_dialect_add_schema 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mavlink_dialect_add_schema( dialect: *mut PamojaMavlinkDialect, schema: *const PamojaMavlinkSchema, ) -> PamojaStatus
Expand description

Adds a schema’s message to a dialect table, so frames carrying it check.

§Arguments

  • dialect - the table to extend.
  • schema - the shape whose id and seed to add.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument if either pointer is null.

§Safety

dialect must be a live dialect handle and schema a live schema handle.