aboutsummaryrefslogblamecommitdiffstats
path: root/src/screen_browser.h
blob: 3ebcff20a7f2423efa266c312887df3d4e8f0725 (plain) (tree)
1
2
3
4
5
6





                                           







                                                                     
                                                                               




                                                         



                                                     















                                                              
struct screen_browser {
	struct list_window *lw;
	struct list_window_state *lw_state;

	mpdclient_filelist_t *filelist;
};

void clear_highlights(mpdclient_filelist_t *filelist);
void sync_highlights(mpdclient_t *c, mpdclient_filelist_t *filelist);
void set_highlight(mpdclient_filelist_t *filelist, 
		   mpd_Song *song, 
		   int highlight);


const char *browse_lw_callback(unsigned index, int *highlight, void *filelist);

int browse_handle_select(screen_t *screen, 
			 mpdclient_t *c,
			 list_window_t *lw,
			 mpdclient_filelist_t *filelist);
int browse_handle_select_all (screen_t *screen, 
		     mpdclient_t *c,
		     list_window_t *lw,
		     mpdclient_filelist_t *filelist);
int browse_handle_enter(screen_t *screen, 
			mpdclient_t *c,
			list_window_t *lw,
			mpdclient_filelist_t *filelist);

#ifdef HAVE_GETMOUSE
int browse_handle_mouse_event(screen_t *screen, 
			      mpdclient_t *c,
			      list_window_t *lw,
			      mpdclient_filelist_t *filelist);
#else
#define browse_handle_mouse_event(s,c,lw,filelist) (0)
#endif