forked from len0rd/rockbox
Add core_get_data_pinned(), use it where possible
Change-Id: I1b2f62f27780f99423085d2fffc972ea2701f998
This commit is contained in:
parent
9e53d5541f
commit
67cb2e3cdc
3 changed files with 19 additions and 6 deletions
|
@ -45,6 +45,18 @@ static inline void* core_get_data(int handle)
|
|||
return buflib_get_data(&core_ctx, handle);
|
||||
}
|
||||
|
||||
static inline void* core_get_data_pinned(int handle)
|
||||
{
|
||||
extern struct buflib_context core_ctx;
|
||||
return buflib_get_data_pinned(&core_ctx, handle);
|
||||
}
|
||||
|
||||
static inline void core_put_data_pinned(void *data)
|
||||
{
|
||||
extern struct buflib_context core_ctx;
|
||||
buflib_put_data_pinned(&core_ctx, data);
|
||||
}
|
||||
|
||||
/* core context chunk_alloc */
|
||||
static inline bool core_chunk_alloc_init(struct chunk_alloc_header *hdr,
|
||||
size_t chunk_size, size_t max_chunks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue