Function qemu_plugin_bool_parse

Source
pub unsafe extern "C" fn qemu_plugin_bool_parse(
    name: *const i8,
    val: *const i8,
    ret: *mut bool,
) -> bool
Expand description

qemu_plugin_bool_parse() - parses a boolean argument in the form of “=[on|yes|true|off|no|false]”

@name: argument name, the part before the equals sign @val: argument value, what’s after the equals sign @ret: output return value

returns true if the combination @name=@val parses correctly to a boolean argument, and false otherwise