blob: 730ed52b62aabd9c22bca2d4e27727df95d4f2fd [file] [log] [blame]
/*
*
* Copyright (c) 2022 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// THIS FILE IS GENERATED BY ZAP
#pragma once
#include <clusters/MediaInput/Enums.h>
namespace chip {
namespace app {
namespace Clusters {
static auto __attribute__((unused)) EnsureKnownEnumValue(MediaInput::InputTypeEnum val)
{
using EnumType = MediaInput::InputTypeEnum;
switch (val)
{
case EnumType::kInternal:
case EnumType::kAux:
case EnumType::kCoax:
case EnumType::kComposite:
case EnumType::kHdmi:
case EnumType::kInput:
case EnumType::kLine:
case EnumType::kOptical:
case EnumType::kVideo:
case EnumType::kScart:
case EnumType::kUsb:
case EnumType::kOther:
return val;
default:
return EnumType::kUnknownEnumValue;
}
}
} // namespace Clusters
} // namespace app
} // namespace chip