summaryrefslogtreecommitdiff
path: root/firmware/playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/playlist.h')
-rw-r--r--firmware/playlist.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/firmware/playlist.h b/firmware/playlist.h
deleted file mode 100644
index fbc1a03c2b..0000000000
--- a/firmware/playlist.h
+++ /dev/null
@@ -1,63 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by wavey@wavey.org
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef __PLAYLIST_H__
21#define __PLAYLIST_H__
22
23#include "common/track.h"
24
25/* playlist data */
26
27typedef struct
28{
29 char filename[256]; /* path name of m3u playlist on disk */
30 int *indices; /* array of indices into the playlist */
31 int indices_count; /* current size of indices array */
32 int index; /* index of current track within playlist */
33} playlist_info_t;
34
35int persist_playlist_info( void );
36int reload_playlist_info( playlist_info_t *playlist );
37void read_entire_file( char *buf, const char *filename );
38void load_playlist( playlist_info_t *playlist, const char *filename );
39void extract_playlist_indices( char *buf, playlist_info_t *playlist );
40void display_current_playlist( playlist_info_t *playlist );
41void get_indices_as_string( char *string, playlist_info_t *playlist );
42void empty_playlist( playlist_info_t *playlist );
43track_t next_playlist_track( playlist_info_t *playlist );
44void display_playlist_track( track_t *track );
45void add_indices_to_playlist( playlist_info_t *playlist );
46void extend_indices( playlist_info_t *playlist, int new_index );
47void randomise_playlist( playlist_info_t *playlist, unsigned int seed );
48int is_unused_random_in_list( int number, int *original_list, int count );
49
50/**********/
51
52
53
54
55
56
57int create_playlist( void );
58/*int add_to_playlist( track_t *track );*/
59int remove_from_playlist( int index );
60int set_playlist_position( void );
61/*track_t * get_previous_entry_in_playlist( void );*/
62
63#endif /* __PLAYLIST_H__ */