Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
7bacd1a0
提交
7bacd1a0
authored
4月 30, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
forgot a t
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@1304
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
14fee784
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
switch_core.h
src/include/switch_core.h
+1
-1
switch_sqlite.h
src/include/switch_sqlite.h
+2
-2
mod_spidermonkey.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
+3
-3
switch_core.c
src/switch_core.c
+6
-6
没有找到文件。
src/include/switch_core.h
浏览文件 @
7bacd1a0
...
...
@@ -750,7 +750,7 @@ SWITCH_DECLARE(switch_codec_t *) switch_core_session_get_write_codec(switch_core
\param filename the path to the db file to open
\return
*/
SWITCH_DECLARE
(
switch_core_db
*
)
switch_core_db_open_file
(
char
*
filename
);
SWITCH_DECLARE
(
switch_core_db
_t
*
)
switch_core_db_open_file
(
char
*
filename
);
#define SWITCH_CORE_DB "core"
/*!
...
...
src/include/switch_sqlite.h
浏览文件 @
7bacd1a0
...
...
@@ -55,8 +55,8 @@ BEGIN_EXTERN_C
* Each open sqlite database is represented by an instance of the
* following opaque structure.
*/
typedef
sqlite3
switch_core_db
;
typedef
sqlite3_stmt
switch_core_db_stmt
;
typedef
sqlite3
switch_core_db
_t
;
typedef
sqlite3_stmt
switch_core_db_stmt
_t
;
/**
* Aggregate functions use the following routine to allocate
* a structure for storing their state. The first time this routine
...
...
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
浏览文件 @
7bacd1a0
...
...
@@ -140,8 +140,8 @@ struct fileio_obj {
struct
db_obj
{
switch_memory_pool_t
*
pool
;
switch_core_db
*
db
;
switch_core_db_stmt
*
stmt
;
switch_core_db
_t
*
db
;
switch_core_db_stmt
_t
*
stmt
;
char
*
dbname
;
char
code_buffer
[
2048
];
JSContext
*
cx
;
...
...
@@ -1242,7 +1242,7 @@ JSClass fileio_class = {
static
JSBool
db_construct
(
JSContext
*
cx
,
JSObject
*
obj
,
uintN
argc
,
jsval
*
argv
,
jsval
*
rval
)
{
switch_memory_pool_t
*
pool
;
switch_core_db
*
db
;
switch_core_db
_t
*
db
;
struct
db_obj
*
dbo
;
if
(
argc
>
0
)
{
...
...
src/switch_core.c
浏览文件 @
7bacd1a0
...
...
@@ -87,8 +87,8 @@ struct switch_core_runtime {
apr_pool_t
*
memory_pool
;
switch_hash_t
*
session_table
;
switch_hash_t
*
stack_table
;
switch_core_db
*
db
;
switch_core_db
*
event_db
;
switch_core_db
_t
*
db
;
switch_core_db
_t
*
event_db
;
const
switch_state_handler_table_t
*
state_handlers
[
SWITCH_MAX_STATE_HANDLERS
];
int
state_handler_index
;
FILE
*
console
;
...
...
@@ -120,9 +120,9 @@ static void db_pick_path(char *dbname, char *buf, switch_size_t size)
}
}
SWITCH_DECLARE
(
switch_core_db
*
)
switch_core_db_open_file
(
char
*
filename
)
SWITCH_DECLARE
(
switch_core_db
_t
*
)
switch_core_db_open_file
(
char
*
filename
)
{
switch_core_db
*
db
;
switch_core_db
_t
*
db
;
char
path
[
1024
];
db_pick_path
(
filename
,
path
,
sizeof
(
path
));
...
...
@@ -135,7 +135,7 @@ SWITCH_DECLARE(switch_core_db *) switch_core_db_open_file(char *filename)
}
#if 0
static void check_table_exists(switch_core_db *db, char *test_sql, char *create_sql) {
static void check_table_exists(switch_core_db
_t
*db, char *test_sql, char *create_sql) {
char *errmsg;
if(db) {
...
...
@@ -2495,7 +2495,7 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_by_name(char
return
switch_core_session_request
(
endpoint_interface
,
pool
);
}
static
switch_status_t
switch_core_sql_persistant_execute
(
switch_core_db
*
db
,
char
*
sql
,
uint32_t
retries
)
static
switch_status_t
switch_core_sql_persistant_execute
(
switch_core_db
_t
*
db
,
char
*
sql
,
uint32_t
retries
)
{
char
*
errmsg
;
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论