From: Jérémie Galarneau Date: Wed, 24 Feb 2016 23:02:00 +0000 (-0500) Subject: Remove bt_component_set_error_stream X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ed50c44d395eac6e75648b4435d3a8798d5dc54e;p=deliverable%2Fbabeltrace.git Remove bt_component_set_error_stream Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/plugin/component-internal.h b/include/babeltrace/plugin/component-internal.h index eb088d9b7..aacef39b0 100644 --- a/include/babeltrace/plugin/component-internal.h +++ b/include/babeltrace/plugin/component-internal.h @@ -39,8 +39,6 @@ struct bt_component { struct bt_object base; struct bt_component_class *class; GString *name; - /** No ownership of stream taken */ - FILE *error_stream; /** Source, Sink or Filter destroy */ bt_component_destroy_cb destroy; diff --git a/include/babeltrace/plugin/component.h b/include/babeltrace/plugin/component.h index 5dc0e3903..3a59d6273 100644 --- a/include/babeltrace/plugin/component.h +++ b/include/babeltrace/plugin/component.h @@ -98,16 +98,6 @@ extern enum bt_component_status bt_component_set_name( extern struct bt_component_class *bt_component_get_class( struct bt_component *component); -/** - * Set component instance's error stream. - * - * @param component Component instance - * @param error_stream Error stream - * @returns One of #bt_component_status values - */ -extern enum bt_component_status bt_component_set_error_stream( - struct bt_component *component, FILE *error_stream); - #ifdef __cplusplus } #endif diff --git a/lib/plugin-system/component.c b/lib/plugin-system/component.c index 5cfbbf0e3..667601e1b 100644 --- a/lib/plugin-system/component.c +++ b/lib/plugin-system/component.c @@ -175,21 +175,6 @@ struct bt_component_class *bt_component_get_class( return component ? bt_get(component->class) : NULL; } -enum bt_component_status bt_component_set_error_stream( - struct bt_component *component, FILE *stream) -{ - enum bt_component_status ret = BT_COMPONENT_STATUS_OK; - - if (!component) { - ret = BT_COMPONENT_STATUS_INVAL; - goto end; - } - - component->error_stream = stream; -end: - return ret; -} - void *bt_component_get_private_data(struct bt_component *component) { return component ? component->user_data : NULL;