Add support for loading multiple extension libs#152
Conversation
| #include "RestuneParser.h" | ||
|
|
||
| static void* extensionsLibHandle = nullptr; | ||
| #define MAX_EXTENSION_LIB_HANDLES 32 |
There was a problem hiding this comment.
lets keep 3 as default here and take it from property
There was a problem hiding this comment.
There is a conflict b/w loading extensions or reading properties first
For common Properties: Yes we can keep the value as an attribute in the common PropertiesConfig.yaml file and read from there.
However, fetching this value from custom PropertiesConfig.yaml (if override is provided) could result in circular logic, since we allow through the extension interface (plugins), the capability to the user to provide their own PropertiesConfig.yaml (kept in any arbitrary location), via the RESTUNE_REGISTER_CONFIG. To handle such scenarios we need to load the extension libs first, and that is what we are doing currently.
Example: https://github.com/qualcomm/userspace-resource-manager/blob/main/tests/Utils/Setup.cpp
There was a problem hiding this comment.
lets keep this property in common property file
No description provided.