Brian Silverman | 1059993 | 2022-08-15 06:05:53 -0700 | [diff] [blame] | 1 | #ifndef AOS_UUID_FOR_RUST_H_ |
| 2 | #define AOS_UUID_FOR_RUST_H_ |
| 3 | |
| 4 | #include "aos/uuid.h" |
| 5 | |
| 6 | namespace aos { |
| 7 | |
| 8 | // An alternative version of UUID to feed autocxx, to work around |
| 9 | // https://github.com/google/autocxx/issues/266. |
| 10 | /// <div rustbindgen replaces="aos::UUID"></div> |
| 11 | struct RustUUID { |
| 12 | uint8_t data[16]; |
| 13 | }; |
| 14 | |
| 15 | static_assert(sizeof(UUID) == sizeof(RustUUID)); |
| 16 | static_assert(alignof(UUID) == alignof(RustUUID)); |
| 17 | |
| 18 | } // namespace aos |
| 19 | |
| 20 | #endif // AOS_UUID_FOR_RUST_H_ |