X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fcomponent-class.h;h=f7d243649f02a690f9f544048f88c792c0ae1d37;hb=d4393e0875e7b08f6ee97d617cc5f2c9286742a4;hp=acad8eec14389191a247a275fb1d1d020615707c;hpb=26e21a82c47a15d1080dc142cb20c0b0b0b5a929;p=babeltrace.git diff --git a/include/babeltrace/graph/component-class.h b/include/babeltrace/graph/component-class.h index acad8eec..f7d24364 100644 --- a/include/babeltrace/graph/component-class.h +++ b/include/babeltrace/graph/component-class.h @@ -39,6 +39,9 @@ /* For bt_bool */ #include +/* For bt_notification_array */ +#include + #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,