OpenDOF Project
Data Fields
DOSCallbacks::DOSApplicationCallbacks_t Struct Reference

The application interface structure. More...

Data Fields

void *(*const Alloc )(uint16 size, DOSMemoryHint hint)
 Allocate memory.
 
void(*const Free )(void *ptr, DOSMemoryHint hint)
 Free (deallocate) memory.
 
void(*const GenerateRandom )(uint8 *buf, uint16 size)
 Generate random data into a buffer.
 
void(*const Remove )(DOSOperation op)
 Indicate that a saved operation is being removed (it was either cancelled or is complete).
 
void(*const StartTimer )(void)
 Start the application timing functionality.
 

Detailed Description

The application interface structure.

This interface is implemented by the application, and is responsible for providing the COS with necessary application functionality. This interface also provides the application with information for its own state management. The application may choose a variety of strategies to implement this functionality. The application should provide a mechanism for memory allocation, a pseudo-random number generator, and timing.

core-c-cos Version 7.0.1 Build 0
2018-02-08