#include <stdint.h>
-/* For bt_bool, bt_uuid */
+/* For bt_bool, bt_uuid, bt_clock_class */
#include <babeltrace/types.h>
+/* For enum bt_clock_class_status */
+#include <babeltrace/trace-ir/clock-class-const.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-struct bt_clock_class;
-
-extern struct bt_clock_class *bt_clock_class_create(void);
+extern bt_clock_class *bt_clock_class_create(void);
-extern int bt_clock_class_set_name(struct bt_clock_class *clock_class,
- const char *name);
+extern enum bt_clock_class_status bt_clock_class_set_name(
+ bt_clock_class *clock_class, const char *name);
-extern int bt_clock_class_set_description(struct bt_clock_class *clock_class,
- const char *description);
+extern enum bt_clock_class_status bt_clock_class_set_description(
+ bt_clock_class *clock_class, const char *description);
-extern void bt_clock_class_set_frequency(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_frequency(bt_clock_class *clock_class,
uint64_t freq);
-extern void bt_clock_class_set_precision(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_precision(bt_clock_class *clock_class,
uint64_t precision);
-extern void bt_clock_class_set_offset(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_offset(bt_clock_class *clock_class,
int64_t seconds, uint64_t cycles);
-extern void bt_clock_class_set_is_absolute(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_is_absolute(bt_clock_class *clock_class,
bt_bool is_absolute);
-extern void bt_clock_class_set_uuid(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_uuid(bt_clock_class *clock_class,
bt_uuid uuid);
#ifdef __cplusplus