1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2009 by Andrew Mahone
12 * This defines wrappers for some features which are used differently depending
13 * on how the target was built, primarily because of core features being accesed
14 * via pluginlib on targets where they are missing from core.
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
24 ****************************************************************************/
26 #ifndef _LIB_FEATURE_WRAPPERS_H_
27 #define _LIB_FEATURE_WRAPPERS_H_
29 /* search_albumart_files is only available in core with HAVE_ALBUMART defined,
30 * but can easily be implement in pluginlib as long as the database is
34 #define search_albumart_files rb->search_albumart_files
37 /* This should only be used when loading scaled bitmaps, or using custom output
38 * plugins. The pluginlib loader does not support loading bitmaps unscaled in
39 * native format, so rb->read_bmp_file should always be used directly to load
43 #define scaled_read_bmp_file rb->read_bmp_file
45 #define scaled_read_bmp_file read_bmp_file