-#ifndef BABELTRACE_TRACE_IR_CLOCK_CLASS_H
-#define BABELTRACE_TRACE_IR_CLOCK_CLASS_H
+#ifndef BABELTRACE2_TRACE_IR_CLOCK_CLASS_H
+#define BABELTRACE2_TRACE_IR_CLOCK_CLASS_H
/*
* Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_bool, bt_uuid, bt_clock_class, bt_trace_class */
#include <babeltrace2/types.h>
-/* For bt_clock_class_status */
-#include <babeltrace2/trace-ir/clock-class-const.h>
-
#ifdef __cplusplus
extern "C" {
#endif
extern bt_clock_class *bt_clock_class_create(bt_self_component *self_comp);
-extern bt_clock_class_status bt_clock_class_set_name(
+typedef enum bt_clock_class_set_name_status {
+ BT_CLOCK_CLASS_SET_NAME_STATUS_MEMORY_ERROR = __BT_FUNC_STATUS_MEMORY_ERROR,
+ BT_CLOCK_CLASS_SET_NAME_STATUS_OK = __BT_FUNC_STATUS_OK,
+} bt_clock_class_set_name_status;
+
+extern bt_clock_class_set_name_status bt_clock_class_set_name(
bt_clock_class *clock_class, const char *name);
-extern bt_clock_class_status bt_clock_class_set_description(
+typedef enum bt_clock_class_set_description_status {
+ BT_CLOCK_CLASS_SET_DESCRIPTION_STATUS_MEMORY_ERROR = __BT_FUNC_STATUS_MEMORY_ERROR,
+ BT_CLOCK_CLASS_SET_DESCRIPTION_STATUS_OK = __BT_FUNC_STATUS_OK,
+} bt_clock_class_set_description_status;
+
+extern bt_clock_class_set_description_status bt_clock_class_set_description(
bt_clock_class *clock_class, const char *description);
extern void bt_clock_class_set_frequency(bt_clock_class *clock_class,
}
#endif
-#endif /* BABELTRACE_TRACE_IR_CLOCK_CLASS_H */
+#endif /* BABELTRACE2_TRACE_IR_CLOCK_CLASS_H */