X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fclock-internal.h;h=8f7b5f07e31f9d9b77dfe8ab800e4143bb2be51a;hb=cfeb617e4a304a0a0dcc21886da68bae6a540435;hp=07e37f9895678f050e0743c711b398cabd2ae1b6;hpb=41ac640a35c8f7ec7ffdb1d069180315533e7353;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/clock-internal.h b/include/babeltrace/ctf-ir/clock-internal.h index 07e37f98..8f7b5f07 100644 --- a/include/babeltrace/ctf-ir/clock-internal.h +++ b/include/babeltrace/ctf-ir/clock-internal.h @@ -46,6 +46,16 @@ struct bt_ctf_clock { uuid_t uuid; int uuid_set; int absolute; + + /* + * This field is set once a clock is added to a trace. If the + * trace was created by a CTF writer, then the clock's value + * can be set and returned. Otherwise both functions fail + * because, in non-writer mode, clocks do not have global + * values: values are per-stream. + */ + int has_value; + /* * A clock's properties can't be modified once it is added to a stream * class.