-/**
- * Plug-ins are owned by bt_component_factory and the bt_component_class-es
- * it provides. This means that its lifetime bound by either the component
- * factory's, or the concrete components' lifetime which may be in use and which
- * have hold a reference to their bt_component_class which, in turn, have a
- * reference to their plugin.
- *
- * This ensures that a plugin's library is not closed while it is being used
- * even if the bt_component_factory, which created its components, is destroyed.
- */
+struct bt_plugin_shared_lib_handle {
+ struct bt_object base;
+ GString *path;
+ GModule *module;
+
+ /* True if initialization function was called */
+ bool init_called;
+ bt_plugin_exit_func exit;
+};
+