From 810cdc25ef391e4b754e40b1b8464c48bd27bcd4 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Thu, 1 Aug 2024 11:20:08 +0200 Subject: [PATCH] bevent: rename bevent_get_enum() to bevent_get_type() --- include/baresip.h | 2 +- src/bevent.c | 2 +- test/bevent.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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