| // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| // Exceptions. See /LICENSE for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| #ifndef CRUBIT_RS_BINDINGS_FROM_CC_TEST_STRUCT_FORWARD_DECLARATIONS_DEFINITION_H_ |
| #define CRUBIT_RS_BINDINGS_FROM_CC_TEST_STRUCT_FORWARD_DECLARATIONS_DEFINITION_H_ |
| |
| #pragma clang lifetime_elision |
| |
| namespace ns { |
| |
| struct UnpinStruct { |
| int field = 0; |
| }; |
| |
| struct NonunpinStruct { |
| int field = 0; |
| ~NonunpinStruct() {} |
| }; |
| |
| int ReadUnpinStruct(const UnpinStruct& s); |
| void WriteUnpinStruct(UnpinStruct& s, int value); |
| int ReadNonunpinStruct(const NonunpinStruct& s); |
| void WriteNonunpinStruct(NonunpinStruct& s, int value); |
| } // namespace ns |
| #endif // CRUBIT_RS_BINDINGS_FROM_CC_TEST_STRUCT_FORWARD_DECLARATIONS_DEFINITION_H_ |