Commit | Line | Data |
---|---|---|
0f5c653b PP |
1 | # The MIT License (MIT) |
2 | # | |
5262b543 | 3 | # Copyright (c) 2014-2020 Philippe Proulx <pproulx@efficios.com> |
0f5c653b | 4 | # |
1378f213 PP |
5 | # Permission is hereby granted, free of charge, to any person obtaining |
6 | # a copy of this software and associated documentation files (the | |
7 | # "Software"), to deal in the Software without restriction, including | |
8 | # without limitation the rights to use, copy, modify, merge, publish, | |
9 | # distribute, sublicense, and/or sell copies of the Software, and to | |
10 | # permit persons to whom the Software is furnished to do so, subject to | |
11 | # the following conditions: | |
0f5c653b | 12 | # |
1378f213 PP |
13 | # The above copyright notice and this permission notice shall be |
14 | # included in all copies or substantial portions of the Software. | |
0f5c653b | 15 | # |
1378f213 PP |
16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
17 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
19 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
20 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
21 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
22 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
0f5c653b | 23 | |
4810b707 PP |
24 | import barectf.config_parse_common as barectf_config_parse_common |
25 | import barectf.version as barectf_version | |
26 | import barectf.config as barectf_config | |
57071907 | 27 | import barectf.config_file as barectf_config_file |
728fc4a7 | 28 | import barectf.codegen as barectf_codegen |
2d55dc7d | 29 | import barectf.typing as barectf_typing |
e5aa0be3 PP |
30 | |
31 | ||
4810b707 PP |
32 | # version API |
33 | __major_version__ = barectf_version.__major_version__ | |
34 | __minor_version__ = barectf_version.__minor_version__ | |
35 | __patch_version__ = barectf_version.__patch_version__ | |
36 | __version__ = barectf_version.__version__ | |
37 | ||
38 | ||
2d55dc7d PP |
39 | # common typing API |
40 | Index = barectf_typing.Index | |
41 | Count = barectf_typing.Count | |
42 | Id = barectf_typing.Id | |
43 | Alignment = barectf_typing.Alignment | |
44 | VersionNumber = barectf_typing.VersionNumber | |
45 | ||
46 | ||
4810b707 PP |
47 | # configuration API |
48 | _ArrayFieldType = barectf_config._ArrayFieldType | |
49 | _BitArrayFieldType = barectf_config._BitArrayFieldType | |
50 | _ConfigurationParseError = barectf_config_parse_common._ConfigurationParseError | |
51 | _EnumerationFieldType = barectf_config._EnumerationFieldType | |
52 | _FieldType = barectf_config._FieldType | |
53 | _IntegerFieldType = barectf_config._IntegerFieldType | |
54 | ByteOrder = barectf_config.ByteOrder | |
55 | ClockType = barectf_config.ClockType | |
56 | ClockTypeCTypes = barectf_config.ClockTypeCTypes | |
57 | ClockTypeOffset = barectf_config.ClockTypeOffset | |
58 | Configuration = barectf_config.Configuration | |
4810b707 PP |
59 | ConfigurationCodeGenerationHeaderOptions = barectf_config.ConfigurationCodeGenerationHeaderOptions |
60 | ConfigurationCodeGenerationOptions = barectf_config.ConfigurationCodeGenerationOptions | |
61 | ConfigurationOptions = barectf_config.ConfigurationOptions | |
62 | DEFAULT_FIELD_TYPE = barectf_config.DEFAULT_FIELD_TYPE | |
63 | DisplayBase = barectf_config.DisplayBase | |
4810b707 PP |
64 | EnumerationFieldTypeMapping = barectf_config.EnumerationFieldTypeMapping |
65 | EnumerationFieldTypeMappingRange = barectf_config.EnumerationFieldTypeMappingRange | |
66 | EnumerationFieldTypeMappings = barectf_config.EnumerationFieldTypeMappings | |
67 | EventType = barectf_config.EventType | |
2d55dc7d | 68 | LogLevel = barectf_config.LogLevel |
4810b707 PP |
69 | RealFieldType = barectf_config.RealFieldType |
70 | SignedEnumerationFieldType = barectf_config.SignedEnumerationFieldType | |
71 | SignedIntegerFieldType = barectf_config.SignedIntegerFieldType | |
72 | StaticArrayFieldType = barectf_config.StaticArrayFieldType | |
73 | StreamType = barectf_config.StreamType | |
74 | StreamTypeEventFeatures = barectf_config.StreamTypeEventFeatures | |
75 | StreamTypeFeatures = barectf_config.StreamTypeFeatures | |
76 | StreamTypePacketFeatures = barectf_config.StreamTypePacketFeatures | |
77 | StringFieldType = barectf_config.StringFieldType | |
78 | StructureFieldType = barectf_config.StructureFieldType | |
79 | StructureFieldTypeMember = barectf_config.StructureFieldTypeMember | |
80 | StructureFieldTypeMembers = barectf_config.StructureFieldTypeMembers | |
81 | Trace = barectf_config.Trace | |
82 | TraceEnvironment = barectf_config.TraceEnvironment | |
83 | TraceType = barectf_config.TraceType | |
84 | TraceTypeFeatures = barectf_config.TraceTypeFeatures | |
85 | UnsignedEnumerationFieldType = barectf_config.UnsignedEnumerationFieldType | |
86 | UnsignedIntegerFieldType = barectf_config.UnsignedIntegerFieldType | |
87 | ||
88 | ||
57071907 PP |
89 | # configuration file API |
90 | configuration_file_major_version = barectf_config_file.configuration_file_major_version | |
91 | configuration_from_file = barectf_config_file.configuration_from_file | |
92 | effective_configuration_file = barectf_config_file.effective_configuration_file | |
93 | ||
94 | ||
4810b707 | 95 | # code generation API |
728fc4a7 | 96 | CodeGenerator = barectf_codegen.CodeGenerator |
4810b707 PP |
97 | |
98 | ||
f7d0c1b5 | 99 | # remove local names |
4810b707 PP |
100 | del barectf_config_parse_common |
101 | del barectf_version | |
102 | del barectf_config | |
f7d0c1b5 | 103 | del barectf_config_file |
728fc4a7 | 104 | del barectf_codegen |
2d55dc7d | 105 | del barectf_typing |