lib: make the "port connected" method return a status
[babeltrace.git] / include / babeltrace / graph / component-class.h
index acad8eec14389191a247a275fb1d1d020615707c..3b1d6965c750573e8de500eebbba0a75fc27ba02 100644 (file)
@@ -39,6 +39,9 @@
 /* For bt_bool */
 #include <babeltrace/types.h>
 
+/* For bt_notification_array */
+#include <babeltrace/graph/notification.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -68,11 +71,6 @@ enum bt_component_class_type {
        BT_COMPONENT_CLASS_TYPE_FILTER =        2,
 };
 
-struct bt_notification_iterator_next_method_return {
-       struct bt_notification *notification;
-       enum bt_notification_iterator_status status;
-};
-
 struct bt_component_class_query_method_return {
        struct bt_value *result;
        enum bt_query_status status;
@@ -93,9 +91,11 @@ typedef enum bt_notification_iterator_status
 typedef void (*bt_component_class_notification_iterator_finalize_method)(
                struct bt_private_connection_private_notification_iterator *notification_iterator);
 
-typedef struct bt_notification_iterator_next_method_return
+typedef enum bt_notification_iterator_status
 (*bt_component_class_notification_iterator_next_method)(
-               struct bt_private_connection_private_notification_iterator *notification_iterator);
+               struct bt_private_connection_private_notification_iterator *notification_iterator,
+               bt_notification_array notifs, uint64_t capacity,
+               uint64_t *count);
 
 typedef struct bt_component_class_query_method_return (*bt_component_class_query_method)(
                struct bt_component_class *component_class,
@@ -107,7 +107,7 @@ typedef enum bt_component_status (*bt_component_class_accept_port_connection_met
                struct bt_private_port *self_private_port,
                struct bt_port *other_port);
 
-typedef void (*bt_component_class_port_connected_method)(
+typedef enum bt_component_status (*bt_component_class_port_connected_method)(
                struct bt_private_component *private_component,
                struct bt_private_port *self_private_port,
                struct bt_port *other_port);
This page took 0.023364 seconds and 4 git commands to generate.