Don't rebuild the dependency file on 'make reconf'. Build type and target won't chang...
[kugel-rb.git] / apps / plugins / lib / feature_wrappers.h
blob52750acb61d7827175994f277504e5f567736a9b
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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
31 * available.
33 #ifdef HAVE_ALBUMART
34 #define search_albumart_files rb->search_albumart_files
35 #endif
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
40 * such images.
42 #if LCD_DEPTH > 1
43 #define scaled_read_bmp_file rb->read_bmp_file
44 #else
45 #define scaled_read_bmp_file read_bmp_file
46 #endif
48 #endif