170304cb5SJason M. Bills /* 270304cb5SJason M. Bills // Copyright (c) 2019 Intel Corporation 370304cb5SJason M. Bills // 470304cb5SJason M. Bills // Licensed under the Apache License, Version 2.0 (the "License"); 570304cb5SJason M. Bills // you may not use this file except in compliance with the License. 670304cb5SJason M. Bills // You may obtain a copy of the License at 770304cb5SJason M. Bills // 870304cb5SJason M. Bills // http://www.apache.org/licenses/LICENSE-2.0 970304cb5SJason M. Bills // 1070304cb5SJason M. Bills // Unless required by applicable law or agreed to in writing, software 1170304cb5SJason M. Bills // distributed under the License is distributed on an "AS IS" BASIS, 1270304cb5SJason M. Bills // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1370304cb5SJason M. Bills // See the License for the specific language governing permissions and 1470304cb5SJason M. Bills // limitations under the License. 1570304cb5SJason M. Bills */ 1670304cb5SJason M. Bills #pragma once 1770304cb5SJason M. Bills namespace redfish::message_registries 1870304cb5SJason M. Bills { 19351d3063SJason M. Bills struct Header 20351d3063SJason M. Bills { 21351d3063SJason M. Bills const char* copyright; 22351d3063SJason M. Bills const char* type; 23351d3063SJason M. Bills const char* id; 24351d3063SJason M. Bills const char* name; 25351d3063SJason M. Bills const char* language; 26351d3063SJason M. Bills const char* description; 27351d3063SJason M. Bills const char* registryPrefix; 28351d3063SJason M. Bills const char* registryVersion; 29351d3063SJason M. Bills const char* owningEntity; 30351d3063SJason M. Bills }; 3170304cb5SJason M. Bills 3270304cb5SJason M. Bills struct Message 3370304cb5SJason M. Bills { 3470304cb5SJason M. Bills const char* description; 3570304cb5SJason M. Bills const char* message; 3670304cb5SJason M. Bills const char* severity; 37*271584abSEd Tanous const size_t numberOfArgs; 3870304cb5SJason M. Bills std::array<const char*, 5> paramTypes; 3970304cb5SJason M. Bills const char* resolution; 4070304cb5SJason M. Bills }; 4170304cb5SJason M. Bills using MessageEntry = std::pair<const char*, const Message>; 4270304cb5SJason M. Bills } // namespace redfish::message_registries 43