X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i;fp=bindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i;h=deca5a38682820183e3c457be26c359a74a3c777;hb=89d7b349cec59a4e56f8e37584c0917ee5e34a2c;hp=c71c7d4e79f992fcd76535d90656f7197b6479ce;hpb=babe0791d479359b594b3b6ad39b66e60fb26ce1;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/native_bt_component_class.i b/bindings/python/bt2/bt2/native_bt_component_class.i index c71c7d4e..deca5a38 100644 --- a/bindings/python/bt2/bt2/native_bt_component_class.i +++ b/bindings/python/bt2/bt2/native_bt_component_class.i @@ -719,12 +719,12 @@ bt_py3_exc_to_self_message_iterator_status(void) } if (PyErr_GivenExceptionMatches(exc, py_mod_bt2_exc_stop_type)) { - status = BT_MESSAGE_ITERATOR_STATUS_END; + status = BT_SELF_MESSAGE_ITERATOR_STATUS_END; } else if (PyErr_GivenExceptionMatches(exc, py_mod_bt2_exc_try_again_type)) { - status = BT_MESSAGE_ITERATOR_STATUS_AGAIN; + status = BT_SELF_MESSAGE_ITERATOR_STATUS_AGAIN; } else { bt2_py_loge_exception(); - status = BT_MESSAGE_ITERATOR_STATUS_ERROR; + status = BT_SELF_MESSAGE_ITERATOR_STATUS_ERROR; } end: @@ -1336,7 +1336,7 @@ bt_py3_component_class_message_iterator_init( bt_self_component *self_component, bt_self_component_port_output *self_component_port_output) { - bt_self_message_iterator_status status = BT_MESSAGE_ITERATOR_STATUS_OK; + bt_self_message_iterator_status status = BT_SELF_MESSAGE_ITERATOR_STATUS_OK; PyObject *py_comp_cls = NULL; PyObject *py_iter_cls = NULL; PyObject *py_iter_ptr = NULL; @@ -1501,7 +1501,7 @@ bt_py3_component_class_message_iterator_next( bt_message_array_const msgs, uint64_t capacity, uint64_t *count) { - bt_self_message_iterator_status status = BT_MESSAGE_ITERATOR_STATUS_OK; + bt_self_message_iterator_status status = BT_SELF_MESSAGE_ITERATOR_STATUS_OK; PyObject *py_message_iter = bt_self_message_iterator_get_data(message_iterator); PyObject *py_method_result = NULL;