X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Ftrace-ir%2Fclock-class.h;h=5d0c5987c5fbe64ebfefe9d0727bb9532a0bbf02;hb=d29378b187afb5aa5ef1086cf8d96562e3681c32;hp=6cfecbae129bb86b051eb64d1c67a052cb28e768;hpb=924dc299c8a893e92fcd985fa05c245b591ef314;p=babeltrace.git diff --git a/include/babeltrace2/trace-ir/clock-class.h b/include/babeltrace2/trace-ir/clock-class.h index 6cfecbae..5d0c5987 100644 --- a/include/babeltrace2/trace-ir/clock-class.h +++ b/include/babeltrace2/trace-ir/clock-class.h @@ -2,8 +2,7 @@ #define BABELTRACE2_TRACE_IR_CLOCK_CLASS_H /* - * Copyright 2013, 2014 Jérémie Galarneau - * Copyright 2017-2018 Philippe Proulx + * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -22,27 +21,28 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * - * The Common Trace Format (CTF) Specification is available at - * http://www.efficios.com/ctf */ +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif + #include -/* For bt_bool, bt_uuid, bt_clock_class, bt_trace_class */ #include -/* For __BT_FUNC_STATUS_* */ -#define __BT_FUNC_STATUS_ENABLE -#include -#undef __BT_FUNC_STATUS_ENABLE - #ifdef __cplusplus extern "C" { #endif extern bt_clock_class *bt_clock_class_create(bt_self_component *self_comp); +extern bt_value *bt_clock_class_borrow_user_attributes( + bt_clock_class *clock_class); + +extern void bt_clock_class_set_user_attributes( + bt_clock_class *clock_class, const bt_value *user_attributes); + 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, @@ -78,6 +78,4 @@ extern void bt_clock_class_set_uuid(bt_clock_class *clock_class, } #endif -#include - #endif /* BABELTRACE2_TRACE_IR_CLOCK_CLASS_H */