lib: add sink component class's "graph is configured" method
[babeltrace.git] / include / babeltrace / graph / component-sink-internal.h
index 34c899c15ec5bbb94f606ed5ecc028e1a1614786..164b96356b3c9cf071f089fbdcb947734fcdda8b 100644 (file)
@@ -2,12 +2,9 @@
 #define BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H
 
 /*
- * BabelTrace - Sink Component internal
- *
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
  */
 
 #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;
+       bool graph_is_configured_method_called;
 };
 
-/**
- * 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_GRAPH_COMPONENT_SINK_INTERNAL_H */
This page took 0.025549 seconds and 4 git commands to generate.