blob: 167eb0ffa3192ec0aad50210ef3cc449d0e9341a [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <weave/device.h>
#include <weave/enum_to_string.h>
#include <weave/export.h>
namespace weave {
namespace {
const EnumToStringMap<GcdState>::Map kMap[] = {
{GcdState::kUnconfigured, "unconfigured"},
{GcdState::kConnecting, "connecting"},
{GcdState::kConnected, "connected"},
{GcdState::kInvalidCredentials, "invalid_credentials"},
};
} // namespace
template <>
LIBWEAVE_EXPORT EnumToStringMap<GcdState>::EnumToStringMap()
: EnumToStringMap(kMap) {}
} // namespace weave