1 // Copyright 2015 The Weave Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <weave/device.h> 6 #include <weave/enum_to_string.h> 7 #include <weave/export.h> 8 9 namespace weave { 10 11 namespace { 12 13 const EnumToStringMap<GcdState>::Map kMap[] = { 14 {GcdState::kUnconfigured, "unconfigured"}, 15 {GcdState::kConnecting, "connecting"}, 16 {GcdState::kConnected, "connected"}, 17 {GcdState::kInvalidCredentials, "invalid_credentials"}, 18 }; 19 20 } // namespace 21 22 template <> EnumToStringMap()23LIBWEAVE_EXPORT EnumToStringMap<GcdState>::EnumToStringMap() 24 : EnumToStringMap(kMap) {} 25 26 } // namespace weave 27