2016-05-24 07:27:26 +00:00
|
|
|
/* Copyright 2016 secXsQuared
|
|
|
|
* Distributed under GPL license
|
|
|
|
* See COPYING under root for details
|
|
|
|
*/
|
|
|
|
|
2018-01-26 08:43:22 +00:00
|
|
|
#ifndef _LIB_SALLOC_H_
|
|
|
|
#define _LIB_SALLOC_H_
|
2016-05-17 19:03:18 +00:00
|
|
|
|
2018-01-26 08:43:22 +00:00
|
|
|
#include "type.h"
|
2016-05-17 19:03:18 +00:00
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
void KABI lb_salloc_init(void *base, uint32_t size);
|
2016-05-17 19:03:18 +00:00
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
void* KABI lb_salloc(void *base, uint32_t size);
|
2016-05-24 07:10:32 +00:00
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
void KABI lb_sfree(void *base, void *ptr);
|
2016-05-24 07:10:32 +00:00
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
bool KABI lb_salloc_assert(void *base, uint32_t *blk_size, bool *blk_free, uint32_t size);
|
2016-05-17 19:03:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|