blob: 1300552b4bfcea321b8df7ca273116fe2a1557dc [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace google_boot_time
{
// clang-format off
enum class PowerSourceTypes : std::uint8_t{
Invalid,
Unknown,
AC,
DC,
};
NLOHMANN_JSON_SERIALIZE_ENUM(PowerSourceTypes, {
{PowerSourceTypes::Invalid, "Invalid"},
{PowerSourceTypes::Unknown, "Unknown"},
{PowerSourceTypes::AC, "AC"},
{PowerSourceTypes::DC, "DC"},
});
} // namespace google_boot_time
// clang-format on