Fix: src.ctf.lttng-live: emitting stream end msg with no stream
[babeltrace.git] / include / babeltrace2 / trace-ir / event-class-const.h
index dde7c9236425d63e5ff2ad1ed3b69aec8a2a9c2b..fa1ff78698fc8ad69a7a743eef31f9e89fad3be2 100644 (file)
@@ -2,8 +2,7 @@
 #define BABELTRACE2_TRACE_IR_EVENT_CLASS_CONST_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
- * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * 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
  * 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 <babeltrace2/property.h>
-
-/* For bt_event_class, bt_field_class, bt_stream_class */
-#include <babeltrace2/types.h>
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
 
 #include <stdint.h>
 #include <stddef.h>
 
+#include <babeltrace2/property.h>
+#include <babeltrace2/types.h>
+
 #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);
 
This page took 0.0247 seconds and 4 git commands to generate.