add helper macro to name boost interface
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@873 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
453fe5f72f
commit
c495be57fb
|
@ -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);
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue