Fix: log.h: missing defines of `_ERRNO()` macros to `_UNUSED()`
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_graph.i.h
index a7193497fa5cb5dff0da393805f40cf8d7accfdf..e310e53bf245f9c6b5fd106b310c351125a8575d 100644 (file)
@@ -60,9 +60,9 @@ static bt_graph_listener_func_status port_added_listener(
        py_res = PyObject_CallFunction(py_callable, "(OiOi)",
                py_component_ptr, component_class_type, py_port_ptr, port_type);
        if (!py_res) {
-               loge_exception("Graph's port added listener (Python)",
+               loge_exception_append_cause_clear(
+                       "Graph's port added listener (Python)",
                        BT_LOG_OUTPUT_LEVEL);
-               PyErr_Clear();
                status = __BT_FUNC_STATUS_ERROR;
                goto end;
        }
@@ -227,7 +227,6 @@ PyObject *bt_bt2_graph_add_port_added_listener(struct bt_graph *graph,
                goto error;
        }
 
-
        PyTuple_SET_ITEM(py_listener_ids, 3, py_listener_id);
        py_listener_id = NULL;
 
@@ -244,7 +243,6 @@ error:
        Py_INCREF(py_listener_ids);
 
 end:
-
        Py_XDECREF(py_listener_id);
        return py_listener_ids;
 }
@@ -306,9 +304,9 @@ bt_graph_listener_func_status ports_connected_listener(
                py_downstream_component_ptr, downstream_component_class_type,
                py_downstream_port_ptr);
        if (!py_res) {
-               loge_exception("Graph's port connected listener (Python)",
+               loge_exception_append_cause_clear(
+                       "Graph's port connected listener (Python)",
                        BT_LOG_OUTPUT_LEVEL);
-               PyErr_Clear();
                status = __BT_FUNC_STATUS_ERROR;
                goto end;
        }
@@ -523,7 +521,7 @@ bt_bt2_graph_add_source_component(
                PyObject *obj, bt_logging_level log_level,
                const bt_component_source **component)
 {
-       return bt_graph_add_source_component_with_init_method_data(graph,
+       return bt_graph_add_source_component_with_initialize_method_data(graph,
                component_class, name, params, obj == Py_None ? NULL : obj,
                log_level, component);
 }
@@ -537,7 +535,7 @@ bt_bt2_graph_add_filter_component(
                PyObject *obj, bt_logging_level log_level,
                const bt_component_filter **component)
 {
-       return bt_graph_add_filter_component_with_init_method_data(graph,
+       return bt_graph_add_filter_component_with_initialize_method_data(graph,
                component_class, name, params, obj == Py_None ? NULL : obj,
                log_level, component);
 }
@@ -551,7 +549,7 @@ bt_bt2_graph_add_sink_component(
                PyObject *obj, bt_logging_level log_level,
                const bt_component_sink **component)
 {
-       return bt_graph_add_sink_component_with_init_method_data(graph,
+       return bt_graph_add_sink_component_with_initialize_method_data(graph,
                component_class, name, params, obj == Py_None ? NULL : obj,
                log_level, component);
 }
This page took 0.025684 seconds and 4 git commands to generate.