Remove the need to implement the notification iterator's "get" method
[babeltrace.git] / plugins / ctf / lttng-live / lttng-live.c
index d797cbd18a5fb697f417b1f8f05028e26e895e0f..0c8b3c2b63b8ac187d09443288992570a33a6437 100644 (file)
 
 #include "lttng-live-internal.h"
 #include <babeltrace/component/component-source.h>
+#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 NULL;
 }
 
 BT_HIDDEN
-enum bt_component_status lttng_live_init(struct bt_component *component,
-               struct bt_value *params)
+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.023409 seconds and 4 git commands to generate.