pub unsafe extern "C" fn panda_parse_bool_req(
args: *mut panda_arg_list,
argname: *const i8,
help: *const i8,
) -> boolExpand description
panda_parse_bool_req() - Determine if this required boolean argument is set for this plugin. @args: The previously parsed panda_arg_list. @argname: The name of the argument in args. @help: Help text.
Look through the arguments in args, and if any have name argname, compare the associated value with a set of strings that likely mean “true” and another set that likely mean “false” in order to determine the boolean setting for that argument, which is returned. Note: This means to set a boolean argument for a panda plugin you need something like ‘-panda taint2:opt=true’.
As this argument is required, if it is not found, plugin load should fail.
Return: the boolean setting, true/false.