Code

screen_browser: export screen_browser_paint_directory()
authorMax Kellermann <max@duempel.org>
Fri, 25 Dec 2009 10:44:46 +0000 (11:44 +0100)
committerMax Kellermann <max@duempel.org>
Fri, 25 Dec 2009 10:44:46 +0000 (11:44 +0100)
src/screen_browser.c
src/screen_browser.h

index 50769b88a911c13dfdd27c9618329b004a4062ad..b11c48da91b590a4fbb408b576173666991f8d1f 100644 (file)
@@ -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)
 {
index 8589e75f6855ee502d7f6185b0a2c76ab2220560..ba2ad3bad895ec7125827059983a7587ed07ce6b 100644 (file)
 
 #include <stdbool.h>
 
+#ifdef HAVE_NCURSESW_NCURSES_H
+#include <ncursesw/ncurses.h>
+#else
+#include <ncurses.h>
+#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);