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_class.i
diff --git
a/src/bindings/python/bt2/bt2/native_bt_trace_class.i
b/src/bindings/python/bt2/bt2/native_bt_trace_class.i
index a4fdbba7e18aeba12cf16fed74962f1bff184e52..57166bc9a3e944e1ae1cf11057175d1862263930 100644
(file)
--- a/
src/bindings/python/bt2/bt2/native_bt_trace_class.i
+++ b/
src/bindings/python/bt2/bt2/native_bt_trace_class.i
@@
-44,34
+44,32
@@
trace_class_destroyed_listener(const bt_trace_class *trace_class, void *py_calla
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_class_ptr);
Py_XDECREF(py_res);
}
}
Py_DECREF(py_trace_class_ptr);
Py_XDECREF(py_res);
}
-uint64_t bt_
py3
_trace_class_add_destruction_listener(bt_trace_class *trace_class,
+uint64_t bt_
bt2
_trace_class_add_destruction_listener(bt_trace_class *trace_class,
PyObject *py_callable)
{
uint64_t id = UINT64_C(-1);
PyObject *py_callable)
{
uint64_t id = UINT64_C(-1);
- bt_trace_class_status status;
+ bt_trace_class_
add_listener_
status status;
BT_ASSERT(trace_class);
BT_ASSERT(py_callable);
BT_ASSERT(trace_class);
BT_ASSERT(py_callable);
-
status = bt_trace_class_add_destruction_listener(
trace_class, trace_class_destroyed_listener, py_callable, &id);
status = bt_trace_class_add_destruction_listener(
trace_class, trace_class_destroyed_listener, py_callable, &id);
- if (status !=
BT_TRACE_CLASS
_STATUS_OK) {
+ if (status !=
__BT_FUNC
_STATUS_OK) {
BT_LOGF_STR("Failed to add trace class destruction listener.");
abort();
}
Py_INCREF(py_callable);
BT_LOGF_STR("Failed to add trace class destruction listener.");
abort();
}
Py_INCREF(py_callable);
-
return id;
}
%}
return id;
}
%}
-uint64_t bt_
py3
_trace_class_add_destruction_listener(bt_trace_class *trace_class,
+uint64_t bt_
bt2
_trace_class_add_destruction_listener(bt_trace_class *trace_class,
PyObject *py_callable);
PyObject *py_callable);
This page took
0.024082 seconds
and
4
git commands to generate.