lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / component-filter-internal.h
index 15db1bb6b97f724e214c18235c32d564080ec101..79a7b0003749a9a3b01ff45dd9e8af92a2067b21 100644 (file)
@@ -1,9 +1,7 @@
-#ifndef BABELTRACE_COMPONENT_FILTER_INTERNAL_H
-#define BABELTRACE_COMPONENT_FILTER_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H
+#define BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H
 
 /*
- * BabelTrace - Filter Component Internal
- *
  * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
  */
 
 #include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/graph/component-filter-const.h>
 #include <babeltrace/graph/component-internal.h>
 #include <babeltrace/graph/component-class-internal.h>
 
-struct bt_value;
-
 struct bt_component_filter {
        struct bt_component parent;
 };
 
-/**
- * Allocate a filter component.
- *
- * @param class                        Component class
- * @param params               A dictionary of component parameters
- * @returns                    A filter component instance
- */
 BT_HIDDEN
 struct bt_component *bt_component_filter_create(
-               struct bt_component_class *class, struct bt_value *params);
+               const struct bt_component_class *class);
 
 BT_HIDDEN
 void bt_component_filter_destroy(struct bt_component *component);
 
-/**
- * Validate a filter component.
- *
- * @param component            Filter component instance to validate
- * @returns                    One of #bt_component_status
- */
-BT_HIDDEN
-enum bt_component_status bt_component_filter_validate(
-               struct bt_component *component);
-
-#endif /* BABELTRACE_COMPONENT_FILTER_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H */
This page took 0.023591 seconds and 4 git commands to generate.