move some modules to use the new module interface macros.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5343 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-06-13 17:06:10 +00:00
1 parent 50fe6fbac8
commit b67f9c5b2a
34 files changed
+161 -113

No files matched your search

@@ -31,7 +31,8 @@
*/
#include <switch.h>
static const char modname[] = "mod_native_file";
SWITCH_MODULE_LOAD_FUNCTION(mod_native_file_load);
SWITCH_MODULE_DEFINITION(mod_native_file, mod_native_file_load, NULL, NULL);
struct native_file_context {
switch_file_t *fd;
@@ -163,7 +164,7 @@ static switch_loadable_module_interface_t native_file_module_interface = {
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
SWITCH_MODULE_LOAD_FUNCTION(mod_native_file_load)
{
const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
+3 -2
View File
@@ -32,7 +32,8 @@
#include <switch.h>
#include <sndfile.h>
static const char modname[] = "mod_sndfile";
SWITCH_MODULE_LOAD_FUNCTION(mod_sndfile_load);
SWITCH_MODULE_DEFINITION(mod_sndfile, mod_sndfile_load, NULL, NULL);
static switch_memory_pool_t *module_pool = NULL;
@@ -361,7 +362,7 @@ static switch_status_t setup_formats(void)
return SWITCH_STATUS_SUCCESS;
}
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
SWITCH_MODULE_LOAD_FUNCTION(mod_sndfile_load)
{
if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {