(v13) device_init initialize a device
This page applies to Harlequin v13.1r0 and later; and to Harlequin Core but not Harlequin MultiRIP
int32 device_init ( DEVICELIST * dev );
This routine is called when the DeviceType
parameter is set for a given device (with set_param
, described in (v13) set_param set a device parameter
This is done once for each device, and will be the first call to any of the device routines for that device.
It should return 0
if the device was initialized successfully, and -1
if it could not be initialized. Note that not successfully initializing may be a fatal error in some circumstances; for example, the %os%
device must function for the Harlequin Core to work correctly.
The %os%
device is always the first to be initialized with this call.