diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-24 04:09:29 +0000 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-24 04:09:29 +0000 |
| commit | 7215a67e643d4266d7f9702a66fb93f84cb5ff67 (patch) | |
| tree | f8dbf8dd49ac6a7c66ec168ef6d75b654358145b /apps/plugins | |
| parent | b0befadad1d9ec691ba647b948422e66a43f3674 (diff) | |
| download | rockbox-7215a67e643d4266d7f9702a66fb93f84cb5ff67.zip rockbox-7215a67e643d4266d7f9702a66fb93f84cb5ff67.tar.gz rockbox-7215a67e643d4266d7f9702a66fb93f84cb5ff67.tar.bz2 rockbox-7215a67e643d4266d7f9702a66fb93f84cb5ff67.tar.xz | |
albumart search in pluginlib when building without HAVE_ALBUMART (for later use by pictureflow)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19835 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/lib/SOURCES | 3 | ||||
| -rw-r--r-- | apps/plugins/lib/pluginlib_albumart.c | 27 | ||||
| -rw-r--r-- | apps/plugins/lib/wrappers.h | 13 |
3 files changed, 43 insertions, 0 deletions
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES index c906136..e99a449 100644 --- a/apps/plugins/lib/SOURCES +++ b/apps/plugins/lib/SOURCES @@ -51,4 +51,7 @@ helper.c #ifdef HAVE_TOUCHSCREEN touchscreen.c #endif +#ifndef HAVE_ALBUMART +pluginlib_albumart.c +#endif md5.c diff --git a/apps/plugins/lib/pluginlib_albumart.c b/apps/plugins/lib/pluginlib_albumart.c new file mode 100644 index 0000000..25c6716 --- /dev/null +++ b/apps/plugins/lib/pluginlib_albumart.c @@ -0,0 +1,27 @@ +/*************************************************************************** +* __________ __ ___. +* Open \______ \ ____ ____ | | _\_ |__ _______ ___ +* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +* \/ \/ \/ \/ \/ +* $Id$ +* +* Copyright (C) 2009 by Andrew Mahone +* +* This is a wrapper for the core albumart.c +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +* KIND, either express or implied. +* +****************************************************************************/ + +#include <plugin.h> +#include "wrappers.h" + +#include "../../recorder/albumart.c" diff --git a/apps/plugins/lib/wrappers.h b/apps/plugins/lib/wrappers.h index 385cd5d..bb904ff 100644 --- a/apps/plugins/lib/wrappers.h +++ b/apps/plugins/lib/wrappers.h @@ -27,6 +27,9 @@ #ifndef _LIB_WRAPPERS_H_ #define _LIB_WRAPPERS_H_ +#define DEBUG_H +#define __SPRINTF_H__ + #define open rb->open #define close rb->close #define read rb->read @@ -36,6 +39,16 @@ #define cpu_boost rb->cpu_boost #endif #define yield rb->yield +#define file_exists rb->file_exists +#define snprintf rb->snprintf +#define strcat rb->strcat +#define strchr rb->strchr +#define strcmp rb->strcmp +#define strcpy rb->strcpy +#define strip_extension rb->strip_extension +#define strlen rb->strlen +#define strncpy rb->strncpy +#define strrchr rb->strrchr #endif |