extern "C" {
#endif
-/*
- * Plugin interface's version, not synced with Babeltrace's version
- * (internal use).
- */
-#define __BT_PLUGIN_VERSION_MAJOR 1
-#define __BT_PLUGIN_VERSION_MINOR 0
-
/* Plugin initialization function type */
typedef enum bt_plugin_initialize_func_status {
BT_PLUGIN_INITIALIZE_FUNC_STATUS_OK = __BT_FUNC_STATUS_OK,
/* Plugin descriptor: describes a single plugin (internal use) */
struct __bt_plugin_descriptor {
- /* Plugin's interface major version number */
- uint32_t major;
-
- /* Plugin's interface minor version number */
- uint32_t minor;
-
/* Plugin's name */
const char *name;
} __attribute__((packed));
*/
#define BT_PLUGIN_WITH_ID(_id, _name) \
struct __bt_plugin_descriptor __bt_plugin_descriptor_##_id = { \
- .major = __BT_PLUGIN_VERSION_MAJOR, \
- .minor = __BT_PLUGIN_VERSION_MINOR, \
.name = _name, \
}; \
static struct __bt_plugin_descriptor const * const __bt_plugin_descriptor_##_id##_ptr __BT_PLUGIN_DESCRIPTOR_ATTRS = &__bt_plugin_descriptor_##_id
continue;
}
- BT_LOGI("Creating plugin object for plugin: "
- "name=\"%s\", abi-major=%d, abi-minor=%d",
- descriptor->name, descriptor->major, descriptor->minor);
-
- if (descriptor->major > __BT_PLUGIN_VERSION_MAJOR) {
- if (fail_on_load_error) {
- BT_LIB_LOGW_APPEND_CAUSE(
- "Unknown ABI major version: abi-major=%d",
- descriptor->major);
- status = BT_FUNC_STATUS_ERROR;
- goto error;
- } else {
- BT_LIB_LOGW(
- "Unknown ABI major version: abi-major=%d",
- descriptor->major);
- continue;
- }
- }
-
+ BT_LOGI("Creating plugin object for plugin: name=\"%s\"",
+ descriptor->name);
plugin = bt_plugin_so_create_empty(shared_lib_handle);
if (!plugin) {
BT_LIB_LOGE_APPEND_CAUSE(