Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d5b1c328
提交
d5b1c328
authored
8月 04, 2017
作者:
Shane Bryldt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-10167: Updating linux build
上级
53690120
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
36 行删除
+16
-36
blade_identity.c
libs/libblade/src/blade_identity.c
+10
-14
blade_protocol.c
libs/libblade/src/blade_protocol.c
+0
-4
blade_rpc.c
libs/libblade/src/blade_rpc.c
+0
-8
blade_subscription.c
libs/libblade/src/blade_subscription.c
+6
-10
没有找到文件。
libs/libblade/src/blade_identity.c
浏览文件 @
d5b1c328
/*
/*
* Copyright (c) 2017, Shane Bryldt
* Copyright (c) 2017, Shane Bryldt
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* modification, are permitted provided that the following conditions
* are met:
* are met:
*
*
* * Redistributions of source code must retain the above copyright
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* notice, this list of conditions and the following disclaimer.
*
*
* * Redistributions in binary form must reproduce the above copyright
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* documentation and/or other materials provided with the distribution.
*
*
* * Neither the name of the original author; nor the names of any contributors
* * Neither the name of the original author; nor the names of any contributors
* may be used to endorse or promote products derived from this software
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* without specific prior written permission.
*
*
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
struct
blade_identity_s
{
struct
blade_identity_s
{
const
char
*
uri
;
const
char
*
uri
;
const
char
*
components
;
const
char
*
components
;
const
char
*
name
;
const
char
*
name
;
const
char
*
domain
;
const
char
*
domain
;
...
@@ -81,13 +81,9 @@ KS_DECLARE(ks_status_t) blade_identity_create(blade_identity_t **biP, ks_pool_t
...
@@ -81,13 +81,9 @@ KS_DECLARE(ks_status_t) blade_identity_create(blade_identity_t **biP, ks_pool_t
KS_DECLARE
(
ks_status_t
)
blade_identity_destroy
(
blade_identity_t
**
biP
)
KS_DECLARE
(
ks_status_t
)
blade_identity_destroy
(
blade_identity_t
**
biP
)
{
{
blade_identity_t
*
bi
=
NULL
;
ks_assert
(
biP
);
ks_assert
(
biP
);
ks_assert
(
*
biP
);
ks_assert
(
*
biP
);
bi
=
*
biP
;
ks_pool_free
(
biP
);
ks_pool_free
(
biP
);
return
KS_STATUS_SUCCESS
;
return
KS_STATUS_SUCCESS
;
...
@@ -98,12 +94,12 @@ KS_DECLARE(ks_status_t) blade_identity_parse(blade_identity_t *bi, const char *u
...
@@ -98,12 +94,12 @@ KS_DECLARE(ks_status_t) blade_identity_parse(blade_identity_t *bi, const char *u
char
*
tmp
=
NULL
;
char
*
tmp
=
NULL
;
char
*
tmp2
=
NULL
;
char
*
tmp2
=
NULL
;
ks_pool_t
*
pool
=
NULL
;
ks_pool_t
*
pool
=
NULL
;
ks_assert
(
bi
);
ks_assert
(
bi
);
ks_assert
(
uri
);
ks_assert
(
uri
);
ks_log
(
KS_LOG_DEBUG
,
"Parsing URI: %s
\n
"
,
uri
);
ks_log
(
KS_LOG_DEBUG
,
"Parsing URI: %s
\n
"
,
uri
);
pool
=
ks_pool_get
(
bi
);
pool
=
ks_pool_get
(
bi
);
if
(
bi
->
uri
)
{
if
(
bi
->
uri
)
{
...
@@ -116,7 +112,7 @@ KS_DECLARE(ks_status_t) blade_identity_parse(blade_identity_t *bi, const char *u
...
@@ -116,7 +112,7 @@ KS_DECLARE(ks_status_t) blade_identity_parse(blade_identity_t *bi, const char *u
bi
->
name
=
tmp
;
bi
->
name
=
tmp
;
if
(
!
(
tmp
=
strchr
(
tmp
,
'@'
)))
return
KS_STATUS_FAIL
;
if
(
!
(
tmp
=
strchr
(
tmp
,
'@'
)))
return
KS_STATUS_FAIL
;
*
tmp
++
=
'\0'
;
*
tmp
++
=
'\0'
;
bi
->
domain
=
tmp2
=
tmp
;
bi
->
domain
=
tmp2
=
tmp
;
if
((
tmp
=
strchr
(
tmp
,
'/'
)))
{
if
((
tmp
=
strchr
(
tmp
,
'/'
)))
{
*
tmp
++
=
'\0'
;
*
tmp
++
=
'\0'
;
...
...
libs/libblade/src/blade_protocol.c
浏览文件 @
d5b1c328
...
@@ -90,13 +90,9 @@ KS_DECLARE(ks_status_t) blade_protocol_create(blade_protocol_t **bpP, ks_pool_t
...
@@ -90,13 +90,9 @@ KS_DECLARE(ks_status_t) blade_protocol_create(blade_protocol_t **bpP, ks_pool_t
KS_DECLARE
(
ks_status_t
)
blade_protocol_destroy
(
blade_protocol_t
**
bpP
)
KS_DECLARE
(
ks_status_t
)
blade_protocol_destroy
(
blade_protocol_t
**
bpP
)
{
{
blade_protocol_t
*
bp
=
NULL
;
ks_assert
(
bpP
);
ks_assert
(
bpP
);
ks_assert
(
*
bpP
);
ks_assert
(
*
bpP
);
bp
=
*
bpP
;
ks_pool_free
(
bpP
);
ks_pool_free
(
bpP
);
return
KS_STATUS_SUCCESS
;
return
KS_STATUS_SUCCESS
;
...
...
libs/libblade/src/blade_rpc.c
浏览文件 @
d5b1c328
...
@@ -225,13 +225,9 @@ KS_DECLARE(ks_status_t) blade_rpc_request_create(blade_rpc_request_t **brpcreqP,
...
@@ -225,13 +225,9 @@ KS_DECLARE(ks_status_t) blade_rpc_request_create(blade_rpc_request_t **brpcreqP,
KS_DECLARE
(
ks_status_t
)
blade_rpc_request_destroy
(
blade_rpc_request_t
**
brpcreqP
)
KS_DECLARE
(
ks_status_t
)
blade_rpc_request_destroy
(
blade_rpc_request_t
**
brpcreqP
)
{
{
blade_rpc_request_t
*
brpcreq
=
NULL
;
ks_assert
(
brpcreqP
);
ks_assert
(
brpcreqP
);
ks_assert
(
*
brpcreqP
);
ks_assert
(
*
brpcreqP
);
brpcreq
=
*
brpcreqP
;
ks_pool_free
(
brpcreqP
);
ks_pool_free
(
brpcreqP
);
return
KS_STATUS_SUCCESS
;
return
KS_STATUS_SUCCESS
;
...
@@ -361,13 +357,9 @@ KS_DECLARE(ks_status_t) blade_rpc_response_create(blade_rpc_response_t **brpcres
...
@@ -361,13 +357,9 @@ KS_DECLARE(ks_status_t) blade_rpc_response_create(blade_rpc_response_t **brpcres
KS_DECLARE
(
ks_status_t
)
blade_rpc_response_destroy
(
blade_rpc_response_t
**
brpcresP
)
KS_DECLARE
(
ks_status_t
)
blade_rpc_response_destroy
(
blade_rpc_response_t
**
brpcresP
)
{
{
blade_rpc_response_t
*
brpcres
=
NULL
;
ks_assert
(
brpcresP
);
ks_assert
(
brpcresP
);
ks_assert
(
*
brpcresP
);
ks_assert
(
*
brpcresP
);
brpcres
=
*
brpcresP
;
ks_pool_free
(
brpcresP
);
ks_pool_free
(
brpcresP
);
return
KS_STATUS_SUCCESS
;
return
KS_STATUS_SUCCESS
;
...
...
libs/libblade/src/blade_subscription.c
浏览文件 @
d5b1c328
/*
/*
* Copyright (c) 2017, Shane Bryldt
* Copyright (c) 2017, Shane Bryldt
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* modification, are permitted provided that the following conditions
* are met:
* are met:
*
*
* * Redistributions of source code must retain the above copyright
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* notice, this list of conditions and the following disclaimer.
*
*
* * Redistributions in binary form must reproduce the above copyright
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* documentation and/or other materials provided with the distribution.
*
*
* * Neither the name of the original author; nor the names of any contributors
* * Neither the name of the original author; nor the names of any contributors
* may be used to endorse or promote products derived from this software
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* without specific prior written permission.
*
*
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
...
@@ -91,13 +91,9 @@ KS_DECLARE(ks_status_t) blade_subscription_create(blade_subscription_t **bsubP,
...
@@ -91,13 +91,9 @@ KS_DECLARE(ks_status_t) blade_subscription_create(blade_subscription_t **bsubP,
KS_DECLARE
(
ks_status_t
)
blade_subscription_destroy
(
blade_subscription_t
**
bsubP
)
KS_DECLARE
(
ks_status_t
)
blade_subscription_destroy
(
blade_subscription_t
**
bsubP
)
{
{
blade_subscription_t
*
bsub
=
NULL
;
ks_assert
(
bsubP
);
ks_assert
(
bsubP
);
ks_assert
(
*
bsubP
);
ks_assert
(
*
bsubP
);
bsub
=
*
bsubP
;
ks_pool_free
(
bsubP
);
ks_pool_free
(
bsubP
);
return
KS_STATUS_SUCCESS
;
return
KS_STATUS_SUCCESS
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论