summaryrefslogtreecommitdiff
path: root/modules/cons
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-14 20:15:43 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-14 20:15:43 +0200
commitdc794b38d0726e5104f266d304d987a7a3ad1b18 (patch)
treee3a1012cb36b8ac27af2614124ecb8cb7c704dc7 /modules/cons
parentfcad53c745fe4cfa0a13e40f34bbe77a23aa5202 (diff)
ui: make API re-entrant
Diffstat (limited to 'modules/cons')
-rw-r--r--modules/cons/cons.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cons/cons.c b/modules/cons/cons.c
index f652a75..fc80f81 100644
--- a/modules/cons/cons.c
+++ b/modules/cons/cons.c
@@ -67,7 +67,7 @@ static void udp_recv(const struct sa *src, struct mbuf *mb, void *arg)
if (ch == '\r')
ch = '\n';
- ui_input_key(ch, &pf);
+ ui_input_key(baresip_uis(), ch, &pf);
}
if (mbr->end > 0) {
@@ -116,7 +116,7 @@ static void tcp_recv_handler(struct mbuf *mb, void *arg)
if (ch == '\r')
ch = '\n';
- ui_input_key(ch, &pf);
+ ui_input_key(baresip_uis(), ch, &pf);
}
}
@@ -248,7 +248,7 @@ static int cons_init(void)
if (err)
return err;
- ui_register(&ui_cons);
+ ui_register(baresip_uis(), &ui_cons);
log_register_handler(&lg);