Commit | Line | Data |
---|---|---|
5594f671 MD |
1 | typealias integer { size = 8; align = 8; signed = false; } := uint8_t; |
2 | typealias integer { size = 32; align = 8; signed = false; } := uint32_t; | |
3 | ||
4 | // Define newtype | |
5 | typealias uint32_t := newtype; | |
6 | ||
7 | trace { | |
8 | // Hide newtype | |
9 | typedef uint8_t newtype; | |
10 | ||
11 | major = 0; | |
12 | minor = 1; | |
13 | uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; | |
14 | byte_order = le; | |
15 | packet.header := struct { | |
16 | uint8_t field; | |
17 | }; | |
18 | }; | |
19 | ||
20 | event { | |
21 | name = string; | |
22 | fields := struct { string str; }; | |
23 | }; |