mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
OMG this rocks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@102 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -55,7 +55,7 @@ SWITCH_DECLARE(switch_codec_interface *) loadable_module_get_codec_interface(cha
|
||||
SWITCH_DECLARE(switch_dialplan_interface *) loadable_module_get_dialplan_interface(char *name);
|
||||
SWITCH_DECLARE(switch_timer_interface *) loadable_module_get_timer_interface(char *name);
|
||||
SWITCH_DECLARE(switch_application_interface *) loadable_module_get_application_interface(char *name);
|
||||
SWITCH_DECLARE(switch_application_interface *) loadable_module_get_api_interface(char *name);
|
||||
SWITCH_DECLARE(switch_api_interface *) loadable_module_get_api_interface(char *name);
|
||||
SWITCH_DECLARE(int) loadable_module_get_codecs(switch_memory_pool *pool, switch_codec_interface **array, int arraylen);
|
||||
SWITCH_DECLARE(int) loadable_module_get_codecs_sorted(switch_memory_pool *pool, switch_codec_interface **array, int arraylen, char **prefs, int preflen);
|
||||
SWITCH_DECLARE(void) loadable_module_shutdown(void);
|
||||
|
||||
@@ -254,7 +254,7 @@ struct switch_application_interface {
|
||||
struct switch_api_interface {
|
||||
const char *interface_name;
|
||||
const char *desc;
|
||||
switch_status (*function)(char *in, char *out, size_t outlen);
|
||||
switch_api_function function;
|
||||
const struct switch_api_interface *next;
|
||||
};
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ typedef switch_status (*switch_kill_channel_hook)(switch_core_session *, int);
|
||||
typedef switch_status (*switch_waitfor_read_hook)(switch_core_session *, int);
|
||||
typedef switch_status (*switch_waitfor_write_hook)(switch_core_session *, int);
|
||||
typedef switch_status (*switch_send_dtmf_hook)(switch_core_session *, char *);
|
||||
typedef switch_status (*switch_api_function)(char *in, char *out, size_t outlen);
|
||||
|
||||
/*
|
||||
The pieces of apr we allow ppl to pass around between modules we typedef into our namespace and wrap all the functions
|
||||
@@ -183,6 +184,7 @@ typedef apr_pollfd_t switch_pollfd_t;
|
||||
typedef apr_pollset_t switch_pollset_t;
|
||||
typedef apr_file_t switch_file_t;
|
||||
typedef apr_thread_cond_t switch_thread_cond_t;
|
||||
typedef apr_hash_index_t switch_hash_index_t;
|
||||
|
||||
#define SWITCH_UNSPEC APR_UNSPEC
|
||||
#define SWITCH_POLLIN APR_POLLIN
|
||||
@@ -255,6 +257,9 @@ typedef apr_thread_cond_t switch_thread_cond_t;
|
||||
#define switch_file_close apr_file_close
|
||||
#define switch_file_read apr_file_read
|
||||
#define switch_file_write apr_file_write
|
||||
#define switch_hash_first apr_hash_first
|
||||
#define switch_hash_next apr_hash_next
|
||||
#define switch_hash_this apr_hash_this
|
||||
|
||||
#define SWITCH_FOPEN_READ APR_FOPEN_READ
|
||||
#define SWITCH_FOPEN_WRITE APR_FOPEN_WRITE
|
||||
|
||||
Reference in New Issue
Block a user