2013-06-29 06:37:03 +04:00
|
|
|
|
|
|
|
#ifndef _LIBMEM_C
|
|
|
|
#define _LIBMEM_C
|
|
|
|
|
2021-02-27 19:38:03 +03:00
|
|
|
void *
|
2013-06-29 06:37:03 +04:00
|
|
|
libmem_init(unsigned int addr, int bytes);
|
|
|
|
void
|
2021-02-27 19:38:03 +03:00
|
|
|
libmem_deinit(void *aself);
|
2013-06-29 06:37:03 +04:00
|
|
|
unsigned int
|
2021-02-27 19:38:03 +03:00
|
|
|
libmem_alloc(void *obj, int bytes);
|
2013-06-29 06:37:03 +04:00
|
|
|
int
|
2021-02-27 19:38:03 +03:00
|
|
|
libmem_free(void *obj, unsigned int addr);
|
2013-06-29 06:37:03 +04:00
|
|
|
int
|
2021-02-27 19:38:03 +03:00
|
|
|
libmem_set_flags(void *obj, int flags);
|
2013-06-29 06:37:03 +04:00
|
|
|
int
|
2021-02-27 19:38:03 +03:00
|
|
|
libmem_clear_flags(void *obj, int flags);
|
2013-08-24 04:03:55 +04:00
|
|
|
int
|
2021-02-27 19:38:03 +03:00
|
|
|
libmem_get_alloced_bytes(void *obj);
|
2013-06-29 06:37:03 +04:00
|
|
|
|
|
|
|
#endif
|