Make bt_private_component_*_add_*_port() return a status code
[babeltrace.git] / include / babeltrace / graph / private-component-sink.h
index db3e71f1d7a109854e7171577713b346c2a20c96..b122b5b931ac869a056880cabaaa30861ee5efbf 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_SINK_H
+#define BABELTRACE_GRAPH_PRIVATE_COMPONENT_SINK_H
 
 /*
  * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
@@ -25,6 +25,7 @@
 
 #include <stdint.h>
 #include <babeltrace/graph/component.h>
+#include <babeltrace/graph/component-status.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -42,17 +43,14 @@ extern struct bt_private_port *
 bt_private_component_sink_get_input_private_port_by_index(
                struct bt_private_component *private_component, uint64_t index);
 
-extern struct bt_private_port *
-bt_private_component_sink_get_default_input_private_port(
-               struct bt_private_component *private_component);
-
-extern struct bt_private_port *
+extern enum bt_component_status
 bt_private_component_sink_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_SINK_H */
This page took 0.02541 seconds and 4 git commands to generate.