The Plug-in Manager provides methods for loading plug-ins that are then available to the Speect Engine and all other loaded plug-ins. Loaded plug-ins are chached for reuse.
s_pm_load_plugin | Load a plug-in from the given path. |
s_pm_get_plugin_path | Get the full plug-in path from the given path. |
Load a plug-in from the given path.
If the plug-in at the given path has already been loaded, then the plug-in library’s reference counter is increased and a pointer to the loaded library is set in the returned plug-in. This reduces the need for multiple redundant calls. If the given path does not include any path separators (just a file name) then the path is concatenated with the default plug-in path.
Parameters: |
|
---|---|
Return: | Pointer to the loaded plug-in. |
Note: | The returned plug-in can be normally deleted with S_DELETE. Thread safe. |
See also
Get the full plug-in path from the given path.
If the given path does not include any path separators (just a file name) then the path is concatenated with the default plug-in path.
Parameters: |
|
---|---|
Return: | The full plug-in path |
Note: | The caller is responsible for the memory of the returned string. |
See also