morapi_DeviceCB Struct Reference
Callback functions for device.
More...
#include <morapi_softneuro.h>
Public Types
typedef void *(* | morapi_Create_DeviceCB) (morapi_Env *env) |
typedef morapi_Result(* | morapi_Destroy_DeviceCB) (morapi_Env *env, void *self) |
typedef morapi_Result(* | morapi_DeviceCB_Init) (void *self, morapi_Device *io_device) |
typedef morapi_Result(* | morapi_DeviceCB_Cleanup) (void *self) |
Public Member Functions
morapi_Result | morapi_DeviceCB_clear (morapi_DeviceCB *self) |
Data Fields
morapi_Create_DeviceCB | create |
morapi_Destroy_DeviceCB | destroy |
morapi_DeviceCB_Init | init |
morapi_DeviceCB_Cleanup | cleanup |
Detailed Description
Callback functions for device.
See also
Member Typedef Documentation
morapi_Create_DeviceCB
typedef void*(* morapi_Create_DeviceCB) (morapi_Env *env)
Create a device callbacks object.
Parameters
- env : environment where the object will be created
morapi_Destroy_DeviceCB
typedef morapi_Result(* morapi_Destroy_DeviceCB) (morapi_Env *env, void *self)
Destroy the device callbacks object.
Parameters
- env : environment where the object was created
- self : device callbacks object to be destroyed
morapi_DeviceCB_Init
typedef morapi_Result(* morapi_DeviceCB_Init) (void *self, morapi_Device *io_device)
Initialize the device callbacks object.
Parameters
- self : device callbacks object
- io_device : device object
morapi_DeviceCB_Cleanup
typedef morapi_Result(* morapi_DeviceCB_Cleanup) (void *self)
Clean up the device callbacks object.
Parameters
- self : device callbacks object
Member Function Documentation
morapi_DeviceCB_clear()
morapi_Result morapi_DeviceCB_clear (morapi_DeviceCB * self)
Clears the callback functions.
Parameters
- self : device callbacks object
Field Documentation
create
morapi_Create_DeviceCB create
Create a device object.
destroy
morapi_Destroy_DeviceCB destroy
Destroys the device object.
init
morapi_DeviceCB_Init init
Initializes the device object.
cleanup
morapi_DeviceCB_Cleanup cleanup
Cleans up the device object.