From acd6aeb1e512b0b134cd8260c3f1c9318834695d Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 26 Apr 2017 15:15:17 -0400 Subject: [PATCH] Rename bt_ctf_clock_class_get_is_absolute() -> bt_ctf_clock_class_is_absolute() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- bindings/python/bt2/native_btclockclass.i | 2 +- include/babeltrace/ctf-ir/clock-class.h | 2 +- lib/ctf-ir/clock-class.c | 2 +- lib/ctf-writer/clock.c | 2 +- plugins/libctfcopytrace/ctfcopytrace.c | 2 +- plugins/utils/muxer/muxer.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/python/bt2/native_btclockclass.i b/bindings/python/bt2/native_btclockclass.i index c013b8b3..e79a7b4d 100644 --- a/bindings/python/bt2/native_btclockclass.i +++ b/bindings/python/bt2/native_btclockclass.i @@ -51,7 +51,7 @@ int bt_ctf_clock_class_get_offset_cycles(struct bt_ctf_clock_class *clock_class, int64_t *OUTPUT); int bt_ctf_clock_class_set_offset_cycles(struct bt_ctf_clock_class *clock_class, int64_t offset); -int bt_ctf_clock_class_get_is_absolute(struct bt_ctf_clock_class *clock_class); +int bt_ctf_clock_class_is_absolute(struct bt_ctf_clock_class *clock_class); int bt_ctf_clock_class_set_is_absolute(struct bt_ctf_clock_class *clock_class, int is_absolute); BTUUID bt_ctf_clock_class_get_uuid(struct bt_ctf_clock_class *clock_class); diff --git a/include/babeltrace/ctf-ir/clock-class.h b/include/babeltrace/ctf-ir/clock-class.h index d9c704d2..223d59f6 100644 --- a/include/babeltrace/ctf-ir/clock-class.h +++ b/include/babeltrace/ctf-ir/clock-class.h @@ -66,7 +66,7 @@ extern int bt_ctf_clock_class_get_offset_cycles( struct bt_ctf_clock_class *clock_class, int64_t *cycles); extern int bt_ctf_clock_class_set_offset_cycles( struct bt_ctf_clock_class *clock_class, int64_t cycles); -extern int bt_ctf_clock_class_get_is_absolute( +extern int bt_ctf_clock_class_is_absolute( struct bt_ctf_clock_class *clock_class); extern int bt_ctf_clock_class_set_is_absolute( struct bt_ctf_clock_class *clock_class, int is_absolute); diff --git a/lib/ctf-ir/clock-class.c b/lib/ctf-ir/clock-class.c index 37635ca9..9760d731 100644 --- a/lib/ctf-ir/clock-class.c +++ b/lib/ctf-ir/clock-class.c @@ -269,7 +269,7 @@ end: return ret; } -int bt_ctf_clock_class_get_is_absolute(struct bt_ctf_clock_class *clock_class) +int bt_ctf_clock_class_is_absolute(struct bt_ctf_clock_class *clock_class) { int ret = -1; diff --git a/lib/ctf-writer/clock.c b/lib/ctf-writer/clock.c index dd070ec9..e0d52231 100644 --- a/lib/ctf-writer/clock.c +++ b/lib/ctf-writer/clock.c @@ -201,7 +201,7 @@ int bt_ctf_clock_get_is_absolute(struct bt_ctf_clock *clock) int is_absolute = -1; if (clock) { - is_absolute = bt_ctf_clock_class_get_is_absolute( + is_absolute = bt_ctf_clock_class_is_absolute( clock->clock_class); } diff --git a/plugins/libctfcopytrace/ctfcopytrace.c b/plugins/libctfcopytrace/ctfcopytrace.c index ee983651..898e6c4e 100644 --- a/plugins/libctfcopytrace/ctfcopytrace.c +++ b/plugins/libctfcopytrace/ctfcopytrace.c @@ -134,7 +134,7 @@ struct bt_ctf_clock_class *ctf_copy_clock_class(FILE *err, goto end_destroy; } - int_ret = bt_ctf_clock_class_get_is_absolute(clock_class); + int_ret = bt_ctf_clock_class_is_absolute(clock_class); if (int_ret == -1) { fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__, __LINE__); diff --git a/plugins/utils/muxer/muxer.c b/plugins/utils/muxer/muxer.c index 033a0abb..d78884d4 100644 --- a/plugins/utils/muxer/muxer.c +++ b/plugins/utils/muxer/muxer.c @@ -548,7 +548,7 @@ int get_notif_ts_ns(struct muxer_comp *muxer_comp, goto error; } - if (!bt_ctf_clock_class_get_is_absolute(clock_class)) { + if (!bt_ctf_clock_class_is_absolute(clock_class)) { // TODO: Allow this with an explicit parameter goto error; } -- 2.34.1