X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fbabeltrace%2Fctf-ir%2Fclock-internal.h;h=ac13a8e3fc42713053218041d6bb56689ddd3454;hb=c06116f32e056500c8c64364d65d04665a77644b;hp=8f7b5f07e31f9d9b77dfe8ab800e4143bb2be51a;hpb=8bbddeca5b02893ed46d6a5bd8833a5be8ad656c;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/clock-internal.h b/include/babeltrace/ctf-ir/clock-internal.h index 8f7b5f07..ac13a8e3 100644 --- a/include/babeltrace/ctf-ir/clock-internal.h +++ b/include/babeltrace/ctf-ir/clock-internal.h @@ -63,24 +63,6 @@ struct bt_ctf_clock { int frozen; }; -/* - * This is not part of the public API to prevent users from creating clocks - * in an invalid state (being nameless, in this case). - * - * The only legitimate use-case for this function is to allocate a clock - * while the TSDL metadata is being parsed. - */ -BT_HIDDEN -struct bt_ctf_clock *_bt_ctf_clock_create(void); - -/* - * Not exposed as part of the public API since the only usecase - * for this is when we are creating clocks from the TSDL metadata. - */ -BT_HIDDEN -int bt_ctf_clock_set_name(struct bt_ctf_clock *clock, - const char *name); - BT_HIDDEN void bt_ctf_clock_freeze(struct bt_ctf_clock *clock); @@ -88,4 +70,7 @@ BT_HIDDEN void bt_ctf_clock_serialize(struct bt_ctf_clock *clock, struct metadata_context *context); +BT_HIDDEN +bool bt_ctf_clock_is_valid(struct bt_ctf_clock *clock); + #endif /* BABELTRACE_CTF_IR_CLOCK_INTERNAL_H */