diff options
Diffstat (limited to 'meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp')
| -rw-r--r-- | meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp b/meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp new file mode 100644 index 0000000000..0ad9e7b7b2 --- /dev/null +++ b/meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * Copyright OpenEmbedded Contributors | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: MIT | ||
| 5 | */ | ||
| 6 | |||
| 7 | #pragma once | ||
| 8 | |||
| 9 | #include <string> | ||
| 10 | |||
| 11 | struct CppExample | ||
| 12 | { | ||
| 13 | inline static const std::string test_string = "cpp-example-lib Magic: 123456789"; | ||
| 14 | |||
| 15 | /* Retrieve a constant string */ | ||
| 16 | const std::string &get_string(); | ||
| 17 | /* Retrieve a constant string from a library */ | ||
| 18 | const char *get_json_c_version(); | ||
| 19 | /* Call a more advanced function from a library */ | ||
| 20 | void print_json(); | ||
| 21 | }; | ||
