fix windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5348 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
95f007586f
commit
01b5817179
|
@ -368,50 +368,48 @@ static switch_codec_implementation_t aal2_g726_40k_implementation = {
|
||||||
/*.destroy */ switch_g726_destroy,
|
/*.destroy */ switch_g726_destroy,
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t g726_16k_codec_interface = {
|
static switch_codec_interface_t g726_16k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 16k",
|
/*.interface_name */ "G.726 16k",
|
||||||
/*.implementations */ &g726_16k_implementation,
|
/*.implementations */ &g726_16k_implementation,
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t g726_24k_codec_interface = {
|
static switch_codec_interface_t g726_24k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 24k",
|
/*.interface_name */ "G.726 24k",
|
||||||
/*.implementations */ &g726_24k_implementation,
|
/*.implementations */ &g726_24k_implementation,
|
||||||
/*.next */ &g726_16k_codec_interface
|
/*.next */ &g726_16k_codec_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t g726_32k_codec_interface = {
|
static switch_codec_interface_t g726_32k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 32k",
|
/*.interface_name */ "G.726 32k",
|
||||||
/*.implementations */ &g726_32k_implementation,
|
/*.implementations */ &g726_32k_implementation,
|
||||||
/*.next */ &g726_24k_codec_interface
|
/*.next */ &g726_24k_codec_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t g726_40k_codec_interface = {
|
static switch_codec_interface_t g726_40k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 40k",
|
/*.interface_name */ "G.726 40k",
|
||||||
/*.implementations */ &g726_40k_implementation,
|
/*.implementations */ &g726_40k_implementation,
|
||||||
/*.next */ &g726_32k_codec_interface
|
/*.next */ &g726_32k_codec_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static switch_codec_interface_t aal2_g726_16k_codec_interface = {
|
||||||
|
|
||||||
const switch_codec_interface_t aal2_g726_16k_codec_interface = {
|
|
||||||
/*.interface_name */ "G.726 16k (aal2)",
|
/*.interface_name */ "G.726 16k (aal2)",
|
||||||
/*.implementations */ &aal2_g726_16k_implementation,
|
/*.implementations */ &aal2_g726_16k_implementation,
|
||||||
/*.next */ &g726_40k_codec_interface
|
/*.next */ &g726_40k_codec_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t aal2_g726_24k_codec_interface = {
|
static switch_codec_interface_t aal2_g726_24k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 24k (aal2)",
|
/*.interface_name */ "G.726 24k (aal2)",
|
||||||
/*.implementations */ &aal2_g726_24k_implementation,
|
/*.implementations */ &aal2_g726_24k_implementation,
|
||||||
/*.next */ &aal2_g726_16k_codec_interface
|
/*.next */ &aal2_g726_16k_codec_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t aal2_g726_32k_codec_interface = {
|
static switch_codec_interface_t aal2_g726_32k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 32k (aal2)",
|
/*.interface_name */ "G.726 32k (aal2)",
|
||||||
/*.implementations */ &aal2_g726_32k_implementation,
|
/*.implementations */ &aal2_g726_32k_implementation,
|
||||||
/*.next */ &aal2_g726_24k_codec_interface
|
/*.next */ &aal2_g726_24k_codec_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
const switch_codec_interface_t aal2_g726_40k_codec_interface = {
|
static switch_codec_interface_t aal2_g726_40k_codec_interface = {
|
||||||
/*.interface_name */ "G.726 40k (aal2)",
|
/*.interface_name */ "G.726 40k (aal2)",
|
||||||
/*.implementations */ &aal2_g726_40k_implementation,
|
/*.implementations */ &aal2_g726_40k_implementation,
|
||||||
/*.next */ &aal2_g726_32k_codec_interface
|
/*.next */ &aal2_g726_32k_codec_interface
|
||||||
|
|
|
@ -108,7 +108,7 @@ static switch_api_interface_t modcdr_reload_interface_api = {
|
||||||
/*.next */ &modcdr_queue_pause_api
|
/*.next */ &modcdr_queue_pause_api
|
||||||
};
|
};
|
||||||
|
|
||||||
static const switch_loadable_module_interface_t cdr_module_interface = {
|
static switch_loadable_module_interface_t cdr_module_interface = {
|
||||||
/*.module_name */ modname,
|
/*.module_name */ modname,
|
||||||
/*.endpoint_interface */ NULL,
|
/*.endpoint_interface */ NULL,
|
||||||
/*.timer_interface */ NULL,
|
/*.timer_interface */ NULL,
|
||||||
|
|
|
@ -1348,7 +1348,7 @@ SWITCH_DECLARE(switch_loadable_module_interface_t *) switch_loadable_module_crea
|
||||||
return mod;
|
return mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ALLOC_INTERFACE(_TYPE_) do { \
|
#define ALLOC_INTERFACE(_TYPE_) for(;;) { \
|
||||||
switch_##_TYPE_##_interface_t *i, *ptr; \
|
switch_##_TYPE_##_interface_t *i, *ptr; \
|
||||||
i = switch_core_alloc(mod->pool, sizeof(switch_##_TYPE_##_interface_t)); \
|
i = switch_core_alloc(mod->pool, sizeof(switch_##_TYPE_##_interface_t)); \
|
||||||
assert(i != NULL); \
|
assert(i != NULL); \
|
||||||
|
@ -1359,7 +1359,7 @@ SWITCH_DECLARE(switch_loadable_module_interface_t *) switch_loadable_module_crea
|
||||||
mod->_TYPE_##_interface = i; \
|
mod->_TYPE_##_interface = i; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
return i; } while(0)
|
return i; }
|
||||||
|
|
||||||
|
|
||||||
SWITCH_DECLARE(void *) switch_loadable_module_create_interface(switch_loadable_module_interface_t *mod, switch_module_interface_name_t iname)
|
SWITCH_DECLARE(void *) switch_loadable_module_create_interface(switch_loadable_module_interface_t *mod, switch_module_interface_name_t iname)
|
||||||
|
|
Loading…
Reference in New Issue