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("Graph's port added listener (Python)",
+ BT_LOG_OUTPUT_LEVEL);
PyErr_Clear();
status = __BT_FUNC_STATUS_ERROR;
goto end;
{
PyObject *py_listener_ids = NULL;
PyObject *py_listener_id = NULL;
- int listener_id;
+ bt_listener_id listener_id;
bt_graph_add_listener_status status;
const char * const module_name =
"graph_add_port_added_listener() (Python)";
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
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("Graph's port connected listener (Python)",
+ BT_LOG_OUTPUT_LEVEL);
PyErr_Clear();
status = __BT_FUNC_STATUS_ERROR;
goto end;
{
PyObject *py_listener_ids = NULL;
PyObject *py_listener_id = NULL;
- int listener_id;
+ bt_listener_id listener_id;
bt_graph_add_listener_status status;
const char * const module_name =
"graph_add_ports_connected_listener() (Python)";
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");
goto error;
}
- py_listener_id = PyLong_FromLong(listener_id);
+ py_listener_id = PyLong_FromUnsignedLongLong(listener_id);
if (!py_listener_id) {
BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name,
"Failed to allocate one PyLong.");