diff options
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r-- | apps/plugins/lib/feature_wrappers.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/apps/plugins/lib/feature_wrappers.h b/apps/plugins/lib/feature_wrappers.h new file mode 100644 index 0000000000..52750acb61 --- /dev/null +++ b/apps/plugins/lib/feature_wrappers.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2009 by Andrew Mahone | ||
11 | * | ||
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. | ||
15 | * | ||
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. | ||
20 | * | ||
21 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
22 | * KIND, either express or implied. | ||
23 | * | ||
24 | ****************************************************************************/ | ||
25 | |||
26 | #ifndef _LIB_FEATURE_WRAPPERS_H_ | ||
27 | #define _LIB_FEATURE_WRAPPERS_H_ | ||
28 | |||
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. | ||
32 | */ | ||
33 | #ifdef HAVE_ALBUMART | ||
34 | #define search_albumart_files rb->search_albumart_files | ||
35 | #endif | ||
36 | |||
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. | ||
41 | */ | ||
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 | ||
47 | |||
48 | #endif | ||
49 | |||