diff options
Diffstat (limited to 'apps/plugins/lib/wrappers.h')
-rw-r--r-- | apps/plugins/lib/wrappers.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/apps/plugins/lib/wrappers.h b/apps/plugins/lib/wrappers.h new file mode 100644 index 0000000000..2eb4ea025e --- /dev/null +++ b/apps/plugins/lib/wrappers.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2009 by Andrew Mahone | ||
11 | * | ||
12 | * This header redefines some core functions as calls via the plugin_api, to | ||
13 | * allow easy compilation of core source files in the pluginlib with different | ||
14 | * features from the version built for the core, or when a core object file is | ||
15 | * not built for a particular target. | ||
16 | * | ||
17 | * This program is free software; you can redistribute it and/or | ||
18 | * modify it under the terms of the GNU General Public License | ||
19 | * as published by the Free Software Foundation; either version 2 | ||
20 | * of the License, or (at your option) any later version. | ||
21 | * | ||
22 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
23 | * KIND, either express or implied. | ||
24 | * | ||
25 | ****************************************************************************/ | ||
26 | |||
27 | #ifndef _LIB_WRAPPERS_H_ | ||
28 | #define _LIB_WRAPPERS_H_ | ||
29 | |||
30 | #define open rb->open | ||
31 | #define close rb->close | ||
32 | #define read rb->read | ||
33 | #define lseek rb->lseek | ||
34 | #define memset rb->memset | ||
35 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
36 | #define cpu_boost rb->cpu_boost | ||
37 | #endif | ||
38 | #define yield rb->yield | ||
39 | #if CONFIG_CODEC == SWCODEC | ||
40 | #define align_buffer rb->align_buffer | ||
41 | #endif | ||
42 | |||
43 | #endif | ||
44 | |||