
#ifndef __MEMCTL_H__
#define __MEMCTL_H__


#include <swilib.h>

#ifdef __cplusplus
extern "C" {
#endif




void *memoryAlloc(int _pid, size_t size);
void *memoryRealloc(int _pid, void *_ptr, size_t size);
int memoryFree(int _pid, void *ptr);

int free_ws(int pid, WSHDR *ws);
WSHDR *alloc_ws(int pid, size_t size);



#ifdef __cplusplus
}
#endif

#endif
