diff options
-rw-r--r-- | include/baresip.h | 1 | ||||
-rw-r--r-- | modules/sdl/sdl.c | 6 | ||||
-rw-r--r-- | src/ui.c | 13 |
3 files changed, 3 insertions, 17 deletions
diff --git a/include/baresip.h b/include/baresip.h index c88b213..2ebb829 100644 --- a/include/baresip.h +++ b/include/baresip.h @@ -669,7 +669,6 @@ void ui_register(struct ui *ui); void ui_unregister(struct ui *ui); void ui_reset(void); -void ui_input(char key); void ui_input_key(char key, struct re_printf *pf); void ui_input_str(const char *str); int ui_input_pl(struct re_printf *pf, const struct pl *pl); diff --git a/modules/sdl/sdl.c b/modules/sdl/sdl.c index c9f6b76..122b451 100644 --- a/modules/sdl/sdl.c +++ b/modules/sdl/sdl.c @@ -80,7 +80,7 @@ static void timeout(void *arg) tmr_start(&sdl.tmr, 1, event_handler, NULL); /* Emulate key-release */ - ui_input(KEYCODE_REL); + ui_input_key(KEYCODE_REL, NULL); } @@ -124,7 +124,7 @@ static void event_handler(void *arg) if (isprint(ch)) { tmr_start(&sdl.tmr, KEY_RELEASE_VAL, timeout, NULL); - ui_input(ch); + ui_input_key(ch, NULL); } break; } @@ -136,7 +136,7 @@ static void event_handler(void *arg) break; case SDL_QUIT: - ui_input('q'); + ui_input_key('q', NULL); break; default: @@ -61,19 +61,6 @@ void ui_unregister(struct ui *ui) /** - * Send input to the UI subsystem - * - * @param key Input character - */ -void ui_input(char key) -{ - static struct re_printf pf_stdout = {stdout_handler, NULL}; - - ui_handler(key, &pf_stdout); -} - - -/** * Send an input key to the UI subsystem, with a print function for response * * @param key Input character |