提交 c495be57 authored 作者: Moises Silva's avatar Moises Silva

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
上级 453fe5f7
......@@ -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:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论