]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
C++ says we can't use "interface" as a variable name.
authorMichael Jerris <mike@jerris.com>
Sun, 30 Apr 2006 18:24:24 +0000 (18:24 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 30 Apr 2006 18:24:24 +0000 (18:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1305 d0543943-73ff-0310-b7d9-9358b9ac24b2

32 files changed:
src/include/switch_loadable_module.h
src/mod/applications/mod_bridgecall/mod_bridgecall.c
src/mod/applications/mod_commands/mod_commands.c
src/mod/applications/mod_echo/mod_echo.c
src/mod/applications/mod_ivrtest/mod_ivrtest.c
src/mod/applications/mod_playback/mod_playback.c
src/mod/asr_tts/mod_cepstral/mod_cepstral.c
src/mod/codecs/mod_g711/mod_g711.c
src/mod/codecs/mod_g729/mod_g729.c
src/mod/codecs/mod_gsm/mod_gsm.c
src/mod/codecs/mod_ilbc/mod_ilbc.c
src/mod/codecs/mod_l16/mod_l16.c
src/mod/codecs/mod_speex/mod_speex.c
src/mod/dialplans/mod_dialplan_demo/mod_dialplan_demo.c
src/mod/dialplans/mod_dialplan_directory/mod_dialplan_directory.c
src/mod/dialplans/mod_pcre/mod_pcre.c
src/mod/directories/mod_ldap/mod_ldap.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c
src/mod/endpoints/mod_exosip/mod_exosip.c
src/mod/endpoints/mod_iax/mod_iax.c
src/mod/endpoints/mod_portaudio/mod_portaudio.c
src/mod/endpoints/mod_woomera/mod_woomera.c
src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
src/mod/event_handlers/mod_event_test/mod_event_test.c
src/mod/event_handlers/mod_xmpp_event/mod_xmpp_event.c
src/mod/event_handlers/mod_zeroconf/mod_zeroconf.c
src/mod/formats/mod_sndfile/mod_sndfile.c
src/mod/languages/mod_perl/mod_perl.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
src/mod/loggers/mod_console/mod_console.c
src/mod/timers/mod_softtimer/mod_softtimer.c
src/switch_loadable_module.c

index 70141cdab37201918cf73b6d95ae22eb5a9069d2..8e5c8ca65a808e1eec8546f47dd56e2d05916385 100644 (file)
@@ -216,7 +216,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, ch
   \param filename the path to the module's dll or so file
   \return SWITCH_STATUS_SUCCESS on a successful load
 */
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename);
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename);
 SWITCH_MOD_DECLARE(switch_status_t) switch_module_reload(void);
 SWITCH_MOD_DECLARE(switch_status_t) switch_module_pause(void);
 SWITCH_MOD_DECLARE(switch_status_t) switch_module_resume(void);
index c81d8d61d24042ee896848ea075ed07f66723c8d..65ea85ede4413d89115c2af541d597a2da77e6fc 100644 (file)
@@ -95,11 +95,11 @@ static const switch_loadable_module_interface_t mod_bridgecall_module_interface
        /*.application_interface */ &bridge_application_interface
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &mod_bridgecall_module_interface;
+       *module_interface = &mod_bridgecall_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 10b480bcae0fc7ad4118fad948988d99bafe5730..e93f2768abed3020bf815a64209949e497349b9c 100644 (file)
@@ -171,11 +171,11 @@ static const switch_loadable_module_interface_t mod_commands_module_interface =
 };
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &mod_commands_module_interface;
+       *module_interface = &mod_commands_module_interface;
 
 
        /* indicate that the module should continue to be loaded */
