projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: no need to use run_as_open in the relayd
[lttng-tools.git]
/
extras
/
bindings
/
swig
/
python
/
lttng.i.in
diff --git
a/extras/bindings/swig/python/lttng.i.in
b/extras/bindings/swig/python/lttng.i.in
index 0d6d1e952634c0fcc5bbc1ef9045081d87bd558b..c947ce3dd499d45b4dfe37546536b9e2a9f112a4 100644
(file)
--- a/
extras/bindings/swig/python/lttng.i.in
+++ b/
extras/bindings/swig/python/lttng.i.in
@@
-15,6
+15,14
@@
multiple concurrent processes and threads. Tracing across multiple systems is al
#include <lttng/lttng.h>
%}
#include <lttng/lttng.h>
%}
+%{
+#if PY_MAJOR_VERSION >= 3
+// The PyInt and PyLong types were unified as of Python 3
+// This makes the typemap code useable with both Python 2 and 3.
+#define PyInt_AsSsize_t PyLong_AsSsize_t
+#endif
+%}
+
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned long long uint64_t;
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned long long uint64_t;
@@
-707,7
+715,7
@@
def calibrate(handle, calibrate):
%pythoncode %{
class Handle:
%pythoncode %{
class Handle:
-
"""
+ """
Manages a handle.
Takes two arguments: (str session_name, Domain domain)
"""
Manages a handle.
Takes two arguments: (str session_name, Domain domain)
"""
This page took
0.025785 seconds
and
4
git commands to generate.