A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 59 lines 1.9 kB view raw
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 DEBUG_H 31#define __SPRINTF_H__ 32 33#define open rb->open 34#define close rb->close 35#define read rb->read 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_ 41#else 42#define cpu_boost rb->cpu_boost 43#endif 44#endif 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 56#define fix_path_part rb->fix_path_part 57 58#endif 59