#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_parser_next(
parser: *mut PamojaMavlinkParser,
out_frame: *mut *mut PamojaMavlinkFrame,
) -> PamojaStatusExpand description
Takes the next completed frame out of the parser.
§Arguments
parser- the parser to drain.out_frame- set to the frame handle, or to null when none is waiting.
§Returns
PamojaStatus::Ok whether or not a frame was waiting; a null out_frame
means the parser needs more bytes.
§Errors
Returns PamojaStatus::InvalidArgument if either pointer is null.
§Safety
parser must be a live parser handle and out_frame must point at writable
storage for one pointer.