-
In some cases, load order can be important for plugins. For example, if you're registering a new architecture you may wish to register the architecture with the elf view. How do you control that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First, if you're writing python, you might have to rely on some trickery. Python plugins are loaded en-masse by the Python Plugin Loader and you probably want to set up the imports such that whichever plugin loads first, it can trigger the other plugin to be loaded before resuming the rest of its loading. Second, if you're writing native (C++, or Rust) plugins, you'll want to use the AddRequiredPluginDependency or AddOptionalPluginDependency APIs (or their rust equivalents). Check out the example under Project Setup in the developer documentation for instance. Right now there's no way (and not expected to be one in the foreseeable future) to specify dependencies between Python and Native / or native. |
Beta Was this translation helpful? Give feedback.
First, if you're writing python, you might have to rely on some trickery. Python plugins are loaded en-masse by the Python Plugin Loader and you probably want to set up the imports such that whichever plugin loads first, it can trigger the other plugin to be loaded before resuming the rest of its loading.
Second, if you're writing native (C++, or Rust) plugins, you'll want to use the AddRequiredPluginDependency or AddOptionalPluginDependency APIs (or their rust equivalents).
Check out the example under Project Setup in the developer documentation for instance.
Right now there's no way (and not expected to be one in the foreseeable future) to specify dependencies between Python and Native …