#ifndef __{{header_guard}}_H__ | |
#define __{{header_guard}}_H__ | |
#include <string> | |
#include <vector> | |
#include <lib/zx/vmo.h> | |
#include <lib/inspect/cpp/inspect.h> | |
namespace {{cpp_namespace}} { | |
struct Config { | |
public: | |
static constexpr bool kIsStructuredConfig = true; | |
static Config TakeFromStartupHandle() noexcept; | |
static Config CreateFromVmo(zx::vmo config_vmo) noexcept; | |
std::string ToString() const noexcept; | |
zx::vmo ToVmo() const noexcept; | |
{{> typedef }} | |
}; | |
} | |
#endif |