#include <switch_module_interfaces.h>
Collaboration diagram for switch_file_interface:
Data Fields | |
| const char * | interface_name |
| switch_status_t(* | file_open )(switch_file_handle_t *, const char *file_path) |
| switch_status_t(* | file_close )(switch_file_handle_t *) |
| switch_status_t(* | file_truncate )(switch_file_handle_t *, int64_t offset) |
| switch_status_t(* | file_read )(switch_file_handle_t *, void *data, switch_size_t *len) |
| switch_status_t(* | file_write )(switch_file_handle_t *, void *data, switch_size_t *len) |
| switch_status_t(* | file_seek )(switch_file_handle_t *, unsigned int *cur_pos, int64_t samples, int whence) |
| switch_status_t(* | file_set_string )(switch_file_handle_t *fh, switch_audio_col_t col, const char *string) |
| switch_status_t(* | file_get_string )(switch_file_handle_t *fh, switch_audio_col_t col, const char **string) |
| char ** | extens |
| switch_thread_rwlock_t * | rwlock |
| int | refs |
| switch_mutex_t * | reflock |
| switch_loadable_module_interface_t * | parent |
| switch_file_interface * | next |
Definition at line 262 of file switch_module_interfaces.h.
list of supported file extensions
Definition at line 282 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
function to close the file
| switch_status_t(* switch_file_interface::file_get_string)(switch_file_handle_t *fh, switch_audio_col_t col, const char **string) |
function to get meta data
| switch_status_t(* switch_file_interface::file_open)(switch_file_handle_t *, const char *file_path) |
function to open the file
| switch_status_t(* switch_file_interface::file_read)(switch_file_handle_t *, void *data, switch_size_t *len) |
function to read from the file
| switch_status_t(* switch_file_interface::file_seek)(switch_file_handle_t *, unsigned int *cur_pos, int64_t samples, int whence) |
function to seek to a certian position in the file
| switch_status_t(* switch_file_interface::file_set_string)(switch_file_handle_t *fh, switch_audio_col_t col, const char *string) |
function to set meta data
| switch_status_t(* switch_file_interface::file_truncate)(switch_file_handle_t *, int64_t offset) |
function to close the file
| switch_status_t(* switch_file_interface::file_write)(switch_file_handle_t *, void *data, switch_size_t *len) |
function to write from the file
| const char* switch_file_interface::interface_name |
the name of the interface
Definition at line 264 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
Definition at line 287 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
Definition at line 286 of file switch_module_interfaces.h.
Definition at line 285 of file switch_module_interfaces.h.
Definition at line 284 of file switch_module_interfaces.h.
Definition at line 283 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_unprocess().
1.4.7