lib: add user attributes property to metadata, stream, and trace objects
[babeltrace.git] / include / babeltrace2 / trace-ir / event-class.h
index 9b67e943749cf1afa4384be18ef81e3f6e942a16..e435d3876608665443f6f1fecba14c12bca11bd3 100644 (file)
@@ -2,8 +2,7 @@
 #define BABELTRACE2_TRACE_IR_EVENT_CLASS_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
@@ -22,9 +21,6 @@
  * 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
 
 #include <stdint.h>
 
-/* For bt_event_class_log_level */
 #include <babeltrace2/trace-ir/event-class-const.h>
-
-/* For bt_event_class, bt_stream_class */
 #include <babeltrace2/types.h>
 
 #ifdef __cplusplus
@@ -49,6 +42,12 @@ extern bt_event_class *bt_event_class_create(
 extern bt_event_class *bt_event_class_create_with_id(
                bt_stream_class *stream_class, uint64_t id);
 
+extern bt_value *bt_event_class_borrow_user_attributes(
+               bt_event_class *event_class);
+
+extern void bt_event_class_set_user_attributes(
+               bt_event_class *event_class, const bt_value *user_attributes);
+
 extern bt_stream_class *bt_event_class_borrow_stream_class(
                bt_event_class *event_class);
 
This page took 0.0245 seconds and 4 git commands to generate.