Code

colors, utils: use g_list_free_full(g_free)
[ncmpc.git] / src / screen_file.h
index a7199a62e0c2fbeb53cc8e937fcba9f9fb44cd20..ededa09eca01d52714074d800ee145d858682e9a 100644 (file)
@@ -1,7 +1,33 @@
+/* ncmpc (Ncurses MPD Client)
+ * (c) 2004-2017 The Music Player Daemon Project
+ * Project homepage: http://musicpd.org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
-void file_set_highlight(mpd_client_t *c, mpd_Song *song, int hightlight);
-void file_clear_highlights(mpd_client_t *c);
+#ifndef NCMPC_SCREEN_FILE_H
+#define NCMPC_SCREEN_FILE_H
 
-list_window_t *get_filelist_window(void);
+#include <stdbool.h>
 
-screen_functions_t *get_screen_file(void);
+struct mpdclient;
+struct mpd_song;
+
+extern const struct screen_functions screen_browse;
+
+bool
+screen_file_goto_song(struct mpdclient *c, const struct mpd_song *song);
+
+#endif