diff --git a/include/baresip.h b/include/baresip.h index 817c7f1cc..c6d3ecdf2 100644 --- a/include/baresip.h +++ b/include/baresip.h @@ -1681,7 +1681,7 @@ struct call *bevent_get_call(const struct bevent *event); struct ua *bevent_get_ua(const struct bevent *event); const struct sip_msg *bevent_get_msg(const struct bevent *event); void *bevent_get_apparg(const struct bevent *event); -enum ua_event bevent_get_enum(const struct bevent *event); +enum ua_event bevent_get_type(const struct bevent *event); const char *bevent_get_text(const struct bevent *event); void bevent_set_error(struct bevent *event, int err); void bevent_stop(struct bevent *event); diff --git a/src/bevent.c b/src/bevent.c index d90ac435b..22c45e1b3 100644 --- a/src/bevent.c +++ b/src/bevent.c @@ -298,7 +298,7 @@ void *bevent_get_apparg(const struct bevent *event) * * @return the event type */ -enum ua_event bevent_get_enum(const struct bevent *event) +enum ua_event bevent_get_type(const struct bevent *event) { return event ? event->ev : UA_EVENT_MAX; } diff --git a/test/bevent.c b/test/bevent.c index 8e740a217..b35d64863 100644 --- a/test/bevent.c +++ b/test/bevent.c @@ -83,7 +83,7 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg) else if (msg && msg != (void *) 0xdeadbeef) { bevent_set_error(event, EINVAL); } - else if (f->expected_event != bevent_get_enum(event)) { + else if (f->expected_event != bevent_get_type(event)) { bevent_set_error(event, EINVAL); } else