#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;
%pythoncode %{
class Handle:
- """
+ """
Manages a handle.
Takes two arguments: (str session_name, Domain domain)
"""