Next: , Up: Writing Plugins   [Contents]


7.1 Plugin Lifecycle

  1. Scan (runlevel 0). The service opens every shared module under the plugin directory (files whose name ends with the platform module suffix, e.g. .so). Each module must export stcs_plugin_get_info. The returned STCSPluginInfo supplies a unique name, a category, and a version. The module is then closed; only the metadata and path are kept.
  2. Instantiate (config parse). When XML references plugin="that-name", the service reloads the module, resolves stcs_plugin_create, and expects a GObject of the right base type (STCSTransport, STCSReader, STCSWriter, or STCSTransform).
  3. Configure. The core calls the class configure vfunc with the plugin’s XML subtree (and, for readers/writers, a datapoint lookup callback).

Duplicate plugin names abort the scan. A missing stcs_plugin_get_info symbol is a hard error for that file.