diff options
author | James Booth <boothj5@gmail.com> | 2013-12-19 21:05:39 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-12-19 21:05:39 +0000 |
commit | d56f6dc39b002e16966354b0ad98cf7801260e0c (patch) | |
tree | 07480d1c9e14084dbfc5345a00fc002419ef50d9 /src/ui | |
parent | b27c5d0f5baa7161231642b14106db2e96065f95 (diff) | |
download | profani-tty-d56f6dc39b002e16966354b0ad98cf7801260e0c.tar.gz |
Added mocks and stubs for cons_show
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 5 | ||||
-rw-r--r-- | src/ui/ui.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 00e891db..43313dd1 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -85,8 +85,8 @@ cons_debug(const char * const msg, ...) } } -void -cons_show(const char * const msg, ...) +static void +_cons_show(const char * const msg, ...) { ProfWin *console = wins_get_console(); va_list arg; @@ -99,6 +99,7 @@ cons_show(const char * const msg, ...) va_end(arg); wins_refresh_console(); } +void (*cons_show)(const char * const, ...) = _cons_show; void cons_show_error(const char * const msg, ...) diff --git a/src/ui/ui.h b/src/ui/ui.h index f6bb98ac..539146b7 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -149,7 +149,7 @@ void title_bar_set_typing(gboolean is_typing); void title_bar_draw(void); // console window actions -void cons_show(const char * const msg, ...); +void (*cons_show)(const char * const msg, ...); void cons_about(void); void cons_help(void); void cons_basic_help(void); |