Initialize a module's private data
static int init( input_module_t *pModule );
This function initializes the data structure pointed to by pModule. It's invoked by the Input Runtime System during startup before the module is linked into an event bus.
This function should allocate and initialize any private data in the data structure.
See any module.
Your code
Safety: | |
---|---|
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |