diff options
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/buffer.h | 46 | ||||
-rw-r--r-- | firmware/include/malloc.h | 26 |
2 files changed, 46 insertions, 26 deletions
diff --git a/firmware/include/buffer.h b/firmware/include/buffer.h new file mode 100644 index 0000000000..18f53f0000 --- /dev/null +++ b/firmware/include/buffer.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Linus Nielsen Feltzing | ||
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 | #ifndef BUFFER_H | ||
22 | #define BUFFER_H | ||
23 | |||
24 | #include "config.h" | ||
25 | /* defined in linker script */ | ||
26 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | ||
27 | #if defined(IPOD_VIDEO) | ||
28 | extern unsigned char *audiobufend_lds[]; | ||
29 | unsigned char *audiobufend; | ||
30 | #else | ||
31 | extern unsigned char audiobufend[]; | ||
32 | #endif | ||
33 | #else | ||
34 | extern unsigned char *audiobufend; | ||
35 | #endif | ||
36 | |||
37 | extern unsigned char *audiobuf; | ||
38 | |||
39 | void buffer_init(void) INIT_ATTR; | ||
40 | void *buffer_alloc(size_t size); | ||
41 | |||
42 | #ifdef BUFFER_ALLOC_DEBUG | ||
43 | void buffer_alloc_check(char *name); | ||
44 | #endif | ||
45 | |||
46 | #endif | ||
diff --git a/firmware/include/malloc.h b/firmware/include/malloc.h deleted file mode 100644 index 639675787a..0000000000 --- a/firmware/include/malloc.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* malloc.h -- header file for memory routines. */ | ||
2 | |||
3 | #ifndef _INCLUDE_MALLOC_H_ | ||
4 | #define _INCLUDE_MALLOC_H_ | ||
5 | |||
6 | #include <_ansi.h> | ||
7 | |||
8 | #define __need_size_t | ||
9 | #include <stddef.h> | ||
10 | |||
11 | #ifdef __cplusplus | ||
12 | extern "C" { | ||
13 | #endif | ||
14 | |||
15 | /* The routines. */ | ||
16 | |||
17 | extern _PTR malloc _PARAMS ((size_t)); | ||
18 | extern _VOID free _PARAMS ((_PTR)); | ||
19 | extern _PTR realloc _PARAMS ((_PTR, size_t)); | ||
20 | extern _PTR calloc _PARAMS ((size_t, size_t)); | ||
21 | |||
22 | #ifdef __cplusplus | ||
23 | } | ||
24 | #endif | ||
25 | |||
26 | #endif /* _INCLUDE_MALLOC_H_ */ | ||