projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing declaration of ssize_t as unsigned long for SWIG
[babeltrace.git]
/
bindings
/
python
/
babeltrace.i.in
diff --git
a/bindings/python/babeltrace.i.in
b/bindings/python/babeltrace.i.in
index dd2daccd25f7298a2a1b55ece6d96f9bda47a3d0..bd2d740c5f51fa1ad39fa944a3487dbf2ffa3a84 100644
(file)
--- a/
bindings/python/babeltrace.i.in
+++ b/
bindings/python/babeltrace.i.in
@@
-53,6
+53,7
@@
trace to it."
typedef unsigned long long uint64_t;
typedef long long int64_t;
typedef int bt_intern_str;
typedef unsigned long long uint64_t;
typedef long long int64_t;
typedef int bt_intern_str;
+typedef unsigned long ssize_t;
/* =================================================================
CONTEXT.H, CONTEXT-INTERNAL.H
/* =================================================================
CONTEXT.H, CONTEXT-INTERNAL.H
@@
-477,7
+478,7
@@
class TraceHandle(object):
raise NotImplementedError("TraceHandle cannot be instantiated")
def __repr__(self):
raise NotImplementedError("TraceHandle cannot be instantiated")
def __repr__(self):
- return "Babeltrace TraceHandle: trace_id('{}')".format(self._id)
+ return "Babeltrace TraceHandle: trace_id('{
0
}')".format(self._id)
def get_id(self):
"""Return the TraceHandle id."""
def get_id(self):
"""Return the TraceHandle id."""
@@
-832,7
+833,7
@@
class ctf:
raise NotImplementedError("ctf.Definition cannot be instantiated")
def __repr__(self):
raise NotImplementedError("ctf.Definition cannot be instantiated")
def __repr__(self):
- return "Babeltrace Definition: name('{
}'), type({
})".format(
+ return "Babeltrace Definition: name('{
0}'), type({1
})".format(
self.field_name(), self.field_type())
def field_name(self):
self.field_name(), self.field_type())
def field_name(self):
@@
-866,7
+867,7
@@
class ctf:
Return the size, in bits, of an int or a negative
value on error.
"""
Return the size, in bits, of an int or a negative
value on error.
"""
- return _bt_ctf_get_int_len(
self._d
)
+ return _bt_ctf_get_int_len(
_bt_ctf_get_decl_from_def(self._d)
)
def get_encoding(self):
"""
def get_encoding(self):
"""
@@
-926,7
+927,7
@@
class ctf:
raise NotImplementedError("ctf.EventDecl cannot be instantiated")
def __repr__(self):
raise NotImplementedError("ctf.EventDecl cannot be instantiated")
def __repr__(self):
- return "Babeltrace EventDecl: name {}".format(self.get_name())
+ return "Babeltrace EventDecl: name {
0
}".format(self.get_name())
def get_name(self):
"""Return the name of the event or None on error"""
def get_name(self):
"""Return the name of the event or None on error"""
@@
-965,7
+966,7
@@
class ctf:
raise NotImplementedError("ctf.FieldDecl cannot be instantiated")
def __repr__(self):
raise NotImplementedError("ctf.FieldDecl cannot be instantiated")
def __repr__(self):
- return "Babeltrace FieldDecl: name {}".format(self.get_name())
+ return "Babeltrace FieldDecl: name {
0
}".format(self.get_name())
def get_name(self):
"""Return the name of a FieldDecl or None on error"""
def get_name(self):
"""Return the name of a FieldDecl or None on error"""
@@
-1085,7
+1086,7
@@
class File(object):
stat = 'opened'
else:
stat = 'closed'
stat = 'opened'
else:
stat = 'closed'
- return "{
} babeltrace File; file_path('{}'), mode('{
}')".format(
+ return "{
0} babeltrace File; file_path('{1}'), mode('{2
}')".format(
stat, self._file_path, self._mode)
def close(self):
stat, self._file_path, self._mode)
def close(self):
This page took
0.025057 seconds
and
4
git commands to generate.