Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

switch_loadable_module.c File Reference


Data Structures

struct  switch_loadable_module
struct  switch_loadable_module_container

Defines

#define ALLOC_INTERFACE(_TYPE_)

Functions

switch_status_t switch_loadable_module_load_module (char *dir, char *fname, switch_bool_t runtime, const char **err)
 Load a module.
switch_status_t switch_loadable_module_unload_module (char *dir, char *fname, const char **err)
 Unoad a module.
switch_status_t switch_loadable_module_build_dynamic (char *filename, switch_module_load_t switch_module_load, switch_module_runtime_t switch_module_runtime, switch_module_shutdown_t switch_module_shutdown, switch_bool_t runtime)
 build a dynamic module object and register it (for use in double embeded modules)
switch_status_t switch_loadable_module_init ()
 Initilize the module backend and load all the modules.
void switch_loadable_module_shutdown (void)
 Shutdown the module backend and call the shutdown routine in all loaded modules.
switch_endpoint_interface_tswitch_loadable_module_get_endpoint_interface (const char *name)
 Retrieve the endpoint interface by it's registered name.
switch_codec_interface_tswitch_loadable_module_get_codec_interface (const char *name)
 Retrieve the codec interface by it's registered name.
switch_dialplan_interface_tswitch_loadable_module_get_dialplan_interface (const char *name)
 Retrieve the dialplan interface by it's registered name.
switch_timer_interface_tswitch_loadable_module_get_timer_interface (const char *name)
 Retrieve the timer interface by it's registered name.
switch_application_interface_tswitch_loadable_module_get_application_interface (const char *name)
 Retrieve the application interface by it's registered name.
switch_api_interface_tswitch_loadable_module_get_api_interface (const char *name)
 Retrieve the API interface by it's registered name.
switch_file_interface_tswitch_loadable_module_get_file_interface (const char *name)
 Retrieve the file format interface by it's registered name.
switch_speech_interface_tswitch_loadable_module_get_speech_interface (const char *name)
 Retrieve the speech interface by it's registered name.
switch_asr_interface_tswitch_loadable_module_get_asr_interface (const char *name)
 Retrieve the asr interface by it's registered name.
switch_directory_interface_tswitch_loadable_module_get_directory_interface (const char *name)
 Retrieve the directory interface by it's registered name.
switch_chat_interface_tswitch_loadable_module_get_chat_interface (const char *name)
 Retrieve the chat interface by it's registered name.
switch_say_interface_tswitch_loadable_module_get_say_interface (const char *name)
 Retrieve the say interface by it's registered name.
switch_management_interface_tswitch_loadable_module_get_management_interface (const char *relative_oid)
 Retrieve the management interface by it's registered name.
int switch_loadable_module_get_codecs (const switch_codec_implementation_t **array, int arraylen)
 Retrieve the list of loaded codecs into an array.
int switch_loadable_module_get_codecs_sorted (const switch_codec_implementation_t **array, int arraylen, char **prefs, int preflen)
 Retrieve the list of loaded codecs into an array based on another array showing the sorted order.
switch_status_t switch_api_execute (const char *cmd, const char *arg, switch_core_session_t *session, switch_stream_handle_t *stream)
 Execute a registered API command.
switch_loadable_module_interface_tswitch_loadable_module_create_module_interface (switch_memory_pool_t *pool, const char *name)
void * switch_loadable_module_create_interface (switch_loadable_module_interface_t *mod, switch_module_interface_name_t iname)


Define Documentation

#define ALLOC_INTERFACE _TYPE_   ) 
 

Value:

{                                                                       \
                switch_##_TYPE_##_interface_t *i, *ptr;                                                 \
                i = switch_core_alloc(mod->pool, sizeof(switch_##_TYPE_##_interface_t)); \
                switch_assert(i != NULL);                                                                                               \
                for (ptr = mod->_TYPE_##_interface; ptr && ptr->next; ptr = ptr->next); \
                if (ptr) {                                                                                                              \
                        ptr->next = i;                                                                                          \
                } else {                                                                                                                \
                        mod->_TYPE_##_interface = i;                                                            \
                }                                                                                                                               \
                                                                                                                                                \
                return i; }


Generated on Mon May 26 22:06:52 2008 for FreeSWITCH by  doxygen 1.3.9.1