Skip to content

Commit

Permalink
rtcpsummary: use new bevent API
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Aug 12, 2024
1 parent 0a753af commit 549cb21
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions modules/rtcpsummary/rtcpsummary.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,11 @@ static void print_rtcp_summary_line(const struct call *call,
}


static void ua_event_handler(struct ua *ua,
enum ua_event ev,
struct call *call,
const char *prm,
void *arg)
static void event_handler(enum ua_event ev, struct bevent *event, void *arg)
{
const struct stream *s;
struct le *le;
(void)ua;
(void)prm;
struct call *call = bevent_get_call(event);
(void)arg;

switch (ev) {
Expand All @@ -90,7 +85,7 @@ static void ua_event_handler(struct ua *ua,

static int module_init(void)
{
int err = uag_event_register(ua_event_handler, NULL);
int err = bevent_register(event_handler, NULL);
if (err) {
info("Error loading rtcpsummary module: %d", err);
return err;
Expand All @@ -102,7 +97,7 @@ static int module_init(void)
static int module_close(void)
{
debug("rtcpsummary: module closing..\n");
uag_event_unregister(ua_event_handler);
bevent_unregister(event_handler);
return 0;
}

Expand Down

0 comments on commit 549cb21

Please sign in to comment.