Plugin directory
This page applies to Harlequin v13.1r0 and later; and to Harlequin MultiRIP but not Harlequin Core
The plugin directory can have any name provided that it is unique. Its name is usually similar to the plugin's executable, but this is not a requirement.
The plugin can determine the full path of the directory from which the executable is loaded in two ways:
- Use the field
d_plgDir
in thedeviceDefinition
structure. - Use the fields
d_SWDir
andd_plgDir
in thedeviceDefinition
structure which are passed to thePLUGIN
function.
Note: The deviceDefinition
structure is not passed to the RIPCALL
functions in CoreModule
plugins.
- The plugin can access data files by concatenating their names to the values of
d_SWDir
andd_plgDir
. The values include a terminating directory separator.
- Using the
SELECT_DEV_DIRECTORY
entry of thes_param
array in thedevSelectDeviceParam
structure passed to theD_SELECT_DEVICE
selector call. For example: pSelDevParam->s_param[SELECT_DEV_DIRECTORY]
Again, this value includes a terminating directory separator.