mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Fix some places where ast_event_type was used instead of ast_event_ie_type.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
18
main/event.c
18
main/event.c
@@ -365,9 +365,9 @@ enum ast_event_subscriber_res ast_event_check_subscriber(enum ast_event_type typ
|
|||||||
}
|
}
|
||||||
|
|
||||||
va_start(ap, type);
|
va_start(ap, type);
|
||||||
for (ie_type = va_arg(ap, enum ast_event_type);
|
for (ie_type = va_arg(ap, enum ast_event_ie_type);
|
||||||
ie_type != AST_EVENT_IE_END;
|
ie_type != AST_EVENT_IE_END;
|
||||||
ie_type = va_arg(ap, enum ast_event_type))
|
ie_type = va_arg(ap, enum ast_event_ie_type))
|
||||||
{
|
{
|
||||||
struct ast_event_ie_val *ie_value = alloca(sizeof(*ie_value));
|
struct ast_event_ie_val *ie_value = alloca(sizeof(*ie_value));
|
||||||
int insert = 1;
|
int insert = 1;
|
||||||
@@ -819,9 +819,9 @@ struct ast_event_sub *ast_event_subscribe(enum ast_event_type type, ast_event_cb
|
|||||||
ast_copy_string(sub->description, description, sizeof(sub->description));
|
ast_copy_string(sub->description, description, sizeof(sub->description));
|
||||||
|
|
||||||
va_start(ap, userdata);
|
va_start(ap, userdata);
|
||||||
for (ie_type = va_arg(ap, enum ast_event_type);
|
for (ie_type = va_arg(ap, enum ast_event_ie_type);
|
||||||
ie_type != AST_EVENT_IE_END;
|
ie_type != AST_EVENT_IE_END;
|
||||||
ie_type = va_arg(ap, enum ast_event_type))
|
ie_type = va_arg(ap, enum ast_event_ie_type))
|
||||||
{
|
{
|
||||||
enum ast_event_ie_pltype ie_pltype;
|
enum ast_event_ie_pltype ie_pltype;
|
||||||
|
|
||||||
@@ -1065,7 +1065,7 @@ struct ast_event *ast_event_new(enum ast_event_type type, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
struct ast_event *event;
|
struct ast_event *event;
|
||||||
enum ast_event_type ie_type;
|
enum ast_event_ie_type ie_type;
|
||||||
struct ast_event_ie_val *ie_val;
|
struct ast_event_ie_val *ie_val;
|
||||||
AST_LIST_HEAD_NOLOCK_STATIC(ie_vals, ast_event_ie_val);
|
AST_LIST_HEAD_NOLOCK_STATIC(ie_vals, ast_event_ie_val);
|
||||||
|
|
||||||
@@ -1077,9 +1077,9 @@ struct ast_event *ast_event_new(enum ast_event_type type, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
va_start(ap, type);
|
va_start(ap, type);
|
||||||
for (ie_type = va_arg(ap, enum ast_event_type);
|
for (ie_type = va_arg(ap, enum ast_event_ie_type);
|
||||||
ie_type != AST_EVENT_IE_END;
|
ie_type != AST_EVENT_IE_END;
|
||||||
ie_type = va_arg(ap, enum ast_event_type))
|
ie_type = va_arg(ap, enum ast_event_ie_type))
|
||||||
{
|
{
|
||||||
struct ast_event_ie_val *ie_value = alloca(sizeof(*ie_value));
|
struct ast_event_ie_val *ie_value = alloca(sizeof(*ie_value));
|
||||||
int insert = 1;
|
int insert = 1;
|
||||||
@@ -1218,9 +1218,9 @@ struct ast_event *ast_event_get_cached(enum ast_event_type type, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
va_start(ap, type);
|
va_start(ap, type);
|
||||||
for (ie_type = va_arg(ap, enum ast_event_type);
|
for (ie_type = va_arg(ap, enum ast_event_ie_type);
|
||||||
ie_type != AST_EVENT_IE_END;
|
ie_type != AST_EVENT_IE_END;
|
||||||
ie_type = va_arg(ap, enum ast_event_type))
|
ie_type = va_arg(ap, enum ast_event_ie_type))
|
||||||
{
|
{
|
||||||
enum ast_event_ie_pltype ie_pltype;
|
enum ast_event_ie_pltype ie_pltype;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user