include/babeltrace/graph: fix some include guards
[babeltrace.git] / include / babeltrace / graph / private-component-filter.h
index 51944afd3c1c2b99b2cc6e9a0c72157f9f2eeef7..4431bffdeb8ff3e3a669acebe30a37e482f015d0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_PRIVATE_COMPONENT_SINK_H
-#define BABELTRACE_COMPONENT_PRIVATE_COMPONENT_SINK_H
+#ifndef BABELTRACE_GRAPH_PRIVATE_COMPONENT_FILTER_H
+#define BABELTRACE_GRAPH_PRIVATE_COMPONENT_FILTER_H
 
 /*
  * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
  */
 
 #include <stdint.h>
-#include <babeltrace/graph/component.h>
+
+/* For enum bt_component_status */
+#include <babeltrace/graph/component-status.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+struct bt_component;
 struct bt_private_component;
 struct bt_private_port;
 
@@ -42,14 +45,11 @@ extern struct bt_private_port *
 bt_private_component_filter_get_output_private_port_by_index(
                struct bt_private_component *private_component, uint64_t index);
 
-extern struct bt_private_port *
-bt_private_component_filter_get_default_output_private_port(
-               struct bt_private_component *private_component);
-
-extern struct bt_private_port *
+extern enum bt_component_status
 bt_private_component_filter_add_output_private_port(
                struct bt_private_component *private_component,
-               const char *name);
+               const char *name, void *user_data,
+               struct bt_private_port **private_port);
 
 extern struct bt_private_port *
 bt_private_component_filter_get_input_private_port_by_name(
@@ -60,17 +60,14 @@ extern struct bt_private_port *
 bt_private_component_filter_get_input_private_port_by_index(
                struct bt_private_component *private_component, uint64_t index);
 
-extern struct bt_private_port *
-bt_private_component_filter_get_default_input_private_port(
-               struct bt_private_component *private_component);
-
-extern struct bt_private_port *
+extern enum bt_component_status
 bt_private_component_filter_add_input_private_port(
                struct bt_private_component *private_component,
-               const char *name);
+               const char *name, void *user_data,
+               struct bt_private_port **private_port);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* BABELTRACE_COMPONENT_PRIVATE_COMPONENT_SINK_H */
+#endif /* BABELTRACE_GRAPH_PRIVATE_COMPONENT_FILTER_H */
This page took 0.024146 seconds and 4 git commands to generate.