summaryrefslogtreecommitdiff
path: root/redfish-core/include/redfish.hpp
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2019-03-27 22:03:59 +0300
committerEd Tanous <ed.tanous@intel.com>2019-05-08 22:08:00 +0300
commit70304cb594859b3862eeecc0a16c8e6e9a126530 (patch)
treea8372c36d4a7d1fa419d66d191751652bf213043 /redfish-core/include/redfish.hpp
parentaf8f791296511553e11643d0bbbd80dfe9cd30e3 (diff)
downloadbmcweb-70304cb594859b3862eeecc0a16c8e6e9a126530.tar.xz
Remove the static Base Message Registry file
This change removes the static Base Message Registry file and replaces it with a compile-time structure. A script is used to pull the Base Message Registry file from the DMTF and parse it into the .hpp structure. Tested: Verified that after running the script, I can get the same Redfish data back from the existing endpoints without using the static files. Change-Id: Ide3c61ecff62801c06619d5c3edc2229c945d8e7 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/include/redfish.hpp')
-rw-r--r--redfish-core/include/redfish.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index 866eaed467..a741a76042 100644
--- a/redfish-core/include/redfish.hpp
+++ b/redfish-core/include/redfish.hpp
@@ -1,5 +1,5 @@
/*
-// Copyright (c) 2018 Intel Corporation
+// Copyright (c) 2018-2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
#include "../lib/ethernet.hpp"
#include "../lib/log_services.hpp"
#include "../lib/managers.hpp"
+#include "../lib/message_registries.hpp"
#include "../lib/network_protocol.hpp"
#include "../lib/power.hpp"
#include "../lib/redfish_sessions.hpp"
@@ -107,6 +108,11 @@ class RedfishService
nodes.emplace_back(std::make_unique<DBusLogServiceActionsClear>(app));
#endif
+ nodes.emplace_back(
+ std::make_unique<MessageRegistryFileCollection>(app));
+ nodes.emplace_back(std::make_unique<BaseMessageRegistryFile>(app));
+ nodes.emplace_back(std::make_unique<BaseMessageRegistry>(app));
+
for (const auto& node : nodes)
{
node->initPrivileges();