lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / component-filter-internal.h
index 38a1a240acc9f8942bc004580f9d1521d5b74412..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);
+               const struct bt_component_class *class);
 
 BT_HIDDEN
 void bt_component_filter_destroy(struct bt_component *component);
 
-#endif /* BABELTRACE_COMPONENT_FILTER_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H */
This page took 0.023677 seconds and 4 git commands to generate.