Commit | Line | Data |
---|---|---|
ca9f27f3 FD |
1 | #ifndef BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H |
2 | #define BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H | |
3 | ||
4 | /* | |
5 | * Babeltrace - Trace IR metadata object copy | |
6 | * | |
7 | * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation | |
8 | * Copyright (c) 2018 Philippe Proulx <pproulx@efficios.com> | |
9 | * Copyright (c) 2019 Francis Deslauriers <francis.deslauriers@efficios.com> | |
10 | * | |
11 | * Permission is hereby granted, free of charge, to any person obtaining a copy | |
12 | * of this software and associated documentation files (the "Software"), to deal | |
13 | * in the Software without restriction, including without limitation the rights | |
14 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
15 | * copies of the Software, and to permit persons to whom the Software is | |
16 | * furnished to do so, subject to the following conditions: | |
17 | * | |
18 | * The above copyright notice and this permission notice shall be included in | |
19 | * all copies or substantial portions of the Software. | |
20 | * | |
21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
22 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
23 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
24 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
25 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
26 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
27 | * SOFTWARE. | |
28 | */ | |
29 | ||
3fadfbc0 | 30 | #include <babeltrace2/babeltrace.h> |
91d81473 | 31 | #include "common/macros.h" |
ca9f27f3 FD |
32 | #include "trace-ir-mapping.h" |
33 | ||
34 | BT_HIDDEN | |
3b34b490 FD |
35 | enum debug_info_trace_ir_mapping_status copy_trace_class_content( |
36 | struct trace_ir_maps *trace_ir_maps, | |
db5d746d | 37 | const bt_trace_class *in_trace_class, |
3a3d15f3 | 38 | bt_trace_class *out_trace_class, |
91bc8451 PP |
39 | bt_logging_level log_level, |
40 | bt_self_component *self_comp); | |
ca9f27f3 FD |
41 | |
42 | BT_HIDDEN | |
3b34b490 FD |
43 | enum debug_info_trace_ir_mapping_status copy_stream_class_content( |
44 | struct trace_ir_maps *trace_ir_maps, | |
ca9f27f3 FD |
45 | const bt_stream_class *in_stream_class, |
46 | bt_stream_class *out_stream_class); | |
47 | ||
48 | BT_HIDDEN | |
3b34b490 FD |
49 | enum debug_info_trace_ir_mapping_status copy_event_class_content( |
50 | struct trace_ir_maps *trace_ir_maps, | |
ca9f27f3 FD |
51 | const bt_event_class *in_event_class, |
52 | bt_event_class *out_event_class); | |
53 | ||
54 | BT_HIDDEN | |
3b34b490 FD |
55 | enum debug_info_trace_ir_mapping_status copy_field_class_content( |
56 | struct trace_ir_metadata_maps *trace_ir_metadata_maps, | |
ca9f27f3 FD |
57 | const bt_field_class *in_field_class, |
58 | bt_field_class *out_field_class); | |
59 | ||
60 | BT_HIDDEN | |
3b34b490 | 61 | enum debug_info_trace_ir_mapping_status copy_event_common_context_field_class_content( |
ca9f27f3 FD |
62 | struct trace_ir_metadata_maps *trace_ir_metadata_maps, |
63 | const char *debug_info_field_class_name, | |
64 | const bt_field_class *in_field_class, | |
65 | bt_field_class *out_field_class); | |
66 | ||
67 | BT_HIDDEN | |
68 | bt_field_class *create_field_class_copy( | |
69 | struct trace_ir_metadata_maps *trace_ir_metadata_maps, | |
70 | const bt_field_class *in_field_class); | |
71 | ||
72 | #endif /* BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H */ |