lib: pass config objects to component init methods
[babeltrace.git] / src / plugins / ctf / fs-sink / fs-sink.h
index 7a740bc2a40e8ac91548b9b852b9a690bdd83c05..9f39c2963c6f0361dde26d66444db7c5b367b88c 100644 (file)
  * SOFTWARE.
  */
 
-#include "common/babeltrace.h"
+#include "common/macros.h"
 #include <babeltrace2/babeltrace.h>
 #include <stdbool.h>
 #include <glib.h>
 
 struct fs_sink_comp {
-       bt_self_component_sink *self_comp;
+       bt_logging_level log_level;
+       bt_self_component *self_comp;
 
        /* Owned by this */
        bt_self_component_port_input_message_iterator *upstream_iter;
@@ -65,17 +66,18 @@ struct fs_sink_comp {
 };
 
 BT_HIDDEN
-bt_self_component_status ctf_fs_sink_init(
+bt_component_class_init_method_status ctf_fs_sink_init(
                bt_self_component_sink *component,
+               bt_self_component_sink_configuration *config,
                const bt_value *params,
                void *init_method_data);
 
 BT_HIDDEN
-bt_self_component_status ctf_fs_sink_consume(
+bt_component_class_sink_consume_method_status ctf_fs_sink_consume(
                bt_self_component_sink *component);
 
 BT_HIDDEN
-bt_self_component_status ctf_fs_sink_graph_is_configured(
+bt_component_class_sink_graph_is_configured_method_status ctf_fs_sink_graph_is_configured(
                bt_self_component_sink *component);
 
 BT_HIDDEN
This page took 0.023682 seconds and 4 git commands to generate.