From: Julien Desfossez Date: Tue, 7 Aug 2012 15:49:47 +0000 (-0400) Subject: API cleanup name get_timestamp and get_cycles X-Git-Tag: v1.0.0-rc5~35 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=d40ee8ec4ac9998f69383218762662ba01e89513;ds=sidebyside API cleanup name get_timestamp and get_cycles Rename bt_ctf_get_cycles_timestamp to bt_ctf_get_cycles, and bt_ctf_get_real_timestamp to bt_ctf_get_timestamp. Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf/events.c b/formats/ctf/events.c index 06419a18..96934132 100644 --- a/formats/ctf/events.c +++ b/formats/ctf/events.c @@ -281,7 +281,7 @@ int bt_ctf_event_get_handle_id(const struct bt_ctf_event *ctf_event) return ret; } -uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *ctf_event) +uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *ctf_event) { struct ctf_event_definition *event = ctf_event->parent; if (event && event->stream->has_timestamp) @@ -290,7 +290,7 @@ uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *ctf_event) return -1ULL; } -uint64_t bt_ctf_get_cycles_timestamp(const struct bt_ctf_event *ctf_event) +uint64_t bt_ctf_get_cycles(const struct bt_ctf_event *ctf_event) { struct ctf_event_definition *event = ctf_event->parent; if (event && event->stream->has_timestamp) diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 419c4c8d..4232feb3 100644 --- a/include/babeltrace/ctf/events.h +++ b/include/babeltrace/ctf/events.h @@ -90,16 +90,16 @@ const struct definition *bt_ctf_get_top_level_scope(const struct bt_ctf_event *e const char *bt_ctf_event_name(const struct bt_ctf_event *event); /* - * bt_ctf_get_cycles_timestamp: returns the timestamp of the event as written + * bt_ctf_get_cycles: returns the timestamp of the event as written * in the packet (in cycles) or -1ULL on error. */ -uint64_t bt_ctf_get_cycles_timestamp(const struct bt_ctf_event *event); +uint64_t bt_ctf_get_cycles(const struct bt_ctf_event *event); /* - * bt_ctf_get_real_timestamp: returns the timestamp of the event offsetted + * bt_ctf_get_timestamp: returns the timestamp of the event offsetted * with the system clock source (in ns) or -1ULL on error */ -uint64_t bt_ctf_get_real_timestamp(const struct bt_ctf_event *event); +uint64_t bt_ctf_get_timestamp(const struct bt_ctf_event *event); /* * bt_ctf_get_field_list: set list pointer to an array of definition