pub type switch_file_interface_t = switch_file_interface;Expand description
\brief Abstract interface to a file format module
Aliased Type§
#[repr(C)]pub struct switch_file_interface_t {Show 19 fields
pub interface_name: *const i8,
pub file_open: Option<unsafe extern "C" fn(*mut switch_file_handle, *const i8) -> switch_status_t>,
pub file_close: Option<unsafe extern "C" fn(*mut switch_file_handle) -> switch_status_t>,
pub file_truncate: Option<unsafe extern "C" fn(*mut switch_file_handle, i64) -> switch_status_t>,
pub file_read: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut c_void, *mut usize) -> switch_status_t>,
pub file_write: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut c_void, *mut usize) -> switch_status_t>,
pub file_read_video: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut switch_frame, u32) -> switch_status_t>,
pub file_write_video: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut switch_frame) -> switch_status_t>,
pub file_seek: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut u32, i64, i32) -> switch_status_t>,
pub file_set_string: Option<unsafe extern "C" fn(*mut switch_file_handle, u32, *const i8) -> switch_status_t>,
pub file_get_string: Option<unsafe extern "C" fn(*mut switch_file_handle, u32, *mut *const i8) -> switch_status_t>,
pub file_pre_close: Option<unsafe extern "C" fn(*mut switch_file_handle) -> switch_status_t>,
pub file_command: Option<unsafe extern "C" fn(*mut switch_file_handle, u32) -> switch_status_t>,
pub extens: *mut *mut i8,
pub rwlock: *mut fspr_thread_rwlock_t,
pub refs: i32,
pub reflock: *mut fspr_thread_mutex_t,
pub parent: *mut switch_loadable_module_interface,
pub next: *mut switch_file_interface,
}Fields§
§interface_name: *const i8the name of the interface
file_open: Option<unsafe extern "C" fn(*mut switch_file_handle, *const i8) -> switch_status_t>function to open the file
file_close: Option<unsafe extern "C" fn(*mut switch_file_handle) -> switch_status_t>function to close the file
file_truncate: Option<unsafe extern "C" fn(*mut switch_file_handle, i64) -> switch_status_t>function to close the file
file_read: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut c_void, *mut usize) -> switch_status_t>function to read from the file
file_write: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut c_void, *mut usize) -> switch_status_t>function to write from the file
file_read_video: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut switch_frame, u32) -> switch_status_t>function to seek to a certian position in the file
file_write_video: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut switch_frame) -> switch_status_t>function to write from the file
file_seek: Option<unsafe extern "C" fn(*mut switch_file_handle, *mut u32, i64, i32) -> switch_status_t>function to seek to a certian position in the file
file_set_string: Option<unsafe extern "C" fn(*mut switch_file_handle, u32, *const i8) -> switch_status_t>function to set meta data
file_get_string: Option<unsafe extern "C" fn(*mut switch_file_handle, u32, *mut *const i8) -> switch_status_t>function to get meta data
file_pre_close: Option<unsafe extern "C" fn(*mut switch_file_handle) -> switch_status_t>function to pre close the file to read params
file_command: Option<unsafe extern "C" fn(*mut switch_file_handle, u32) -> switch_status_t>function to control the underlying tech of the file
extens: *mut *mut i8list of supported file extensions
rwlock: *mut fspr_thread_rwlock_t§refs: i32§reflock: *mut fspr_thread_mutex_t§parent: *mut switch_loadable_module_interface§next: *mut switch_file_interface