annotate gui/win32/playlist.h @ 36440:019636d54771

Add support for Nios-II architecture. Patch by Ezequiel Garc«ża [ezequiel vanguardiasur com.ar].
author reimar
date Fri, 06 Dec 2013 19:37:07 +0000
parents e2e7d9d88063
children 92e53547406d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1 /*
23079
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
2 * MPlayer GUI for Win32
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
3 * Copyright (C) 2003 Sascha Sommer <saschasommer@freenet.de>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
4 * Copyright (C) 2006 Erik Augustson <erik_27can@yahoo.com>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
5 * Copyright (C) 2006 Gianluigi Tiesi <sherpya@netfarm.it>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
6 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
7 * This file is part of MPlayer.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
8 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
9 * MPlayer is free software; you can redistribute it and/or modify
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
10 * it under the terms of the GNU General Public License as published by
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
12 * (at your option) any later version.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
13 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
14 * MPlayer is distributed in the hope that it will be useful,
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
17 * GNU General Public License for more details.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
18 *
26457
9ba6d4487292 Use standard GPL header.
diego
parents: 26136
diff changeset
19 * You should have received a copy of the GNU General Public License along
9ba6d4487292 Use standard GPL header.
diego
parents: 26136
diff changeset
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
9ba6d4487292 Use standard GPL header.
diego
parents: 26136
diff changeset
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23079
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
22 */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
24 #ifndef MPLAYER_GUI_PLAYLIST_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
25 #define MPLAYER_GUI_PLAYLIST_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 char *filename;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 char *artist;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 char *title;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 int duration;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 } pl_track_t;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 typedef struct playlist_t playlist_t;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 struct playlist_t
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 int current; /* currently used track */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 int trackcount; /* number of tracknumber */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 pl_track_t **tracks; /* tracklist */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 void (*add_track)(playlist_t* playlist, const char *filename, const char *artist, const char *title, int duration);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 void (*remove_track)(playlist_t* playlist, int number);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 void (*moveup_track)(playlist_t* playlist, int number);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 void (*movedown_track)(playlist_t* playlist, int number);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 void (*dump_playlist)(playlist_t* playlist);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 void (*sort_playlist)(playlist_t* playlist, int opt);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 void (*clear_playlist)(playlist_t* playlist);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 void (*free_playlist)(playlist_t* playlist);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 };
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 #define SORT_BYFILENAME 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 #define SORT_BYARTIST 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 #define SORT_BYTITLE 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 #define SORT_BYDURATION 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55
28051
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26457
diff changeset
56 playlist_t *create_playlist(void);
33854
e2e7d9d88063 win32 gui: replace C99 bool type by int
diego
parents: 33800
diff changeset
57 int adddirtoplaylist(playlist_t *playlist, const char* path, int recursive);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
59 #endif /* MPLAYER_GUI_PLAYLIST_H */