Mercurial > mplayer.hg
annotate gui/win32/playlist.h @ 29588:17d7ae586d03
Reduce code duplication for half/normal/double video size handling.
author | reimar |
---|---|
date | Wed, 02 Sep 2009 14:02:15 +0000 |
parents | 9e739bdb049c |
children | 844786b8f768 |
rev | line source |
---|---|
23077 | 1 /* |
23079 | 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> | |
6 * | |
7 * This file is part of MPlayer. | |
8 * | |
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. | |
13 * | |
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. | |
18 * | |
26457 | 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 | |
23079 | 22 */ |
23077 | 23 |
26029 | 24 #ifndef MPLAYER_GUI_PLAYLIST_H |
25 #define MPLAYER_GUI_PLAYLIST_H | |
23077 | 26 |
26136
a8eb9fd1ac21
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
27 #include <windows.h> |
a8eb9fd1ac21
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
28 |
23077 | 29 typedef struct |
30 { | |
31 char *filename; | |
32 char *artist; | |
33 char *title; | |
34 int duration; | |
35 } pl_track_t; | |
36 | |
37 typedef struct playlist_t playlist_t; | |
38 struct playlist_t | |
39 { | |
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); | |
51 }; | |
52 | |
53 #define SORT_BYFILENAME 1 | |
54 #define SORT_BYARTIST 2 | |
55 #define SORT_BYTITLE 3 | |
56 #define SORT_BYDURATION 4 | |
57 | |
28051 | 58 playlist_t *create_playlist(void); |
59 BOOL adddirtoplaylist(playlist_t *playlist, const char* path, BOOL recursive); | |
23077 | 60 |
26029 | 61 #endif /* MPLAYER_GUI_PLAYLIST_H */ |