Remove the need to implement the notification iterator's "get" method
[babeltrace.git] / plugins / ctf / lttng-live / lttng-live.c
index add91ccb0005ac294c6fc7ad3f2efdef1782f9a8..0c8b3c2b63b8ac187d09443288992570a33a6437 100644 (file)
 #include <plugins-common.h>
 
 BT_HIDDEN
-enum bt_component_status lttng_live_iterator_init(struct bt_component *source,
-               struct bt_notification_iterator *it)
+struct bt_notification *lttng_live_iterator_get(
+               struct bt_private_notification_iterator *iterator)
 {
-    return BT_COMPONENT_STATUS_OK;
+       return NULL;
 }
 
 BT_HIDDEN
-enum bt_component_status lttng_live_init(struct bt_component *component,
+struct bt_notification_iterator_next_return lttng_live_iterator_next(
+               struct bt_private_notification_iterator *iterator)
+{
+       struct bt_notification_iterator_next_return ret = {
+               .status = BT_NOTIFICATION_ITERATOR_STATUS_ERROR,
+       };
+
+       return ret;
+}
+
+BT_HIDDEN
+enum bt_component_status lttng_live_init(struct bt_private_component *component,
                struct bt_value *params, UNUSED_VAR void *init_method_data)
 {
        return BT_COMPONENT_STATUS_OK;
This page took 0.025169 seconds and 4 git commands to generate.