forked from len0rd/rockbox
cleanup for core-file-in-pluginlib compilation:
wrapper C files in pluginlib renamed to the same name as the core files they wrap pluginlib-only init functions for resize and bmp moved into the wrapper files, and declared in the associated header files API() macro removed entirely, in favor of a core-only header file that redefines core function names to use a plugin_api pointer some unnecessary uses of PLUGIN in apps/recorder/bmp.c removed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19712 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c38815aa29
commit
07e982df8a
11 changed files with 107 additions and 66 deletions
|
@ -8,6 +8,7 @@
|
|||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2006 by Antoine Cellerier <dionoea -at- videolan -dot- org>
|
||||
* Copyright (C) 2009 by Andrew Mahone
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -26,6 +27,7 @@
|
|||
#include "lcd.h"
|
||||
#include "system.h"
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
#define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff
|
||||
#define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff
|
||||
|
@ -119,3 +121,16 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst)
|
|||
yr += yrstep;
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
#include "wrappers.h"
|
||||
|
||||
static const struct plugin_api *rb;
|
||||
|
||||
#include "../../recorder/bmp.c"
|
||||
|
||||
void bmp_init(const struct plugin_api *api)
|
||||
{
|
||||
rb = api;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue