Redo my previous segfault fix in a better way.
[Rockbox.git] / apps / recorder / albumart.h
blobfebad282815dd0f0279ac92e73942d2f6fd4b1eb
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Nicolas Pennequin
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef _ALBUMART_H_
21 #define _ALBUMART_H_
23 #ifdef HAVE_ALBUMART
25 #include <stdbool.h>
26 #include "id3.h"
27 #include "gwps.h"
29 /* Look for albumart bitmap in the same dir as the track and in its parent dir.
30 * Stores the found filename in the buf parameter.
31 * Returns true if a bitmap was found, false otherwise */
32 bool find_albumart(const struct mp3entry *id3, char *buf, int buflen);
34 /* Draw the album art bitmap from the given handle ID onto the given WPS.
35 Call with clear = true to clear the bitmap instead of drawing it. */
36 void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear);
38 bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
39 char *buf, int buflen);
41 #endif /* HAVE_ALBUMART */
43 #endif /* _ALBUMART_H_ */