From: Max Kellermann Date: Fri, 25 Dec 2009 10:44:46 +0000 (+0100) Subject: screen_browser: export screen_browser_paint_directory() X-Git-Tag: release-0.16~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f98c6f343b4f09b90685bfeb93b9ed0b2edb1cd1;p=ncmpc.git screen_browser: export screen_browser_paint_directory() --- diff --git a/src/screen_browser.c b/src/screen_browser.c index 50769b8..b11c48d 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -485,7 +485,7 @@ browser_cmd(struct screen_browser *browser, return false; } -static void +void screen_browser_paint_directory(WINDOW *w, unsigned width, bool selected, const char *name) { diff --git a/src/screen_browser.h b/src/screen_browser.h index 8589e75..ba2ad3b 100644 --- a/src/screen_browser.h +++ b/src/screen_browser.h @@ -25,6 +25,12 @@ #include +#ifdef HAVE_NCURSESW_NCURSES_H +#include +#else +#include +#endif + struct mpdclient; struct mpdclient_playlist; struct filelist; @@ -54,6 +60,10 @@ screen_browser_sync_highlights(G_GNUC_UNUSED struct filelist *fl, #endif +void +screen_browser_paint_directory(WINDOW *w, unsigned width, + bool selected, const char *name); + void screen_browser_paint(const struct screen_browser *browser);