fn add_file_callback_entry(
        &mut self,
        filename: &str,
        data: Vec<u8>,
        select_cb: Option<FwCfgCallbackType>,
        write_cb: Option<FwCfgWriteCallbackType>,
        allow_write: bool,
    ) -> Result<()> {
        self.fw_cfg_common()
            .add_file_callback(filename, data, select_cb, write_cb, allow_write)
    }
/// Add a file entry to FwCfg device, with select callback function and
/// write callback function.
///
/// # Arguments
///
/// * `filename`    - Name of the file
/// * `data`        - Raw data bytes of the file to be added
/// * `select_cb`   - Select callback
/// * `write_cb`    - Write callback
/// * `allow_write` - Does the file allow write
Add a file entry to FwCfg device, with select callback function and
write callback function.
Add a file entry to FwCfg device with select callback function and write callback function .
fn add_file_callback_entry(
        &mut self,
        filename: &str,
        data: Vec<u8>,
        select_cb: Option<FwCfgCallbackType>,
        write_cb: Option<FwCfgWriteCallbackType>,
        allow_write: bool,
    ) -> Result<()> {
        self.fw_cfg_common()
            .add_file_callback(filename, data, select_cb, write_cb, allow_write)
    }
fn add_file_callback_entry ( & mut self , filename : & str , data : Vec < u8 > , select_cb : Option < FwCfgCallbackType > , write_cb : Option < FwCfgWriteCallbackType > , allow_write : bool , ) -> Result < ( ) > { self . fw_cfg_common ( ) . add_file_callback ( filename , data , select_cb , write_cb , allow_write ) }
Add a file entry to FwCfg device, with select callback function and
write callback function.
Add a file entry to FwCfg device with select callback function and write callback function .
&mut self
filename
&str
data
Vec<u8>
select_cb
Option<FwCfgCallbackType>
write_cb
Option<FwCfgWriteCallbackType>
allow_write
bool
&mut self
filename
&str
data
Vec<u8>
select_cb
Option<FwCfgCallbackType>
write_cb
Option<FwCfgWriteCallbackType>
allow_write
bool