1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2009 by Andrew Mahone
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.
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.
22 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
23 * KIND, either express or implied.
25 ****************************************************************************/
27 #ifndef _LIB_WRAPPERS_H_
28 #define _LIB_WRAPPERS_H_
34 #define close rb->close
36 #define lseek rb->lseek
37 #define memset rb->memset
38 #ifdef HAVE_ADJUSTABLE_CPU_FREQ
39 #ifdef CPU_BOOST_LOGGING
40 #define cpu_boost_ rb->cpu_boost_
42 #define cpu_boost rb->cpu_boost
45 #define yield rb->yield
46 #define file_exists rb->file_exists
47 #define snprintf rb->snprintf
48 #define strcat rb->strcat
49 #define strchr rb->strchr
50 #define strcmp rb->strcmp
51 #define strcpy rb->strcpy
52 #define strip_extension rb->strip_extension
53 #define strlen rb->strlen
54 #define strlcpy rb->strlcpy
55 #define strrchr rb->strrchr