mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
let codecs and timers use existing pool and add new file i/o backend
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@212 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -159,19 +159,25 @@ struct switch_dialplan_interface {
|
||||
|
||||
struct switch_file_interface {
|
||||
const char *interface_name;
|
||||
switch_status (*file_open)(switch_file_handle *);
|
||||
switch_status (*file_open)(switch_file_handle *, char *file_path);
|
||||
switch_status (*file_close)(switch_file_handle *);
|
||||
switch_status (*file_read)(switch_file_handle *, void *data, size_t len);
|
||||
switch_status (*file_write)(switch_file_handle *, void *data, size_t len);
|
||||
switch_status (*file_seek)(switch_file_handle *, unsigned int samples, int whence);
|
||||
switch_status (*file_read)(switch_file_handle *, void *data, size_t *len);
|
||||
switch_status (*file_write)(switch_file_handle *, void *data, size_t *len);
|
||||
switch_status (*file_seek)(switch_file_handle *, unsigned int *cur_pos, unsigned int samples, int whence);
|
||||
char **extens;
|
||||
const struct switch_file_interface *next;
|
||||
const char *extens[];
|
||||
};
|
||||
|
||||
struct switch_file_handle {
|
||||
const struct switch_file_interface *file_interface;
|
||||
unsigned int flags;
|
||||
switch_file_t *fd;
|
||||
unsigned int samples;
|
||||
unsigned int samplerate;
|
||||
unsigned int channels;
|
||||
unsigned int format;
|
||||
unsigned int sections;
|
||||
int seekable;
|
||||
unsigned int sample_count;
|
||||
switch_memory_pool *memory_pool;
|
||||
void *private;
|
||||
|
||||
Reference in New Issue
Block a user