Skip to content

Conversation

@andreidanila1
Copy link
Contributor

  1. Core plugin-to-device reference mechanism (setDevice() method)
    • Enables plugins to access other plugins through their parent device instance
    • Provides safe alternative to unsafe parent() casting for inter-plugin communication
    • Developer responsibility: ensure target plugin is in required state (connected/loaded) and verify plugin priority requirements before access
  2. getCompatiblePluginByName() helper method in PluginRepository
    • Retrieves a specific plugin by name from compatible plugins for a given device URI and category
    • Returns a new plugin instance without device parent association, requiring manual setup if needed

Add setDevice() method to Plugin interface and PluginBase implementation.
Add getPluginByName() method to DeviceImpl for plugin discovery.
Call setDevice() during plugin loading in DeviceImpl::loadPlugins().

Signed-off-by: andreidanila1 <andrei.danila@analog.com>
Add helper method to retrieve a specific plugin by name from the list of
compatible plugins for a given device parameter and category.

Signed-off-by: andreidanila1 <andrei.danila@analog.com>
@andreidanila1 andreidanila1 marked this pull request as ready for review November 18, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants