Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
4e86b031
提交
4e86b031
authored
4月 03, 2014
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-6424: --resolve properly export symbols from stfu
上级
287fd668
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
21 行删除
+8
-21
switch.h
src/include/switch.h
+1
-1
switch_stfu.h
src/include/switch_stfu.h
+4
-19
switch_stfu.c
src/switch_stfu.c
+3
-1
没有找到文件。
src/include/switch.h
浏览文件 @
4e86b031
...
...
@@ -106,9 +106,9 @@
#include <signal.h>
#include <errno.h>
#include "switch_stfu.h"
#include "switch_platform.h"
#include "switch_types.h"
#include "switch_stfu.h"
#include "switch_apr.h"
#include "switch_mprintf.h"
#include "switch_core_db.h"
...
...
src/include/switch_stfu.h
浏览文件 @
4e86b031
...
...
@@ -28,6 +28,9 @@
#ifndef STFU_H
#define STFU_H
#include <switch.h>
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -75,8 +78,6 @@ typedef unsigned long in_addr_t;
#endif
#include <assert.h>
#ifdef WIN32
#include <winsock2.h>
#include <windows.h>
...
...
@@ -95,23 +96,7 @@ typedef intptr_t stfu_ssize_t;
typedef
int
stfu_filehandle_t
;
#define STFU_SOCK_INVALID INVALID_SOCKET
#define strerror_r(num, buf, size) strerror_s(buf, size, num)
#if defined(STFU_DECLARE_STATIC)
#define STFU_DECLARE(type) type __stdcall
#define STFU_DECLARE_NONSTD(type) type __cdecl
#define STFU_DECLARE_DATA
#elif defined(STFU_EXPORTS)
#define STFU_DECLARE(type) __declspec(dllexport) type __stdcall
#define STFU_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
#define STFU_DECLARE_DATA __declspec(dllexport)
#else
#define STFU_DECLARE(type) __declspec(dllimport) type __stdcall
#define STFU_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
#define STFU_DECLARE_DATA __declspec(dllimport)
#endif
#else
#define STFU_DECLARE(type) type
#define STFU_DECLARE_NONSTD(type) type
#define STFU_DECLARE_DATA
#include <stdint.h>
#include <sys/types.h>
#include <sys/ioctl.h>
...
...
@@ -197,7 +182,7 @@ stfu_instance_t *stfu_n_init(uint32_t qlen, uint32_t max_qlen, uint32_t samples_
stfu_status_t
stfu_n_resize
(
stfu_instance_t
*
i
,
uint32_t
qlen
);
stfu_status_t
stfu_n_add_data
(
stfu_instance_t
*
i
,
uint32_t
ts
,
uint16_t
seq
,
uint32_t
pt
,
void
*
data
,
size_t
datalen
,
uint32_t
timer_ts
,
int
last
);
stfu_frame_t
*
stfu_n_read_a_frame
(
stfu_instance_t
*
i
);
S
TFU
_DECLARE
(
int32_t
)
stfu_n_copy_next_frame
(
stfu_instance_t
*
jb
,
uint32_t
timestamp
,
uint16_t
seq
,
uint16_t
distance
,
stfu_frame_t
*
next_frame
);
S
WITCH
_DECLARE
(
int32_t
)
stfu_n_copy_next_frame
(
stfu_instance_t
*
jb
,
uint32_t
timestamp
,
uint16_t
seq
,
uint16_t
distance
,
stfu_frame_t
*
next_frame
);
void
_stfu_n_reset
(
stfu_instance_t
*
i
,
const
char
*
file
,
const
char
*
func
,
int
line
);
#define stfu_n_reset(_i) _stfu_n_reset(_i, STFU_PRE)
stfu_status_t
stfu_n_sync
(
stfu_instance_t
*
i
,
uint32_t
packets
);
...
...
src/switch_stfu.c
浏览文件 @
4e86b031
...
...
@@ -25,6 +25,8 @@
*
* THOSE WHO DISAGREE MAY CERTAINLY STFU
*/
#include "switch.h"
#include "switch_stfu.h"
//#define DB_JB 1
...
...
@@ -824,7 +826,7 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
return
rframe
;
}
S
TFU
_DECLARE
(
int32_t
)
stfu_n_copy_next_frame
(
stfu_instance_t
*
jb
,
uint32_t
timestamp
,
uint16_t
seq
,
uint16_t
distance
,
stfu_frame_t
*
next_frame
)
S
WITCH
_DECLARE
(
int32_t
)
stfu_n_copy_next_frame
(
stfu_instance_t
*
jb
,
uint32_t
timestamp
,
uint16_t
seq
,
uint16_t
distance
,
stfu_frame_t
*
next_frame
)
{
uint32_t
i
=
0
,
j
=
0
;
#ifdef WIN32
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论