panda_parse_bool

Function panda_parse_bool 

Source
pub unsafe extern "C" fn panda_parse_bool(
    args: *mut panda_arg_list,
    argname: *const i8,
) -> bool
Expand description

panda_parse_bool() - Determine if this boolean argument is set for this plugin. @args: The previously parsed panda_arg_list. @argname: The name of the argument in args.

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’.

NB: If the argument is missing, false will be returned.

Return: the boolean setting, true/false.