1 /*
2 * $Id$
3 *
4 * (c) 2004 by Kalle Wallin <kaw@linux.se>
5 * Copyright (C) 2008 Max Kellermann <max@duempel.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
22 #ifndef SCREEN_BROWSER_H
23 #define SCREEN_BROWSER_H
25 #include "screen.h"
26 #include "mpdclient.h"
27 #include "config.h"
29 #include <stdbool.h>
31 struct list_window;
32 struct list_window_state;
34 struct screen_browser {
35 struct list_window *lw;
37 mpdclient_filelist_t *filelist;
38 };
40 void
41 sync_highlights(mpdclient_t *c, mpdclient_filelist_t *fl);
43 void
44 browser_playlist_changed(struct screen_browser *browser, mpdclient_t *c,
45 int event, gpointer data);
47 const char *browser_lw_callback(unsigned index, int *highlight, void *filelist);
49 int
50 browser_change_directory(struct screen_browser *browser, mpdclient_t *c,
51 filelist_entry_t *entry, const char *new_path);
53 bool
54 browser_cmd(struct screen_browser *browser, struct screen *screen,
55 struct mpdclient *c, command_t cmd);
57 #endif