ir: add bt_ctf_trace_get_clock_by_name()
[babeltrace.git] / include / babeltrace / ctf-ir / trace.h
index 03c281bcb21729b6074f3ce73ba7efd03c5e67bc..bcef8973bc659c8c75c9ba50492a0501bdd873ea 100644 (file)
@@ -253,6 +253,17 @@ extern int bt_ctf_trace_get_stream_class_count(struct bt_ctf_trace *trace);
 extern struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class(
                struct bt_ctf_trace *trace, int index);
 
+/*
+ * bt_ctf_trace_get_clock_by_name: get a trace's clock by name
+ *
+ * @param trace Trace instance.
+ * @param name Name of the clock in the given trace.
+ *
+ * Return a clock instance on success, NULL on error.
+ */
+extern struct bt_ctf_clock *bt_ctf_trace_get_clock_by_name(
+               struct bt_ctf_trace *trace, const char *name);
+
 /*
  * bt_ctf_trace_get_metadata_string: get metadata string.
  *
This page took 0.035418 seconds and 4 git commands to generate.