]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add helper macro to name boost interface
authorMoises Silva <moy@sangoma.com>
Mon, 16 Nov 2009 22:22:02 +0000 (22:22 +0000)
committerMoises Silva <moy@sangoma.com>
Mon, 16 Nov 2009 22:22:02 +0000 (22:22 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@873 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/ozmod/ozmod_sangoma_boost/ozmod_sangoma_boost.c
libs/freetdm/src/ozmod/ozmod_sangoma_boost/sangoma_boost_sigmod.h

index 7555ad329c4ffa9dc44808f102ce2073c88250c3..5090ca7197285c8b42f6a8274177e16cbd266b1b 100644 (file)
@@ -1653,7 +1653,7 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_sangoma_boost_configure_span)
 
                        FAIL_CONFIG_RETURN(ZAP_FAIL);
                }
-               if (!(sigmod_iface = (boost_sigmod_interface_t *)zap_dso_func_sym(lib, "boost_sigmod_interface", &err))) {
+               if (!(sigmod_iface = (boost_sigmod_interface_t *)zap_dso_func_sym(lib, BOOST_INTERFACE_NAME, &err))) {
                        zap_log(ZAP_LOG_ERROR, "Failed to read Sangoma boost signaling module interface '%s': %s\n", path, err);
                        snprintf(span->last_error, sizeof(span->last_error), "Failed to read Sangoma boost signaling module interface '%s': %s", path, err);
 
index 89bec2dce6d209750239cd77e3dd675415f62d11..8b09b2526179bed35a608cfff47004ee742211d9 100644 (file)
@@ -169,6 +169,9 @@ typedef struct boost_sigmod_interface_s {
        void *pvt;
 } boost_sigmod_interface_t;
 
+#define BOOST_INTERFACE_NAME "boost_sigmod_interface"
+/* use this in your sig boost module to declare your interface */
+#define BOOST_INTERFACE boost_sigmod_interface_t BOOST_INTERFACE_NAME
 #endif
 
 /* For Emacs: