78 #ifndef ti_sysbios_heaps_HeapCallback__include 79 #define ti_sysbios_heaps_HeapCallback__include 93 #define ti_sysbios_heaps_HeapCallback_long_names 94 #include "HeapCallback_defs.h" 108 #define ti_sysbios_heaps_HeapCallback_Handle_upCast(handle) ((IHeap_Handle)(handle)) 117 typedef void * (*HeapCallback_AllocInstFxn)(uintptr_t context,
size_t size,
size_t align);
187 } HeapCallback_Module_State;
198 extern void HeapCallback_free(HeapCallback_Handle handle,
void * buf,
size_t size);
297 return ((HeapCallback_Handle)str);
306 extern void HeapCallback_init(
void);
307 #define HeapCallback_module ((HeapCallback_Module_State *) &(HeapCallback_Module_state)) 317 #undef ti_sysbios_heaps_HeapCallback_long_names 318 #include "HeapCallback_defs.h" void HeapCallback_destruct(HeapCallback_Struct *obj)
Destruct a HeapCallback heap.
HeapCallback_Handle HeapCallback_construct(HeapCallback_Struct *obj, const HeapCallback_Params *params)
Construct a HeapCallback heap.
Static and run-time memory manager.
HeapCallback_Struct HeapCallback_Object
Definition: HeapCallback.h:182
void(* HeapCallback_FreeInstFxn)(uintptr_t context, void *addr, size_t size)
Instance free callback function signature.
Definition: HeapCallback.h:142
bool HeapCallback_isBlocking(HeapCallback_Handle handle)
Can this heap block the caller.
struct HeapCallback_Struct * HeapCallback_Handle
HeapCallback_Handle HeapCallback_Object_first(void)
return handle of the first HeapCallback on HeapCallback list
Opaque queue element.
Definition: Queue.h:204
IHeap_Object iheap
Definition: HeapCallback.h:177
uintptr_t arg
User supplied argument for the user supplied create function.
Definition: HeapCallback.h:173
static HeapCallback_Handle HeapCallback_handle(HeapCallback_Struct *str)
Definition: HeapCallback.h:295
uintptr_t(* HeapCallback_CreateInstFxn)(uintptr_t arg)
Instance create callback function signature.
Definition: HeapCallback.h:126
uintptr_t context
Definition: HeapCallback.h:179
void HeapCallback_free(HeapCallback_Handle handle, void *buf, size_t size)
Free a block of memory back to the heap.
void(* HeapCallback_DeleteInstFxn)(uintptr_t context)
Instance delete callback function signature.
Definition: HeapCallback.h:134
Error block.
Definition: Error.h:152
bool(* HeapCallback_IsBlockingInstFxn)(uintptr_t context)
Instance isblocking callback function signature.
Definition: HeapCallback.h:158
void HeapCallback_Params_init(HeapCallback_Params *prms)
Initialize the HeapCallback_Params structure with default values.
void(* HeapCallback_GetStatsInstFxn)(uintptr_t context, Memory_Stats *stats)
Instance getStats callback function signature.
Definition: HeapCallback.h:150
HeapCallback_Handle HeapCallback_create(const HeapCallback_Params *params, Error_Block *eb)
Create a HeapCallback heap.
Definition: HeapCallback.h:176
Definition: HeapCallback.h:160
Interface to heap functions.
static HeapCallback_Struct * HeapCallback_struct(HeapCallback_Handle h)
Definition: HeapCallback.h:300
void HeapCallback_getStats(HeapCallback_Handle handle, Memory_Stats *stats)
get memory stats for a HeapCallback object
Memory heap statistics.
Definition: Memory.h:94
HeapCallback_Handle HeapCallback_Object_next(HeapCallback_Handle heap)
return handle of the next HeapCallback on HeapCallback list
Queue_Elem objElem
Definition: HeapCallback.h:178
void HeapCallback_delete(HeapCallback_Handle *handle)
Delete a HeapCallback heap.
void * HeapCallback_alloc(HeapCallback_Handle handle, size_t size, size_t align, Error_Block *eb)
Allocate a block of memory from the heap.