mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-21 11:41:51 +00:00
let codecs and timers be init with an existing pool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@209 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -135,6 +135,7 @@ struct switch_endpoint_interface {
|
||||
|
||||
struct switch_timer {
|
||||
int interval;
|
||||
unsigned int flags;
|
||||
unsigned int samples;
|
||||
unsigned int samplecount;
|
||||
struct switch_timer_interface *timer_interface;
|
||||
@@ -158,16 +159,20 @@ struct switch_dialplan_interface {
|
||||
|
||||
struct switch_file_interface {
|
||||
const char *interface_name;
|
||||
switch_status (*file_open)(switch_file_handle *);
|
||||
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);
|
||||
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 sample_count;
|
||||
switch_codec_flag flags;
|
||||
switch_memory_pool *memory_pool;
|
||||
void *private;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user