Configure needs AS to be set for the Makefiles.
[mplayer/glamo.git] / gui / win32 / playlist.h
blob8a3fddd41ccbff2b27652be6718f0767a679b54d
1 /*
2 * MPlayer GUI for Win32
3 * Copyright (C) 2003 Sascha Sommer <saschasommer@freenet.de>
4 * Copyright (C) 2006 Erik Augustson <erik_27can@yahoo.com>
5 * Copyright (C) 2006 Gianluigi Tiesi <sherpya@netfarm.it>
7 * This file is part of MPlayer.
9 * MPlayer is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * MPlayer is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #ifndef MPLAYER_GUI_PLAYLIST_H
25 #define MPLAYER_GUI_PLAYLIST_H
27 #include <windows.h>
29 typedef struct
31 char *filename;
32 char *artist;
33 char *title;
34 int duration;
35 } pl_track_t;
37 typedef struct playlist_t playlist_t;
38 struct playlist_t
40 int current; /* currently used track */
41 int trackcount; /* number of tracknumber */
42 pl_track_t **tracks; /* tracklist */
43 void (*add_track)(playlist_t* playlist, const char *filename, const char *artist, const char *title, int duration);
44 void (*remove_track)(playlist_t* playlist, int number);
45 void (*moveup_track)(playlist_t* playlist, int number);
46 void (*movedown_track)(playlist_t* playlist, int number);
47 void (*dump_playlist)(playlist_t* playlist);
48 void (*sort_playlist)(playlist_t* playlist, int opt);
49 void (*clear_playlist)(playlist_t* playlist);
50 void (*free_playlist)(playlist_t* playlist);
53 #define SORT_BYFILENAME 1
54 #define SORT_BYARTIST 2
55 #define SORT_BYTITLE 3
56 #define SORT_BYDURATION 4
58 playlist_t *create_playlist(void);
59 BOOL adddirtoplaylist(playlist_t *playlist, const char* path, BOOL recursive);
61 #endif /* MPLAYER_GUI_PLAYLIST_H */