about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/profanity.c2
-rw-r--r--src/ui/core.c6
-rw-r--r--src/ui/inputwin.h1
-rw-r--r--src/ui/ui.h3
-rw-r--r--tests/unittests/ui/stub_ui.c2
5 files changed, 4 insertions, 10 deletions
diff --git a/src/profanity.c b/src/profanity.c
index d316ba2f..07dcc332 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -108,7 +108,7 @@ prof_run(char *log_level, char *account_name)
         log_stderr_handler();
         _check_autoaway();
 
-        line = ui_readline();
+        line = inp_readline();
         if (line) {
             ProfWin *window = wins_get_current();
             cont = cmd_process_input(window, line);
diff --git a/src/ui/core.c b/src/ui/core.c
index a48d987b..af395831 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -185,12 +185,6 @@ ui_close(void)
     endwin();
 }
 
-char*
-ui_readline(void)
-{
-    return inp_readline();
-}
-
 void
 ui_page_up(void)
 {
diff --git a/src/ui/inputwin.h b/src/ui/inputwin.h
index 25faba38..7a45afde 100644
--- a/src/ui/inputwin.h
+++ b/src/ui/inputwin.h
@@ -40,7 +40,6 @@
 #define INP_WIN_MAX 1000
 
 void create_input_window(void);
-char* inp_readline(void);
 void inp_nonblocking(gboolean reset);
 void inp_close(void);
 void inp_win_clear(void);
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 70c02da0..388f37ed 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -85,6 +85,8 @@ void chatwin_outgoing_carbon(ProfChatWin *chatwin, const char *const message);
 void chatwin_contact_online(ProfChatWin *chatwin, Resource *resource, GDateTime *last_activity);
 void chatwin_contact_offline(ProfChatWin *chatwin, char *resource, char *status);
 
+char* inp_readline(void);
+
 void ui_handle_otr_error(const char *const barejid, const char *const message);
 
 unsigned long ui_get_idle_time(void);
@@ -228,7 +230,6 @@ void ui_update_presence(const resource_presence_t resource_presence,
     const char *const message, const char *const show);
 void ui_statusbar_new(const int win);
 
-char* ui_readline(void);
 void ui_input_clear(void);
 void ui_input_nonblocking(gboolean);
 void ui_write(char *line, int offset);
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index 39f4445a..c71780bb 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -313,7 +313,7 @@ void ui_update_presence(const resource_presence_t resource_presence,
     const char * const message, const char * const show) {}
 void ui_statusbar_new(const int win) {}
 
-char*  ui_readline(void)
+char* inp_readline(void)
 {
     return NULL;
 }