index ceb918a25d59313fd69d1fab3478c7432d018ee0..dc40bd7e867c603c0a22fa35ff8f428209922b8f 100644 (file)
@@ -64,10 +64,10 @@ static switch_loadable_module_interface_t echo_module_interface = {
        /*.directory_interface */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &echo_module_interface;
+       *module_interface = &echo_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 8f9399290b85388b7736552fdb980ffda747bc71..67b05f596fb4a0497fc0b0a275154c0f10ff8991 100644 (file)
@@ -241,11 +241,11 @@ static const switch_loadable_module_interface_t mod_ivrtest_module_interface = {
        /*.application_interface */ &ivrtest_application_interface
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &mod_ivrtest_module_interface;
+       *module_interface = &mod_ivrtest_module_interface;
 
        /* test global state handlers */
        switch_core_add_state_handler(&state_handlers);
index 7d47d47f168f756b2560b8b8c4fc9cdfde942dd7..a7b10376a3f06c89301cce72212b1a78588a47ff 100644 (file)
@@ -106,11 +106,11 @@ static const switch_loadable_module_interface_t mod_playback_module_interface =
        /*.application_interface */ &playback_application_interface
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &mod_playback_module_interface;
+       *module_interface = &mod_playback_module_interface;
 
 
        /* indicate that the module should continue to be loaded */
index f8794e40915d51fd4de65f6e6204414232872f13..0318df4a58c460839f2d3d77d572a0ac408c1681 100644 (file)
@@ -269,7 +269,7 @@ static const switch_loadable_module_interface_t cepstral_module_interface = {
        /*.directory_interface */ NULL
 };
 
-switch_status_t switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+switch_status_t switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* Open the Swift TTS Engine */
@@ -279,7 +279,7 @@ switch_status_t switch_module_load(const switch_loadable_module_interface_t **in
        }
        
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &cepstral_module_interface;
+       *module_interface = &cepstral_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index bf323b6384fbd89f3eb97d3e9a742bdf285a8f2d..c3fe511693b1d853810b0482d05700ffc97d5d3e 100644 (file)
@@ -302,10 +302,10 @@ static switch_loadable_module_interface_t g711_module_interface = {
 };
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &g711_module_interface;
+       *module_interface = &g711_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 61cc3a71bc6b6283495443b43c05b0fd6010edb3..9f6f72861ee87ec9802cf459229559ddf914a4ab 100644 (file)
@@ -272,12 +272,12 @@ static switch_loadable_module_interface_t g729_module_interface = {
 
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface,
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface,
                                                                                                         char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */ 
-       *interface = &g729_module_interface;
+       *module_interface = &g729_module_interface;
 
 
        /* indicate that the module should continue to be loaded */ 
index 48a4c6d93ecc38248f385b6b266b85ce119f6472..b8bfb7e46d2b0216ccc093022ea62aa7f7d21696 100644 (file)
@@ -162,12 +162,12 @@ static switch_loadable_module_interface_t gsm_module_interface = {
                /*.codec_interface */ &gsm_codec_interface, 
                /*.application_interface */ NULL 
 };
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface,
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface,
                                                                                                                char *filename)
 {
        
                /* connect my internal structure to the blank pointer passed to me */ 
-               *interface = &gsm_module_interface;
+               *module_interface = &gsm_module_interface;
        
                /* indicate that the module should continue to be loaded */ 
                return SWITCH_STATUS_SUCCESS;
index 6c17a51fa4f1abd69ea8efa8a5d9d99c4bc28608..282eaae74c87dd4f2c494b9b84f6e029d4636cad 100644 (file)
@@ -274,12 +274,12 @@ static switch_loadable_module_interface_t ilbc_module_interface = {
 
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface,
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface,
                                                                                                                char *filename)
 {
        
                /* connect my internal structure to the blank pointer passed to me */ 
-               *interface = &ilbc_module_interface;
+               *module_interface = &ilbc_module_interface;
        
 
                /* indicate that the module should continue to be loaded */ 
index 9f584899fef4d0e64df7578247668789922c7dfa..ae61ac19f7399760c534109f2486e5e6c32944ae 100644 (file)
@@ -196,10 +196,10 @@ static switch_loadable_module_interface_t raw_module_interface = {
 };
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &raw_module_interface;
+       *module_interface = &raw_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index cbeded78d674994a9b1f8994124e83f3a73dac85..92edd889abafaaf9a3bf7e859032d20b181a055f 100644 (file)
@@ -334,10 +334,10 @@ static switch_loadable_module_interface_t speex_module_interface = {
        /*.application_interface */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &speex_module_interface;
+       *module_interface = &speex_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index ad19834510181e0863e3be08d6cf5e027938db1a..0a5f4ebce7ffa584634e1d0dcde7798b9b87a15e 100644 (file)
@@ -117,11 +117,11 @@ static const switch_loadable_module_interface_t demo_dialplan_module_interface =
        /*.application_interface = */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &demo_dialplan_module_interface;
+       *module_interface = &demo_dialplan_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index f6ae62956a5819121dc52a7fa45e4d746133cfa1..c5453d63efe6add16826e3c169b75175429be097 100644 (file)
@@ -168,12 +168,12 @@ static const switch_loadable_module_interface_t directory_dialplan_module_interf
        /*.application_interface = */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        load_config();
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &directory_dialplan_module_interface;
+       *module_interface = &directory_dialplan_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index ddff119424663649808dfdbe1f5dc7fb78b92916..a2b349469abcdbaab626a8aa7d714d3b6a1e7c1b 100644 (file)
@@ -213,11 +213,11 @@ static const switch_loadable_module_interface_t dialplan_module_interface = {
        /*.application_interface = */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &dialplan_module_interface;
+       *module_interface = &dialplan_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 535136bc047d15e3c130b5ba44e29b568472d9ba..3b6171dcd11c5ed8b5f4b950c1a01edc6a64f2d6 100644 (file)
@@ -220,10 +220,10 @@ static switch_loadable_module_interface_t skel_module_interface = {
        /*.directory_interface */ &ldap_directory_interface
 };
 
-switch_status_t switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+switch_status_t switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &skel_module_interface;
+       *module_interface = &skel_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index b9b130c2efd5436f68ac40ebb8a512c3407524a6..056a813d15eb4ad1f1847d5dcd7015f7df4168d2 100644 (file)
@@ -1105,7 +1105,7 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
 
 }
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {
@@ -1116,7 +1116,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
        load_config();
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &channel_module_interface;
+       *module_interface = &channel_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 07dd8458cf8d169646cc3b6de0c5d084fc26160c..8d4690546409162e2c497512b507ac002ccfebbe 100644 (file)
@@ -1071,7 +1071,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
        return SWITCH_STATUS_SUCCESS;
 }
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* NOTE:  **interface is **_interface because the common lib redefines interface to struct in some situations */
 
@@ -1085,7 +1085,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
        switch_core_hash_init(&globals.srtp_hash, module_pool);
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &exosip_module_interface;
+       *module_interface = &exosip_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index d8a169f56243bc09499db8f47f0d4d1832caa09a..c3c78233e571b4566a8bf35c9e2a8d27cc179cec 100644 (file)
@@ -790,7 +790,7 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
 
 }
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {
@@ -799,7 +799,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
        }
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &channel_module_interface;
+       *module_interface = &channel_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 601856a5ea7dd6d830763dc8c46d7663bbd50c13..0f52dedf319410fe285c5525e388abdc2faefe77 100644 (file)
@@ -523,7 +523,7 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
 }
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {
@@ -545,7 +545,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
        }
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &channel_module_interface;
+       *module_interface = &channel_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 2809d322015fcbc4a5a7e3928e662120a2ca69e3..974b3fd4b5884b855f4d8a67a4ac7bf96eaea114 100644 (file)
@@ -1298,7 +1298,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
        return SWITCH_STATUS_SUCCESS;
 }
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        switch_config_t cfg;
@@ -1373,7 +1373,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &woomerachan_module_interface;
+       *module_interface = &woomerachan_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 8169aabdc3f67e52ae84d87a1ca0f78ad99f929f..9f8abdd22d798954fae3108c63e44389824fa9d6 100644 (file)
@@ -115,7 +115,7 @@ static switch_loadable_module_interface_t event_test_module_interface = {
 };
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        memset(&globals, 0, sizeof(globals));
        
@@ -159,7 +159,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &event_test_module_interface;
+       *module_interface = &event_test_module_interface;
 
        if (switch_event_bind((char *) modname, SWITCH_EVENT_ALL, SWITCH_EVENT_SUBCLASS_ANY, event_handler, NULL) !=
                SWITCH_STATUS_SUCCESS) {
index 42e9514e4b3ab96f2b03f36b7ac7566bbcdbc06f..e829c0d42ddb0a06b1176b33118008c45de2112a 100644 (file)
@@ -105,10 +105,10 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
 #endif
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &event_test_module_interface;
+       *module_interface = &event_test_module_interface;
 
        if (switch_event_reserve_subclass(MY_EVENT_COOL) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't register subclass!");
index a3a69257b35d3ac395e8868db82123a01754e806..84098ffb583b0816cd3c2a5d19e62541d6dd3bde 100644 (file)
@@ -355,10 +355,10 @@ static switch_loadable_module_interface_t xmpp_event_module_interface = {
        /*.application_interface */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &xmpp_event_module_interface;
+       *module_interface = &xmpp_event_module_interface;
 
        if (load_config() != SWITCH_STATUS_SUCCESS) {
                return SWITCH_STATUS_FALSE;
index caac40e005f2080a9673c3afa0ed9217bd72d80f..43120151f4026b7f3cfc2435720d720e6afa44c4 100644 (file)
@@ -264,7 +264,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
 }
 
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        memset(&globals, 0, sizeof(globals));
@@ -296,7 +296,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
        }
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &zeroconf_module_interface;
+       *module_interface = &zeroconf_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 8d74697a99f657ac2f1e23c94287723b844ea781..9096cbd60a9de061ad76dd2f3800fa39e54d4c61 100644 (file)
@@ -309,7 +309,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 **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
 
@@ -319,7 +319,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 
        /* connect my internal structure to the blank pointer passed to me */
        sndfile_file_interface.extens = supported_formats;
-       *interface = &sndfile_module_interface;
+       *module_interface = &sndfile_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 36f8ba321cf1dda68f2aecb5f6c97a9a82747fe8..7754d35b49c96609ad9408403ecb9b9113089c1c 100644 (file)
@@ -110,7 +110,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
        return SWITCH_STATUS_SUCCESS;
 }
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        PerlInterpreter *my_perl;
@@ -133,7 +133,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &perl_module_interface;
+       *module_interface = &perl_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index a4fcd2f5dee561894f9836d550d92664981ba7fa..5f2def4c217ece2bb9e4050213a74682d9c9d195 100644 (file)
@@ -2190,7 +2190,7 @@ static switch_loadable_module_interface_t spidermonkey_module_interface = {
        /*.directory_interface */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        switch_status_t status;
 
@@ -2199,7 +2199,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
        }
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &spidermonkey_module_interface;
+       *module_interface = &spidermonkey_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 22de4e88eb0161f3002f116408569bd408780f25..7b14e4a5a122eb29157106d1436efb3d79d0f1de 100644 (file)
@@ -134,7 +134,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
        return SWITCH_STATUS_SUCCESS;
 }
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
        if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "OH OH no pool\n");
@@ -143,7 +143,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &console_module_interface;
+       *module_interface = &console_module_interface;
 
        /* setup my logger function */
        switch_log_bind_logger(switch_console_logger, SWITCH_LOG_DEBUG);
index 1923389fe7416dd47e6a8acfb84ef26b3359ed79..3a30e5713eb32e002582abf6ba147ed98d0a900d 100644 (file)
@@ -113,11 +113,11 @@ static const switch_loadable_module_interface_t mod_timers_module_interface = {
        /*.switch_application_interface */ NULL
 };
 
-SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
+SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
 {
 
        /* connect my internal structure to the blank pointer passed to me */
-       *interface = &mod_timers_module_interface;
+       *module_interface = &mod_timers_module_interface;
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 13d8308d49fc6d75c6b87ac30909d5cd397e90bd..325c5e7142c91f7a8c8f576ac069860f33697cd4 100644 (file)
@@ -34,7 +34,7 @@
 
 struct switch_loadable_module {
        char *filename;
-       const switch_loadable_module_interface_t *interface;
+       const switch_loadable_module_interface_t *module_interface;
        void *lib;
        switch_module_load_t switch_module_load;
        switch_module_runtime_t switch_module_runtime;
@@ -72,11 +72,11 @@ static void *switch_loadable_module_exec(switch_thread_t *thread, void *obj)
        for (restarts = 0; status != SWITCH_STATUS_TERM; restarts++) {
                status = module->switch_module_runtime();
        }
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Thread ended for %s\n", module->interface->module_name);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Thread ended for %s\n", module->module_interface->module_name);
 
        if (ts->pool) {
                switch_memory_pool_t *pool = ts->pool;
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Destroying Pool for %s\n", module->interface->module_name);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Destroying Pool for %s\n", module->module_interface->module_name);
                switch_core_destroy_memory_pool(&pool);
        }
        switch_yield(1000000);
@@ -93,19 +93,19 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable
 
        switch_core_hash_insert(loadable_modules.module_hash, key, new_module);
 
-       if (new_module->interface->endpoint_interface) {
+       if (new_module->module_interface->endpoint_interface) {
                const switch_endpoint_interface_t *ptr;
-               for (ptr = new_module->interface->endpoint_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->endpoint_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding Endpoint '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.endpoint_hash, (char *) ptr->interface_name, (void *) ptr);
                }
        }
 
-       if (new_module->interface->codec_interface) {
+       if (new_module->module_interface->codec_interface) {
                const switch_codec_implementation_t *impl;
                const switch_codec_interface_t *ptr;
 
-               for (ptr = new_module->interface->codec_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->codec_interface; ptr; ptr = ptr->next) {
                        for (impl = ptr->implementations; impl; impl = impl->next) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE,
                                                                  "Adding Codec '%s' (%s) %dkhz %dms\n",
@@ -118,47 +118,47 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable
                }
        }
 
-       if (new_module->interface->dialplan_interface) {
+       if (new_module->module_interface->dialplan_interface) {
                const switch_dialplan_interface_t *ptr;
 
-               for (ptr = new_module->interface->dialplan_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->dialplan_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding Dialplan '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.dialplan_hash, (char *) ptr->interface_name, (void *) ptr);
                }
        }
 
-       if (new_module->interface->timer_interface) {
+       if (new_module->module_interface->timer_interface) {
                const switch_timer_interface_t *ptr;
 
-               for (ptr = new_module->interface->timer_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->timer_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding Timer '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.timer_hash, (char *) ptr->interface_name, (void *) ptr);
                }
        }
 
-       if (new_module->interface->application_interface) {
+       if (new_module->module_interface->application_interface) {
                const switch_application_interface_t *ptr;
 
-               for (ptr = new_module->interface->application_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->application_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding Application '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.application_hash,
                                                                        (char *) ptr->interface_name, (void *) ptr);
                }
        }
 
-       if (new_module->interface->api_interface) {
+       if (new_module->module_interface->api_interface) {
                const switch_api_interface_t *ptr;
 
-               for (ptr = new_module->interface->api_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->api_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding API Function '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.api_hash, (char *) ptr->interface_name, (void *) ptr);
                }
        }
 
-       if (new_module->interface->file_interface) {
+       if (new_module->module_interface->file_interface) {
                const switch_file_interface_t *ptr;
 
-               for (ptr = new_module->interface->file_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->file_interface; ptr; ptr = ptr->next) {
                        int i;
                        for (i = 0; ptr->extens[i]; i++) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding File Format '%s'\n", ptr->extens[i]);
@@ -167,19 +167,19 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable
                }
        }
 
-       if (new_module->interface->speech_interface) {
+       if (new_module->module_interface->speech_interface) {
                const switch_speech_interface_t *ptr;
 
-               for (ptr = new_module->interface->speech_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->speech_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding Speech interface '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.speech_hash, (char *) ptr->interface_name, (void *) ptr);
                }
        }
 
-       if (new_module->interface->directory_interface) {
+       if (new_module->module_interface->directory_interface) {
                const switch_directory_interface_t *ptr;
 
-               for (ptr = new_module->interface->directory_interface; ptr; ptr = ptr->next) {
+               for (ptr = new_module->module_interface->directory_interface; ptr; ptr = ptr->next) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding Directory interface '%s'\n", ptr->interface_name);
                        switch_core_hash_insert(loadable_modules.directory_hash, (char *) ptr->interface_name, (void *) ptr);
                }
@@ -199,7 +199,7 @@ static switch_status_t switch_loadable_module_load_file(char *filename, switch_l
        switch_module_load_t load_func_ptr = NULL;
        int loading = 1;
        const char *err = NULL;
-       switch_loadable_module_interface_t *interface = NULL;
+       switch_loadable_module_interface_t *module_interface = NULL;
        char derr[512] = "";
 
        assert(filename != NULL);
@@ -222,9 +222,9 @@ static switch_status_t switch_loadable_module_load_file(char *filename, switch_l
                        break;
                }
 
-               if (load_func_ptr(&interface, filename) != SWITCH_STATUS_SUCCESS) {
+               if (load_func_ptr(&module_interface, filename) != SWITCH_STATUS_SUCCESS) {
                        err = "Module load routine returned an error";
-                       interface = NULL;
+                       module_interface = NULL;
                        break;
                }
 
@@ -242,7 +242,7 @@ static switch_status_t switch_loadable_module_load_file(char *filename, switch_l
        }
 
        module->filename = switch_core_permenant_strdup(filename);
-       module->interface = interface;
+       module->module_interface = module_interface;
        module->switch_module_load = load_func_ptr;
 
        if ((status = apr_dso_sym(&function_handle, dso, "switch_module_shutdown")) == APR_SUCCESS) {
@@ -260,7 +260,7 @@ static switch_status_t switch_loadable_module_load_file(char *filename, switch_l
        }
 
        *new_module = module;
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Successfully Loaded [%s]\n", interface->module_name);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Successfully Loaded [%s]\n", module_interface->module_name);
 
        return SWITCH_STATUS_SUCCESS;
 
@@ -321,7 +321,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
        switch_module_load_t load_func_ptr = NULL; 
        int loading = 1; 
        const char *err = NULL; 
-       switch_loadable_module_interface_t *interface = NULL; 
+       switch_loadable_module_interface_t *module_interface = NULL; 
 
        if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module_t))) == 0) { 
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Couldn't allocate memory\n"); 
@@ -336,9 +336,9 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
                        break; 
                } 
   
-               if (load_func_ptr(&interface, filename) != SWITCH_STATUS_SUCCESS) { 
+               if (load_func_ptr(&module_interface, filename) != SWITCH_STATUS_SUCCESS) { 
                        err = "Module load routine returned an error"; 
-                       interface = NULL; 
+                       module_interface = NULL; 
                        break; 
                } 
   
@@ -356,7 +356,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
        } 
   
        module->filename = switch_core_permenant_strdup(filename); 
-       module->interface = interface; 
+       module->module_interface = module_interface; 
        module->switch_module_load = load_func_ptr; 
   
        if (switch_module_shutdown) { 
@@ -368,7 +368,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
        if (module->switch_module_runtime) { 
                switch_core_launch_thread(switch_loadable_module_exec, module, loadable_modules.pool); 
        } 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Successfully Loaded [%s]\n", interface->module_name); 
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Successfully Loaded [%s]\n", module_interface->module_name); 
        return switch_loadable_module_process((char *) module->filename, module);
 } 
 
@@ -511,7 +511,7 @@ SWITCH_DECLARE(void) switch_loadable_module_shutdown(void)
        for (hi = switch_hash_first(loadable_modules.pool, loadable_modules.module_hash); hi; hi = switch_hash_next(hi)) {
                switch_hash_this(hi, NULL, NULL, &val);
                module = (switch_loadable_module_t *) val;
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Checking %s\t", module->interface->module_name);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Checking %s\t", module->module_interface->module_name);
                if (module->switch_module_shutdown) {
                        switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, SWITCH_LOG_CONSOLE, "(yes)\n");
                        module->switch_module_shutdown();