Linus Nielsen Feltzing | da0525f | 2006-07-18 13:54:12 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2006 Sebastian Henriksen, Hardeep Sidhu |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * 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 Feltzing | da0525f | 2006-07-18 13:54:12 +0000 | [diff] [blame] | 16 | * |
| 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 | |
| 24 | /* |
| 25 | * View list of playlists in catalog. |
| 26 | * ret : true if no error |
| 27 | */ |
| 28 | bool catalog_view_playlists(void); |
| 29 | |
| 30 | /* |
| 31 | * Add something to a playlist (new or select from list of playlists in |
| 32 | * catalog). |
| 33 | * sel : the path of the music file, playlist or directory to add |
| 34 | * sel_attr : the attributes that tell what type of file we're adding |
| 35 | * new_playlist : whether we want to create a new playlist or add to an |
| 36 | * existing one. |
Jonathan Gordon | 517aca8 | 2008-05-04 13:01:16 +0000 | [diff] [blame] | 37 | * m3u8name : filename to save the playlist to, NULL to show the keyboard |
Linus Nielsen Feltzing | da0525f | 2006-07-18 13:54:12 +0000 | [diff] [blame] | 38 | * ret : true if the file was successfully added |
| 39 | */ |
Steve Bavin | ad95df2 | 2008-05-12 17:52:50 +0000 | [diff] [blame] | 40 | bool catalog_add_to_a_playlist(const char* sel, int sel_attr, |
Jonathan Gordon | 517aca8 | 2008-05-04 13:01:16 +0000 | [diff] [blame] | 41 | bool new_playlist, char* m3u8name); |
Linus Nielsen Feltzing | da0525f | 2006-07-18 13:54:12 +0000 | [diff] [blame] | 42 | |
| 43 | #endif |