Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8c4245dd
提交
8c4245dd
authored
8月 27, 2008
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add zap_dso abstraction
git-svn-id:
http://svn.openzap.org/svn/openzap/trunk@515
a93c3328-9c30-0410-af19-c9cd2b2d52af
上级
b5a23ffa
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
71 行增加
和
64 行删除
+71
-64
Makefile.in
libs/freetdm/Makefile.in
+3
-0
zap_dso.h
libs/freetdm/src/include/zap_dso.h
+35
-35
zap_dso.c
libs/freetdm/src/zap_dso.c
+33
-29
没有找到文件。
libs/freetdm/Makefile.in
浏览文件 @
8c4245dd
...
...
@@ -46,6 +46,7 @@ $(SRC)/libteletone_detect.c \
$(SRC)
/libteletone_generate.c
\
$(SRC)
/zap_buffer.c
\
$(SRC)
/zap_threadmutex.c
\
$(SRC)
/zap_dso.c
\
$(SRC)
/isdn/EuroISDNStateNT.c
\
$(SRC)
/isdn/EuroISDNStateTE.c
\
$(SRC)
/isdn/mfifo.c
\
...
...
@@ -86,6 +87,7 @@ $(SRC)/libteletone_detect.o \
$(SRC)
/libteletone_generate.o
\
$(SRC)
/zap_buffer.o
\
$(SRC)
/zap_threadmutex.o
\
$(SRC)
/zap_dso.o
\
$(SRC)
/isdn/EuroISDNStateNT.o
\
$(SRC)
/isdn/EuroISDNStateTE.o
\
$(SRC)
/isdn/mfifo.o
\
...
...
@@ -129,6 +131,7 @@ $(SRC)/include/zap_config.h \
$(SRC)
/include/zap_isdn.h
\
$(SRC)
/include/zap_skel.h
\
$(SRC)
/include/zap_threadmutex.h
\
$(SRC)
/include/zap_dso.h
\
$(SRC)
/include/zap_types.h
\
$(SRC)
/include/zap_wanpipe.h
\
$(SRC)
/include/zap_ss7_boost.h
\
...
...
libs/freetdm/src/include/zap_dso.h
浏览文件 @
8c4245dd
/*
* Cross Platform dso/dll load abstraction
* Copyright(C) 2008 Michael Jerris
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so.
*
* This work is provided under this license on an "as is" basis, without warranty of any kind,
* either expressed or implied, including, without limitation, warranties that the covered code
* is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire
* risk as to the quality and performance of the covered code is with you. Should any covered
* code prove defective in any respect, you (not the initial developer or any other contributor)
* assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty
* constitutes an essential part of this license. No use of any covered code is authorized hereunder
* except under this disclaimer.
*
*/
#ifndef _ZAP_DSO_H
#define _ZAP_DSO_H
/*
* Cross Platform dso/dll load abstraction
* Copyright(C) 2008 Michael Jerris
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so.
*
* This work is provided under this license on an "as is" basis, without warranty of any kind,
* either expressed or implied, including, without limitation, warranties that the covered code
* is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire
* risk as to the quality and performance of the covered code is with you. Should any covered
* code prove defective in any respect, you (not the initial developer or any other contributor)
* assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty
* constitutes an essential part of this license. No use of any covered code is authorized hereunder
* except under this disclaimer.
*
*/
#ifndef _ZAP_DSO_H
#define _ZAP_DSO_H
typedef
void
(
*
zap_func_ptr_t
)
(
void
);
typedef
void
*
zap_dso_lib_t
;
...
...
@@ -29,16 +29,16 @@ zap_dso_lib_t zap_dso_open(const char *path, const char **err);
zap_func_ptr_t
zap_dso_func_sym
(
zap_dso_lib_t
lib
,
const
char
*
sym
,
const
char
**
err
);
#endif
/* For Emacs:
* Local Variables:
* mode:c
* indent-tabs-mode:t
* tab-width:4
* c-basic-offset:4
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4
*/
#endif
/* For Emacs:
* Local Variables:
* mode:c
* indent-tabs-mode:t
* tab-width:4
* c-basic-offset:4
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4
*/
libs/freetdm/src/zap_dso.c
浏览文件 @
8c4245dd
/*
* Cross Platform dso/dll load abstraction
* Copyright(C) 2008 Michael Jerris
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so.
*
* This work is provided under this license on an "as is" basis, without warranty of any kind,
* either expressed or implied, including, without limitation, warranties that the covered code
* is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire
* risk as to the quality and performance of the covered code is with you. Should any covered
* code prove defective in any respect, you (not the initial developer or any other contributor)
* assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty
* constitutes an essential part of this license. No use of any covered code is authorized hereunder
* except under this disclaimer.
*
*/
/*
* Cross Platform dso/dll load abstraction
* Copyright(C) 2008 Michael Jerris
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so.
*
* This work is provided under this license on an "as is" basis, without warranty of any kind,
* either expressed or implied, including, without limitation, warranties that the covered code
* is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire
* risk as to the quality and performance of the covered code is with you. Should any covered
* code prove defective in any respect, you (not the initial developer or any other contributor)
* assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty
* constitutes an essential part of this license. No use of any covered code is authorized hereunder
* except under this disclaimer.
*
*/
#include "zap_dso.h"
#include <stdlib.h>
#include <string.h>
/*
** {========================================================================
...
...
@@ -27,6 +30,7 @@
** =========================================================================
*/
#include <dlfcn.h>
void
zap_dso_destroy
(
zap_dso_lib_t
*
lib
)
{
...
...
@@ -53,14 +57,14 @@ zap_func_ptr_t zap_dso_func_sym(zap_dso_lib_t lib, const char *sym, const char *
}
/* }====================================================== */
/* For Emacs:
* Local Variables:
* mode:c
* indent-tabs-mode:t
* tab-width:4
* c-basic-offset:4
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4
*/
/* For Emacs:
* Local Variables:
* mode:c
* indent-tabs-mode:t
* tab-width:4
* c-basic-offset:4
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4
*/
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论