X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fcomponent%2Fcomponent-internal.h;h=dadaa75b22665b93a54bc2d7eda4f6fb95c6cfdc;hb=d3e4dcd8e7a601e0aa063455147f29fbe051582b;hp=7c18f494d1fd28b000f916657ae3e22aadbe5844;hpb=d1b057f5b2954339b0b48fdc5973ec59a641f5a9;p=babeltrace.git diff --git a/include/babeltrace/component/component-internal.h b/include/babeltrace/component/component-internal.h index 7c18f494..dadaa75b 100644 --- a/include/babeltrace/component/component-internal.h +++ b/include/babeltrace/component/component-internal.h @@ -38,12 +38,15 @@ struct bt_component { struct bt_object base; struct bt_component_class *class; GString *name; - /** Source, Sink or Filter destroy */ - bt_component_destroy_cb destroy; - /** User-defined data and its destruction callback */ + /** + * Internal destroy function specific to a source, filter, or + * sink component object. + */ + bt_component_class_destroy_method destroy; + + /** User-defined data */ void *user_data; - bt_component_destroy_cb user_destroy; /** * Used to protect operations which may only be used during @@ -54,10 +57,7 @@ struct bt_component { BT_HIDDEN enum bt_component_status bt_component_init(struct bt_component *component, - bt_component_destroy_cb destroy); - -BT_HIDDEN -enum bt_component_type bt_component_get_type(struct bt_component *component); + bt_component_class_destroy_method destroy); BT_HIDDEN struct bt_notification_iterator *bt_component_create_iterator(