projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: strictly type function return status enumerations
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
native_bt_trace.i
diff --git
a/src/bindings/python/bt2/bt2/native_bt_trace.i
b/src/bindings/python/bt2/bt2/native_bt_trace.i
index 8fcc5db9319371e2f8c1a1d6934d03eed30a1d44..3e27a368c2e1f7562a262839b9f299134198ff52 100644
(file)
--- a/
src/bindings/python/bt2/bt2/native_bt_trace.i
+++ b/
src/bindings/python/bt2/bt2/native_bt_trace.i
@@
-43,33
+43,31
@@
trace_destroyed_listener(const bt_trace *trace, void *py_callable)
if (py_res != NULL) {
BT_ASSERT(py_res == Py_None);
} else {
if (py_res != NULL) {
BT_ASSERT(py_res == Py_None);
} else {
-
bt2_py_
loge_exception();
+ loge_exception();
}
Py_DECREF(py_trace_ptr);
Py_XDECREF(py_res);
}
}
Py_DECREF(py_trace_ptr);
Py_XDECREF(py_res);
}
-uint64_t bt_
py3
_trace_add_destruction_listener(bt_trace *trace, PyObject *py_callable)
+uint64_t bt_
bt2
_trace_add_destruction_listener(bt_trace *trace, PyObject *py_callable)
{
uint64_t id = UINT64_C(-1);
{
uint64_t id = UINT64_C(-1);
- bt_trace_status status;
+ bt_trace_
add_listener_
status status;
BT_ASSERT(trace);
BT_ASSERT(py_callable);
BT_ASSERT(trace);
BT_ASSERT(py_callable);
-
status = bt_trace_add_destruction_listener(
trace, trace_destroyed_listener, py_callable, &id);
status = bt_trace_add_destruction_listener(
trace, trace_destroyed_listener, py_callable, &id);
- if (status !=
BT_TRACE
_STATUS_OK) {
+ if (status !=
__BT_FUNC
_STATUS_OK) {
BT_LOGF_STR("Failed to add trace destruction listener.");
abort();
}
Py_INCREF(py_callable);
BT_LOGF_STR("Failed to add trace destruction listener.");
abort();
}
Py_INCREF(py_callable);
-
return id;
}
%}
return id;
}
%}
-uint64_t bt_
py3
_trace_add_destruction_listener(bt_trace *trace,
+uint64_t bt_
bt2
_trace_add_destruction_listener(bt_trace *trace,
PyObject *py_callable);
PyObject *py_callable);
This page took
0.036564 seconds
and
4
git commands to generate.