summaryrefslogtreecommitdiff
path: root/firmware/export/load_code.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-08-27 00:16:26 +0000
committerThomas Martitz <kugel@rockbox.org>2010-08-27 00:16:26 +0000
commit97d2a6ec5ca8ace8daed29c8c69aab9595147b3a (patch)
tree8f67645f080416576b9356dfc4385b8181eeb152 /firmware/export/load_code.h
parent73f057be6fcb849d5379073267e21e9526576ccd (diff)
downloadrockbox-97d2a6ec5ca8ace8daed29c8c69aab9595147b3a.tar.gz
rockbox-97d2a6ec5ca8ace8daed29c8c69aab9595147b3a.zip
Revert "Introduce a small api for loading code (codecs,plugins) from disk/memory."
I don't understand the build error at all, plugin_bss_start is clearly defined in plugin.lds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27901 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/load_code.h')
-rw-r--r--firmware/export/load_code.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/firmware/export/load_code.h b/firmware/export/load_code.h
deleted file mode 100644
index f4fa8f9b46..0000000000
--- a/firmware/export/load_code.h
+++ /dev/null
@@ -1,55 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 by Thomas Martitz
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22
23#include "config.h"
24
25#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
26#include "system.h"
27
28extern void *lc_open(const char *filename, char *buf, size_t buf_size);
29/* header is always at the beginning of the blob, and handle actually points
30 * to the start of the blob */
31static inline char *lc_open_from_mem(void* addr, size_t blob_size)
32{
33 (void)blob_size;
34 cpucache_invalidate();
35 return addr;
36}
37static inline void *lc_get_header(void *handle) { return handle; }
38/* no need to do anything */
39static inline void lc_close(void *handle) { (void)handle; }
40
41#elif (CONFIG_PLATFORM & PLATFORM_HOSTED)
42
43/* don't call these directly for loading code
44 * they're to be wrapped by platform specific functions */
45extern void *_lc_open(const char *filename, char *buf, size_t buf_size);
46extern void *_lc_get_header(void *handle);
47extern void _lc_close(void *handle);
48
49extern void *lc_open(const char *filename, char *buf, size_t buf_size);
50/* not possiible on hosted platforms */
51extern void *lc_open_from_mem(void *addr, size_t blob_size);
52extern void *lc_get_header(void *handle);
53extern void lc_close(void *handle);
54extern const char* lc_last_error(void);
55#endif