X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fcomponent-class-internal.h;h=efdf991b520283b58d72e287c01d9798cc710f24;hb=38b48196e2b127cceb022056bb22a15086644e10;hp=48cb3d9d34d942bc1876b4bf800f123cac2dd2ab;hpb=fc11e32c19c33b4aaf901055b49005fb19a6400e;p=babeltrace.git diff --git a/include/babeltrace/plugin/component-class-internal.h b/include/babeltrace/plugin/component-class-internal.h index 48cb3d9d..efdf991b 100644 --- a/include/babeltrace/plugin/component-class-internal.h +++ b/include/babeltrace/plugin/component-class-internal.h @@ -37,6 +37,7 @@ struct bt_component_class { enum bt_component_type type; GString *name; struct bt_plugin *plugin; + bt_component_init_cb init; }; BT_HIDDEN @@ -45,7 +46,8 @@ int bt_component_class_init( const char *name); BT_HIDDEN -int bt_component_class_set_plugin(struct bt_component_class *class, +struct bt_component_class *bt_component_class_create( + enum bt_component_type type, const char *name, struct bt_plugin *plugin); #endif /* BABELTRACE_PLUGIN_COMPONENT_CLASS_INTERNAL_H */