bt_self_component_sink *component,
const bt_value *params,
__attribute__((unused)) void *init_method_data)
{
bt_self_component_sink *component,
const bt_value *params,
__attribute__((unused)) void *init_method_data)
{
struct counter *counter = g_new0(struct counter, 1);
const bt_value *step = NULL;
const bt_value *hide_zero = NULL;
if (!counter) {
struct counter *counter = g_new0(struct counter, 1);
const bt_value *step = NULL;
const bt_value *hide_zero = NULL;
if (!counter) {
bt_self_component_sink_as_self_component(component);
counter->log_level = bt_component_get_logging_level(
bt_self_component_as_component(counter->self_comp));
bt_self_component_sink_as_self_component(component);
counter->log_level = bt_component_get_logging_level(
bt_self_component_as_component(counter->self_comp));
- case BT_MESSAGE_ITERATOR_STATUS_NOMEM:
- ret = BT_SELF_COMPONENT_STATUS_NOMEM;
+ case BT_MESSAGE_ITERATOR_NEXT_STATUS_MEMORY_ERROR:
+ status = BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_MEMORY_ERROR;