Skip to content

Commit

Permalink
bevent: rename bevent_get_enum() to bevent_get_type()
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Aug 1, 2024
1 parent a12c947 commit 810cdc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/baresip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/bevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion test/bevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 810cdc2

Please sign in to comment.