new headers pay off and reveal naughty modules with the wrong function prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@611 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bc241ba425
commit
1ca8985b71
|
@ -42,7 +42,7 @@ static switch_loadable_module_interface skel_module_interface = {
|
||||||
/*.application_interface */ NULL
|
/*.application_interface */ NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
switch_status switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
switch_status switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
{
|
{
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
*interface = &skel_module_interface;
|
*interface = &skel_module_interface;
|
||||||
|
|
|
@ -334,7 +334,7 @@ static switch_loadable_module_interface speex_module_interface = {
|
||||||
/*.application_interface */ NULL
|
/*.application_interface */ NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
SWITCH_MOD_DECLARE(switch_status) switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
SWITCH_MOD_DECLARE(switch_status) switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
{
|
{
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
*interface = &speex_module_interface;
|
*interface = &speex_module_interface;
|
||||||
|
|
|
@ -220,7 +220,7 @@ static switch_loadable_module_interface skel_module_interface = {
|
||||||
/*.directory_interface */ &ldap_directory_interface
|
/*.directory_interface */ &ldap_directory_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
switch_status switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
switch_status switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
{
|
{
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
*interface = &skel_module_interface;
|
*interface = &skel_module_interface;
|
||||||
|
|
|
@ -104,7 +104,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
SWITCH_MOD_DECLARE(switch_status) switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
SWITCH_MOD_DECLARE(switch_status) switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
{
|
{
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
*interface = &event_test_module_interface;
|
*interface = &event_test_module_interface;
|
||||||
|
|
|
@ -355,7 +355,7 @@ static switch_loadable_module_interface xmpp_event_module_interface = {
|
||||||
/*.application_interface */ NULL
|
/*.application_interface */ NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
SWITCH_MOD_DECLARE(switch_status) switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
SWITCH_MOD_DECLARE(switch_status) switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
{
|
{
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
*interface = &xmpp_event_module_interface;
|
*interface = &xmpp_event_module_interface;
|
||||||
|
|
|
@ -264,8 +264,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWITCH_MOD_DECLARE(switch_status) switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
SWITCH_MOD_DECLARE(switch_status) switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
memset(&globals, 0, sizeof(globals));
|
memset(&globals, 0, sizeof(globals));
|
||||||
|
|
|
@ -303,7 +303,7 @@ static switch_status setup_formats(void)
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_MOD_DECLARE(switch_status) switch_module_load(switch_loadable_module_interface **interface, char *filename)
|
SWITCH_MOD_DECLARE(switch_status) switch_module_load(const switch_loadable_module_interface **interface, char *filename)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue