lib: make graph API const-correct
[babeltrace.git] / include / babeltrace / graph / component-sink-internal.h
index c1e7a4548eac51fe9817d890d3e6b94c8cbfb95b..a5880fef22f84d02a97bfb701c2282d0bb861d4f 100644 (file)
@@ -1,9 +1,7 @@
-#ifndef BABELTRACE_COMPONENT_SINK_INTERNAL_H
-#define BABELTRACE_COMPONENT_SINK_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H
+#define BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H
 
 /*
- * BabelTrace - Sink Component internal
- *
  * Copyright 2015 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-sink.h>
+#include <babeltrace/compiler-internal.h>
+#include <babeltrace/graph/component-sink-const.h>
 #include <babeltrace/graph/component-internal.h>
 #include <babeltrace/graph/component-class-internal.h>
 
-struct bt_value;
-
-//typedef uint32_t notification_mask_t;
-
 struct bt_component_sink {
        struct bt_component parent;
 };
 
-/**
- * Allocate a sink component.
- *
- * @param class                        Component class
- * @param params               A dictionary of component parameters
- * @returns                    A sink component instance
- */
 BT_HIDDEN
 struct bt_component *bt_component_sink_create(
-               struct bt_component_class *class);
+               const struct bt_component_class *class);
 
 BT_HIDDEN
 void bt_component_sink_destroy(struct bt_component *component);
 
-/**
- * Process one event, consuming from sources as needed.
- *
- * @param component    Component instance
- * @returns            One of #bt_component_status values
- */
-BT_HIDDEN
-enum bt_component_status bt_component_sink_consume(
-               struct bt_component *component);
-
-#endif /* BABELTRACE_COMPONENT_SINK_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H */
This page took 0.024568 seconds and 4 git commands to generate.