diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-03-27 22:58:21 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-05-08 22:08:00 +0300 |
commit | 351d3063e86c5a6047c995ba72552bd82df86489 (patch) | |
tree | be1011e3a0209875900a314e1c173be66618670f /redfish-core/include | |
parent | 70304cb594859b3862eeecc0a16c8e6e9a126530 (diff) | |
download | bmcweb-351d3063e86c5a6047c995ba72552bd82df86489.tar.xz |
Parse Message Registry header info from the file
This extends the Message Registry parsing to include header
details that are part of the redfish resource.
Tested:
Verified that the MessageRegistry info all returns correctly
in the redfish response.
Change-Id: I6179c07f4067cd4520fce3e774d18530fede0a95
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/include')
-rw-r--r-- | redfish-core/include/registries.hpp | 12 | ||||
-rw-r--r-- | redfish-core/include/registries/base_message_registry.hpp | 12 |
2 files changed, 23 insertions, 1 deletions
diff --git a/redfish-core/include/registries.hpp b/redfish-core/include/registries.hpp index 7ee5232cd5..6b30be9363 100644 --- a/redfish-core/include/registries.hpp +++ b/redfish-core/include/registries.hpp @@ -16,6 +16,18 @@ #pragma once namespace redfish::message_registries { +struct Header +{ + const char* copyright; + const char* type; + const char* id; + const char* name; + const char* language; + const char* description; + const char* registryPrefix; + const char* registryVersion; + const char* owningEntity; +}; struct Message { diff --git a/redfish-core/include/registries/base_message_registry.hpp b/redfish-core/include/registries/base_message_registry.hpp index 1d54fdd868..472f51edce 100644 --- a/redfish-core/include/registries/base_message_registry.hpp +++ b/redfish-core/include/registries/base_message_registry.hpp @@ -22,7 +22,17 @@ namespace redfish::message_registries::base { - +const Header header = { + .copyright = "Copyright 2014-2018 DMTF. All rights reserved.", + .type = "#MessageRegistry.v1_0_0.MessageRegistry", + .id = "Base.1.4.0", + .name = "Base Message Registry", + .language = "en", + .description = "This registry defines the base messages for Redfish", + .registryPrefix = "Base", + .registryVersion = "1.4.0", + .owningEntity = "DMTF", +}; const std::array registry = { MessageEntry{ "AccessDenied", |