switch_file_interface Struct Reference

Abstract interface to a file format module. More...

#include <switch_module_interfaces.h>

Collaboration diagram for switch_file_interface:

[legend]

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_trwlock
int refs
switch_mutex_treflock
switch_loadable_module_interface_tparent
switch_file_interfacenext

Detailed Description

Abstract interface to a file format module.

Definition at line 262 of file switch_module_interfaces.h.


Field Documentation

char** switch_file_interface::extens

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().

switch_status_t(* switch_file_interface::file_close)(switch_file_handle_t *)

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().

struct switch_file_interface* switch_file_interface::next

Definition at line 287 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().

switch_loadable_module_interface_t* switch_file_interface::parent

Definition at line 286 of file switch_module_interfaces.h.

switch_mutex_t* switch_file_interface::reflock

Definition at line 285 of file switch_module_interfaces.h.

int switch_file_interface::refs

Definition at line 284 of file switch_module_interfaces.h.

switch_thread_rwlock_t* switch_file_interface::rwlock

Definition at line 283 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_unprocess().


The documentation for this struct was generated from the following file:
Generated on Wed May 16 04:00:29 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7