Files
openwrt_yocto/poky/meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp
T
francis.wang 4c86c082a2 Initial commit: OpenWrt-Yocto monorepo
Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and
meta-openwrt into a single repository.

Components:
- poky/             Yocto core framework (BitBake + OE-Core)
- meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking)
- meta-openwrt/     OpenWrt customization layer
- setup-env.sh      One-click build environment setup
- README.md         Project documentation
2026-07-11 13:28:01 +08:00

22 lines
467 B
C++

/*
* Copyright OpenEmbedded Contributors
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <string>
struct CppExample
{
inline static const std::string test_string = "cpp-example-lib Magic: 123456789";
/* Retrieve a constant string */
const std::string &get_string();
/* Retrieve a constant string from a library */
const char *get_json_c_version();
/* Call a more advanced function from a library */
void print_json();
};