From db66cd1e87c54d500cb0c654bd6f32527e2c0623 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 20 Jan 2013 12:58:04 -0500 Subject: [PATCH] Fix: Mismatching function signatures used by python bindings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers --- bindings/python/babeltrace.i.in | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bindings/python/babeltrace.i.in b/bindings/python/babeltrace.i.in index b693f021..d45afb0a 100644 --- a/bindings/python/babeltrace.i.in +++ b/bindings/python/babeltrace.i.in @@ -557,15 +557,15 @@ struct bt_ctf_event *bt_ctf_iter_read_event(struct bt_ctf_iter *iter); %rename("_bt_ctf_get_index") bt_ctf_get_index(const struct bt_ctf_event *ctf_event, const struct definition *field, unsigned int index); %rename("_bt_ctf_field_name") bt_ctf_field_name(const struct definition *def); -%rename("_bt_ctf_field_type") bt_ctf_field_type(const struct definition *def); +%rename("_bt_ctf_field_type") bt_ctf_field_type(const struct declaration *def); %rename("_bt_ctf_get_int_signedness") bt_ctf_get_int_signedness( - const struct definition *field); -%rename("_bt_ctf_get_int_base") bt_ctf_get_int_base(const struct definition *field); + const struct declaration *field); +%rename("_bt_ctf_get_int_base") bt_ctf_get_int_base(const struct declaration *field); %rename("_bt_ctf_get_int_byte_order") bt_ctf_get_int_byte_order( - const struct definition *field); -%rename("_bt_ctf_get_int_len") bt_ctf_get_int_len(const struct definition *field); -%rename("_bt_ctf_get_encoding") bt_ctf_get_encoding(const struct definition *field); -%rename("_bt_ctf_get_array_len") bt_ctf_get_array_len(const struct definition *field); + const struct declaration *field); +%rename("_bt_ctf_get_int_len") bt_ctf_get_int_len(const struct declaration *field); +%rename("_bt_ctf_get_encoding") bt_ctf_get_encoding(const struct declaration *field); +%rename("_bt_ctf_get_array_len") bt_ctf_get_array_len(const struct declaration *field); %rename("_bt_ctf_get_uint64") bt_ctf_get_uint64(const struct definition *field); %rename("_bt_ctf_get_int64") bt_ctf_get_int64(const struct definition *field); %rename("_bt_ctf_get_char_array") bt_ctf_get_char_array(const struct definition *field); @@ -588,13 +588,13 @@ const struct definition *bt_ctf_get_index(const struct bt_ctf_event *ctf_event, const struct definition *field, unsigned int index); const char *bt_ctf_field_name(const struct definition *def); -enum ctf_type_id bt_ctf_field_type(const struct definition *def); -int bt_ctf_get_int_signedness(const struct definition *field); -int bt_ctf_get_int_base(const struct definition *field); -int bt_ctf_get_int_byte_order(const struct definition *field); -ssize_t bt_ctf_get_int_len(const struct definition *field); -enum ctf_string_encoding bt_ctf_get_encoding(const struct definition *field); -int bt_ctf_get_array_len(const struct definition *field); +enum ctf_type_id bt_ctf_field_type(const struct declaration *def); +int bt_ctf_get_int_signedness(const struct declaration *field); +int bt_ctf_get_int_base(const struct declaration *field); +int bt_ctf_get_int_byte_order(const struct declaration *field); +ssize_t bt_ctf_get_int_len(const struct declaration *field); +enum ctf_string_encoding bt_ctf_get_encoding(const struct declaration *field); +int bt_ctf_get_array_len(const struct declaration *field); uint64_t bt_ctf_get_uint64(const struct definition *field); int64_t bt_ctf_get_int64(const struct definition *field); char *bt_ctf_get_char_array(const struct definition *field); -- 2.34.1