Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
84b4b5da
提交
84b4b5da
authored
7月 19, 2010
作者:
Mathieu Rene
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix esl doc, s/ESL_STATUS_SUCESS/ESL_SUCCESS/g
上级
9e047ef1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
esl_event.h
libs/esl/src/include/esl_event.h
+9
-9
没有找到文件。
libs/esl/src/include/esl_event.h
浏览文件 @
84b4b5da
...
...
@@ -183,7 +183,7 @@ typedef enum {
\param event a NULL pointer on which to create the event
\param event_id the event id enumeration of the desired event
\param subclass_name the subclass name for custom event (only valid when event_id is ESL_EVENT_CUSTOM)
\return ESL_S
TATUS_S
UCCESS on success
\return ESL_SUCCESS on success
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_create_subclass
(
esl_event_t
**
event
,
esl_event_types_t
event_id
,
const
char
*
subclass_name
);
...
...
@@ -191,7 +191,7 @@ ESL_DECLARE(esl_status_t) esl_event_create_subclass(esl_event_t **event, esl_eve
\brief Set the priority of an event
\param event the event to set the priority on
\param priority the event priority
\return ESL_S
TATUS_S
UCCESS
\return ESL_SUCCESS
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_set_priority
(
esl_event_t
*
event
,
esl_priority_t
priority
);
...
...
@@ -216,7 +216,7 @@ ESL_DECLARE(char *)esl_event_get_body(esl_event_t *event);
\param stack the stack sense (stack it on the top or on the bottom)
\param header_name the name of the header to add
\param fmt the value of the header (varargs see standard sprintf family)
\return ESL_S
TATUS_S
UCCESS if the header was added
\return ESL_SUCCESS if the header was added
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_add_header
(
esl_event_t
*
event
,
esl_stack_t
stack
,
const
char
*
header_name
,
const
char
*
fmt
,
...);
//PRINTF_FUNCTION(4, 5);
...
...
@@ -227,7 +227,7 @@ ESL_DECLARE(esl_status_t) esl_event_add_header(esl_event_t *event, esl_stack_t s
\param stack the stack sense (stack it on the top or on the bottom)
\param header_name the name of the header to add
\param data the value of the header
\return ESL_S
TATUS_S
UCCESS if the header was added
\return ESL_SUCCESS if the header was added
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_add_header_string
(
esl_event_t
*
event
,
esl_stack_t
stack
,
const
char
*
header_name
,
const
char
*
data
);
...
...
@@ -245,7 +245,7 @@ ESL_DECLARE(void) esl_event_destroy(esl_event_t **event);
\brief Duplicate an event
\param event a NULL pointer on which to duplicate the event
\param todup an event to duplicate
\return ESL_S
TATUS_S
UCCESS if the event was duplicated
\return ESL_SUCCESS if the event was duplicated
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_dup
(
esl_event_t
**
event
,
esl_event_t
*
todup
);
...
...
@@ -260,7 +260,7 @@ ESL_DECLARE(const char *)esl_event_name(esl_event_types_t event);
\brief return the event id that matches a given event name
\param name the name of the event
\param type the event id to return
\return ESL_S
TATUS_S
UCCESS if there was a match
\return ESL_SUCCESS if there was a match
*/
ESL_DECLARE
(
esl_status_t
)
esl_name_event
(
const
char
*
name
,
esl_event_types_t
*
type
);
...
...
@@ -269,7 +269,7 @@ ESL_DECLARE(esl_status_t) esl_name_event(const char *name, esl_event_types_t *ty
\param event the event to render
\param str a string pointer to point at the allocated data
\param encode url encode the headers
\return ESL_S
TATUS_S
UCCESS if the operation was successful
\return ESL_SUCCESS if the operation was successful
\note you must free the resulting string when you are finished with it
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_serialize
(
esl_event_t
*
event
,
char
**
str
,
esl_bool_t
encode
);
...
...
@@ -279,7 +279,7 @@ ESL_DECLARE(esl_status_t) esl_event_create_json(esl_event_t **event, const char
\brief Add a body to an event
\param event the event to add to body to
\param fmt optional body of the event (varargs see standard sprintf family)
\return ESL_S
TATUS_S
UCCESS if the body was added to the event
\return ESL_SUCCESS if the body was added to the event
\note the body parameter can be shadowed by the esl_event_reserve_subclass_detailed function
*/
ESL_DECLARE
(
esl_status_t
)
esl_event_add_body
(
esl_event_t
*
event
,
const
char
*
fmt
,
...);
...
...
@@ -288,7 +288,7 @@ ESL_DECLARE(esl_status_t) esl_event_add_body(esl_event_t *event, const char *fmt
\brief Create a new event assuming it will not be custom event and therefore hiding the unused parameters
\param event a NULL pointer on which to create the event
\param id the event id enumeration of the desired event
\return ESL_S
TATUS_S
UCCESS on success
\return ESL_SUCCESS on success
*/
#define esl_event_create(event, id) esl_event_create_subclass(event, id, ESL_EVENT_SUBCLASS_ANY)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论