1 /*                                                     -*- linux-c -*-
2     Copyright (C) 2004 Tom Szilagyi
3 
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8 
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18     $Id: store_cdda.h 1236 2012-02-04 10:28:58Z assworth $
19 */
20 
21 #ifndef AQUALUNG_STORE_CDDA_H
22 #define AQUALUNG_STORE_CDDA_H
23 
24 #include <glib.h>
25 #include <gdk/gdk.h>
26 #include <gtk/gtk.h>
27 
28 #include "cdda.h"
29 
30 
31 void create_cdda_node(void);
32 int store_cdda_iter_is_track(GtkTreeIter * iter);
33 void store_cdda_iter_addlist_defmode(GtkTreeIter * ms_iter, GtkTreeIter * pl_iter, int new_tab);
34 void store_cdda_selection_changed(GtkTreeIter * iter, GtkTextBuffer * buffer, GtkLabel * statusbar);
35 gboolean store_cdda_event_cb(GdkEvent * event, GtkTreeIter * iter, GtkTreePath * path);
36 void store_cdda_load_icons(void);
37 void store_cdda_create_popup_menu(void);
38 
39 gboolean store_cdda_remove_track(GtkTreeIter * iter);
40 gboolean store_cdda_remove_record(GtkTreeIter * iter);
41 
42 void cdda_record_auto_query_cddb(GtkTreeIter * drive_iter);
43 
44 void cdda_add_to_playlist(GtkTreeIter * iter_drive, unsigned long hash);
45 void cdda_remove_from_playlist(cdda_drive_t * drive);
46 
47 typedef struct {
48 	char * path;
49 	float duration;
50 } cdda_track_t;
51 
52 
53 #endif /* AQUALUNG_STORE_CDDA_H */
54 
55 // vim: shiftwidth=8:tabstop=8:softtabstop=8 :
56