Make bt_private_connection_create_notification_iterator() return a status code
[babeltrace.git] / include / babeltrace / graph / private-connection.h
index 76294604caa33d18ebad5ec5a472db4a3aa40c6b..ea44d932481f1fec2243a7b41a04d8a4250e4a87 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>
@@ -23,6 +23,9 @@
  * SOFTWARE.
  */
 
+#include <babeltrace/graph/connection.h>
+#include <babeltrace/graph/notification.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -34,12 +37,14 @@ struct bt_private_connection;
 struct bt_connection *bt_connection_from_private_connection(
                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);
+               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.024311 seconds and 4 git commands to generate.