Skip to content

Commit

Permalink
presence: publisher - use new bevent API
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Aug 19, 2024
1 parent 1501ad3 commit fc6125c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions modules/presence/publisher.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,9 @@ static int publisher_alloc(struct ua *ua)
}


static void pub_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)
{
(void)call;
(void)prm;
struct ua *ua = bevent_get_ua(event);
(void)arg;

if (account_pubint(ua_account(ua)) == 0)
Expand All @@ -260,7 +255,7 @@ int publisher_init(void)
struct le *le;
int err = 0;

err = uag_event_register(pub_ua_event_handler, NULL);
err = bevent_register(event_handler, NULL);
if (err)
return err;

Expand All @@ -286,7 +281,7 @@ void publisher_close(void)
{
struct le *le;

uag_event_unregister(pub_ua_event_handler);
bevent_unregister(event_handler);

for (le = list_head(&publ); le; le = le->next) {

Expand Down

0 comments on commit fc6125c

Please sign in to comment.