X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-writer%2Fclock.h;h=36e191f33d348e9c3ab8a4287dd29e959498fa12;hb=7e69c04f557e46fb50e5a888a3bc3451afbd3b8e;hp=508c694068d397c5ea075d62ef868ad5a21e491e;hpb=65300d60e4b4f167e5fc8f584677757ce09a3844;p=babeltrace.git diff --git a/include/babeltrace/ctf-writer/clock.h b/include/babeltrace/ctf-writer/clock.h index 508c6940..36e191f3 100644 --- a/include/babeltrace/ctf-writer/clock.h +++ b/include/babeltrace/ctf-writer/clock.h @@ -2,8 +2,6 @@ #define BABELTRACE_CTF_WRITER_CLOCK_H /* - * BabelTrace - CTF Writer: Clock - * * Copyright 2013, 2014 Jérémie Galarneau * * Author: Jérémie Galarneau @@ -31,7 +29,7 @@ */ #include -#include +#include #include #ifdef __cplusplus @@ -273,68 +271,15 @@ extern int bt_ctf_clock_set_time(struct bt_ctf_clock *clock, static inline void bt_ctf_clock_get(struct bt_ctf_clock *clock) { - bt_object_get_ref(clock); + bt_ctf_object_get_ref(clock); } /* Pre-2.0 CTF writer compatibility */ static inline void bt_ctf_clock_put(struct bt_ctf_clock *clock) { - bt_object_put_ref(clock); + bt_ctf_object_put_ref(clock); } - -extern struct bt_ctf_clock_class *bt_ctf_clock_class_create(const char *name, - uint64_t freq); - -extern const char *bt_ctf_clock_class_get_name( - struct bt_ctf_clock_class *clock_class); - -extern int bt_ctf_clock_class_set_name(struct bt_ctf_clock_class *clock_class, - const char *name); - -extern const char *bt_ctf_clock_class_get_description( - struct bt_ctf_clock_class *clock_class); - -extern int bt_ctf_clock_class_set_description( - struct bt_ctf_clock_class *clock_class, - const char *desc); - -extern uint64_t bt_ctf_clock_class_get_frequency( - struct bt_ctf_clock_class *clock_class); - -extern int bt_ctf_clock_class_set_frequency( - struct bt_ctf_clock_class *clock_class, uint64_t freq); - -extern uint64_t bt_ctf_clock_class_get_precision( - struct bt_ctf_clock_class *clock_class); - -extern int bt_ctf_clock_class_set_precision( - struct bt_ctf_clock_class *clock_class, uint64_t precision); - -extern int bt_ctf_clock_class_get_offset_s( - struct bt_ctf_clock_class *clock_class, int64_t *seconds); - -extern int bt_ctf_clock_class_set_offset_s( - struct bt_ctf_clock_class *clock_class, int64_t seconds); - -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 bt_bool 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, bt_bool is_absolute); - -extern const unsigned char *bt_ctf_clock_class_get_uuid( - struct bt_ctf_clock_class *clock_class); - -extern int bt_ctf_clock_class_set_uuid(struct bt_ctf_clock_class *clock_class, - const unsigned char *uuid); - #ifdef __cplusplus } #endif