fn function_is_whitelisted(fname: &str) -> bool {
    match fname {  //  If match found, then it's whitelisted.
        //  kernel/os
        "os_eventq_dflt_get"        => { true }
        "os_eventq_run"             => { true }
        "os_task_init"              => { true }

        //  hw/sensor
        "sensor_mgr_find_next_bydevname"    => { true }
        "sensor_read"                       => { true }
        "sensor_set_poll_rate_ms"           => { true }

        //  libs/sensor_network
        "do_server_post"                    => { true }
        "get_device_id"                     => { true }
        "init_server_post"                  => { true }
        "sensor_network_prepare_post"       => { true }
        "start_server_transport"            => { true }

        _ => { false }  //  Else not whitelisted.
    }
}
/// Given a function name like `os_task_init`, return true if we should create the wrapper
Given a function name like `os_task_init`, return true if we should create the wrapper
Given a function name like ` os_task_init ` return true if we should create the wrapper
fn function_is_whitelisted(fname: &str) -> bool {
    match fname {  //  If match found, then it's whitelisted.
        //  kernel/os
        "os_eventq_dflt_get"        => { true }
        "os_eventq_run"             => { true }
        "os_task_init"              => { true }
        //  hw/sensor
        "sensor_mgr_find_next_bydevname"    => { true }
        "sensor_read"                       => { true }
        "sensor_set_poll_rate_ms"           => { true }
        //  libs/sensor_network
        "do_server_post"                    => { true }
        "get_device_id"                     => { true }
        "init_server_post"                  => { true }
        "sensor_network_prepare_post"       => { true }
        "start_server_transport"            => { true }
        _ => { false }  //  Else not whitelisted.
    }
}
fn function_is_whitelisted ( fname : & str ) -> bool { match fname { //  If match found, then it's whitelisted. //  kernel/os " " => { true } " " => { true } " " => { true } //  hw/sensor " " => { true } " " => { true } " " => { true } //  libs/sensor_network " " => { true } " " => { true } " " => { true } " " => { true } " " => { true } _ => { false } //  Else not whitelisted. } }
Given a function name like `os_task_init`, return true if we should create the wrapper
Given a function name like ` os_task_init ` return true if we should create the wrapper
fname
&str
fname
&str