Remove bt_component_set_error_stream
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 24 Feb 2016 23:02:00 +0000 (18:02 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 16:57:26 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/plugin/component-internal.h
include/babeltrace/plugin/component.h
lib/plugin-system/component.c

index eb088d9b7048f870c6f2a913fdcb1ca7841ed729..aacef39b0c0e48c2596c212ddb6e31fff73c17f0 100644 (file)
@@ -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;
 
index 5dc0e3903ac5186f25590b63dadc9a04ad66165d..3a59d627358edba1ec2b117e3cad452fe6114a05 100644 (file)
@@ -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
index 5cfbbf0e3403e9d2d7f87b4f562864a04e168c66..667601e1b7ea08190e7543565a7803d8c85906bf 100644 (file)
@@ -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;
This page took 0.027929 seconds and 4 git commands to generate.