summaryrefslogtreecommitdiff
path: root/firmware/include/core_alloc.h
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-19 20:12:52 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-19 20:12:52 +0000
commitfdc29d0ea4fbdd2cc1509a53122be7ec85cdb432 (patch)
tree3855b7ea3a288059458b847b4bdfabd5c48ccce4 /firmware/include/core_alloc.h
parent7d61376ef80bc6ac7a817201729ee1e612625ef6 (diff)
downloadrockbox-fdc29d0ea4fbdd2cc1509a53122be7ec85cdb432.tar.gz
rockbox-fdc29d0ea4fbdd2cc1509a53122be7ec85cdb432.zip
Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31370 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/core_alloc.h')
-rw-r--r--firmware/include/core_alloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/include/core_alloc.h b/firmware/include/core_alloc.h
index 0ac7e5b73d..d234947db1 100644
--- a/firmware/include/core_alloc.h
+++ b/firmware/include/core_alloc.h
@@ -3,12 +3,13 @@
3#define __CORE_ALLOC_H__ 3#define __CORE_ALLOC_H__
4#include <string.h> 4#include <string.h>
5#include <stdbool.h> 5#include <stdbool.h>
6#include "config.h"
6#include "buflib.h" 7#include "buflib.h"
7 8
8/* All functions below are wrappers for functions in buflib.h, except 9/* All functions below are wrappers for functions in buflib.h, except
9 * they have a predefined context 10 * they have a predefined context
10 */ 11 */
11void core_allocator_init(void); 12void core_allocator_init(void) INIT_ATTR;
12int core_alloc(const char* name, size_t size); 13int core_alloc(const char* name, size_t size);
13int core_alloc_ex(const char* name, size_t size, struct buflib_callbacks *ops); 14int core_alloc_ex(const char* name, size_t size, struct buflib_callbacks *ops);
14int core_alloc_maximum(const char* name, size_t *size, struct buflib_callbacks *ops); 15int core_alloc_maximum(const char* name, size_t *size, struct buflib_callbacks *ops);