xref: /openbmc/bmcweb/redfish-core/include/registries.hpp (revision 351d3063e86c5a6047c995ba72552bd82df86489)
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 {
19*351d3063SJason M. Bills struct Header
20*351d3063SJason M. Bills {
21*351d3063SJason M. Bills     const char* copyright;
22*351d3063SJason M. Bills     const char* type;
23*351d3063SJason M. Bills     const char* id;
24*351d3063SJason M. Bills     const char* name;
25*351d3063SJason M. Bills     const char* language;
26*351d3063SJason M. Bills     const char* description;
27*351d3063SJason M. Bills     const char* registryPrefix;
28*351d3063SJason M. Bills     const char* registryVersion;
29*351d3063SJason M. Bills     const char* owningEntity;
30*351d3063SJason 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;
3770304cb5SJason M. Bills     const int 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