summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/cpp/files/cpp-example-lib.hpp
blob: 0ad9e7b7b2de2402d0f26a4ac9e9924c474b8e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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();
};