(v13) 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_plgDirin thedeviceDefinitionstructure. - Use the fields
d_SWDirandd_plgDirin thedeviceDefinitionstructure which are passed to thePLUGINfunction.
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_SWDirandd_plgDir. The values include a terminating directory separator.
- Using the
SELECT_DEV_DIRECTORYentry of thes_paramarray in thedevSelectDeviceParamstructure passed to theD_SELECT_DEVICEselector call. For example: pSelDevParam->s_param[SELECT_DEV_DIRECTORY]
Again, this value includes a terminating directory separator.