/// Sets an external callback for receiving notices whenever Csound opens a file.
/// The callback is made after the file is successfully opened.
/// The following information is passed to the callback:
/// ## `file_info`
/// A [`FileInfo`](struct.FileInfo.html) struct containing the relevant file info.
Sets an external callback for receiving notices whenever Csound opens a file.
The callback is made after the file is successfully opened.
The following information is passed to the callback.
Sets an external callback for receiving notices whenever Csound opens a file . The callback is made after the file is successfully opened . The following information is passed to the callback .
pub fn file_open_callback<'c, F>(&self, f: F)
    where
        F: FnMut(&FileInfo) + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_file_open_cb(self.engine.csound, f);
        }
    }
pub fn file_open_callback < ' c , F > ( & self , f : F ) where F : FnMut ( & FileInfo ) + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_file_open_cb ( self . engine . csound , f ) ; } }
Sets an external callback for receiving notices whenever Csound opens a file.
Sets an external callback for receiving notices whenever Csound opens a file .
&self
f
F
`file_info`
A [`FileInfo`](struct.FileInfo.html) struct containing the relevant file info.
A [ ` FileInfo ` ] ( struct . FileInfo . html ) struct containing the relevant file info .