X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Ftrace-ir%2Fevent-class-const.h;h=fa1ff78698fc8ad69a7a743eef31f9e89fad3be2;hb=7b6afccb24b31e2feed787c2ed97809e797c3070;hp=dde7c9236425d63e5ff2ad1ed3b69aec8a2a9c2b;hpb=924dc299c8a893e92fcd985fa05c245b591ef314;p=babeltrace.git diff --git a/include/babeltrace2/trace-ir/event-class-const.h b/include/babeltrace2/trace-ir/event-class-const.h index dde7c923..fa1ff786 100644 --- a/include/babeltrace2/trace-ir/event-class-const.h +++ b/include/babeltrace2/trace-ir/event-class-const.h @@ -2,8 +2,7 @@ #define BABELTRACE2_TRACE_IR_EVENT_CLASS_CONST_H /* - * Copyright 2017-2018 Philippe Proulx - * Copyright 2013, 2014 Jérémie Galarneau + * 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,42 +21,43 @@ * 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 */ -/* For bt_property_availability */ -#include - -/* For bt_event_class, bt_field_class, bt_stream_class */ -#include +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif #include #include +#include +#include + #ifdef __cplusplus extern "C" { #endif typedef enum bt_event_class_log_level { - BT_EVENT_CLASS_LOG_LEVEL_EMERGENCY, - BT_EVENT_CLASS_LOG_LEVEL_ALERT, - BT_EVENT_CLASS_LOG_LEVEL_CRITICAL, - BT_EVENT_CLASS_LOG_LEVEL_ERROR, - BT_EVENT_CLASS_LOG_LEVEL_WARNING, - BT_EVENT_CLASS_LOG_LEVEL_NOTICE, - BT_EVENT_CLASS_LOG_LEVEL_INFO, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_SYSTEM, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROGRAM, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROCESS, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_MODULE, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_UNIT, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE, - BT_EVENT_CLASS_LOG_LEVEL_DEBUG, + BT_EVENT_CLASS_LOG_LEVEL_EMERGENCY = 0, + BT_EVENT_CLASS_LOG_LEVEL_ALERT = 1, + BT_EVENT_CLASS_LOG_LEVEL_CRITICAL = 2, + BT_EVENT_CLASS_LOG_LEVEL_ERROR = 3, + BT_EVENT_CLASS_LOG_LEVEL_WARNING = 4, + BT_EVENT_CLASS_LOG_LEVEL_NOTICE = 5, + BT_EVENT_CLASS_LOG_LEVEL_INFO = 6, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_SYSTEM = 7, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROGRAM = 8, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROCESS = 9, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_MODULE = 10, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_UNIT = 11, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION = 12, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE = 13, + BT_EVENT_CLASS_LOG_LEVEL_DEBUG = 14, } bt_event_class_log_level; +extern const bt_value *bt_event_class_borrow_user_attributes_const( + const bt_event_class *event_class); + extern const bt_stream_class *bt_event_class_borrow_stream_class_const( const bt_event_class *event_class);