blob: 2e317128b7d9685243a5612de2fce5268bb8c4d0 [file] [log] [blame]
Linus Nielsen Feltzingda0525f2006-07-18 13:54:12 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 Sebastian Henriksen, Hardeep Sidhu
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Linus Nielsen Feltzingda0525f2006-07-18 13:54:12 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef _PLAYLIST_CATALOG_H_
22#define _PLAYLIST_CATALOG_H_
23
Jonathan Gordon97a4c1e2011-07-20 14:11:15 +000024/* Gets the configured playlist catalog dir */
25const char* catalog_get_directory(void);
26
27/* Set the playlist catalog dir */
28void catalog_set_directory(const char* directory);
29
Linus Nielsen Feltzingda0525f2006-07-18 13:54:12 +000030/*
31 * View list of playlists in catalog.
32 * ret : true if no error
33 */
34bool catalog_view_playlists(void);
35
36/*
37 * Add something to a playlist (new or select from list of playlists in
38 * catalog).
39 * sel : the path of the music file, playlist or directory to add
40 * sel_attr : the attributes that tell what type of file we're adding
41 * new_playlist : whether we want to create a new playlist or add to an
42 * existing one.
Jonathan Gordon517aca82008-05-04 13:01:16 +000043 * m3u8name : filename to save the playlist to, NULL to show the keyboard
Linus Nielsen Feltzingda0525f2006-07-18 13:54:12 +000044 * ret : true if the file was successfully added
45 */
Steve Bavinad95df22008-05-12 17:52:50 +000046bool catalog_add_to_a_playlist(const char* sel, int sel_attr,
Jonathan Gordon517aca82008-05-04 13:01:16 +000047 bool new_playlist, char* m3u8name);
Linus Nielsen Feltzingda0525f2006-07-18 13:54:12 +000048
49#endif