Notification iterator: transform precondition checks to BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / graph / private-connection.h
index 9d3d39c4c8dca3044e2308bb2db63d7d04048dc6..e62c1e36da917692bf711c5588fb14c048b051e6 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_PRIVATE_CONNECTION_H
-#define BABELTRACE_COMPONENT_PRIVATE_CONNECTION_H
+#ifndef BABELTRACE_GRAPH_PRIVATE_CONNECTION_H
+#define BABELTRACE_GRAPH_PRIVATE_CONNECTION_H
 
 /*
  * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+/* For enum bt_notification_type */
 #include <babeltrace/graph/notification.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+struct bt_notification;
 struct bt_connection;
 struct bt_private_port;
 struct bt_private_connection;
+struct bt_notification_iterator;
 
-struct bt_connection *bt_connection_from_private_connection(
+extern struct bt_connection *bt_connection_from_private(
                struct bt_private_connection *private_connection);
 
-extern struct bt_notification_iterator *
+extern enum bt_connection_status
 bt_private_connection_create_notification_iterator(
                struct bt_private_connection *private_connection,
-               const enum bt_notification_type *notification_types);
+               struct bt_notification_iterator **iterator);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* BABELTRACE_COMPONENT_PRIVATE_CONNECTION_H */
+#endif /* BABELTRACE_GRAPH_PRIVATE_CONNECTION_H */
This page took 0.024833 seconds and 4 git commands to generate.