blob: 06496dcf84dcd68cf1dfbe5306d36a7590f59c49 [file] [log] [blame]
Deepak Kodihalli557dfb02019-05-12 13:11:17 +05301#pragma once
2
Sampa Misraa2fa0702019-05-31 01:28:55 -05003#include "config.h"
4
George Liu6492f522020-06-16 10:34:05 +08005#include "libpldm/platform.h"
6#include "libpldm/states.h"
7
Deepak Kodihallid130e1a2020-06-17 05:55:32 -05008#include "common/utils.hpp"
TOM JOSEPHd4d97a52020-03-23 14:36:34 +05309#include "event_parser.hpp"
Tom Joseph33e9c7e2020-06-11 22:09:52 +053010#include "fru.hpp"
Deepak Kodihalliac19bd62020-06-16 08:25:23 -050011#include "host-bmc/host_pdr_handler.hpp"
Sampa Misraa2fa0702019-05-31 01:28:55 -050012#include "libpldmresponder/pdr.hpp"
George Liue53193f2020-02-24 09:23:26 +080013#include "libpldmresponder/pdr_utils.hpp"
Deepak Kodihalli1521f6d2020-06-16 08:51:02 -050014#include "pldmd/handler.hpp"
Sampa Misraa2fa0702019-05-31 01:28:55 -050015
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053016#include <stdint.h>
17
Sampa Misraa2fa0702019-05-31 01:28:55 -050018#include <map>
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053019
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053020namespace pldm
21{
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053022namespace responder
23{
Sampa Misraa2fa0702019-05-31 01:28:55 -050024namespace platform
25{
26
George Liu1ec85d42020-02-12 16:05:32 +080027using namespace pldm::utils;
28using namespace pldm::responder::pdr_utils;
29
George Liua2870722020-02-11 11:09:30 +080030using generatePDR =
George Liu36e81352020-07-01 14:40:30 +080031 std::function<void(const pldm::utils::DBusHandler& dBusIntf,
32 const Json& json, pdr_utils::RepoInterface& repo)>;
George Liua2870722020-02-11 11:09:30 +080033
George Liu1ec85d42020-02-12 16:05:32 +080034using EffecterId = uint16_t;
George Liua2870722020-02-11 11:09:30 +080035using DbusObjMaps =
36 std::map<EffecterId,
37 std::tuple<pdr_utils::DbusMappings, pdr_utils::DbusValMaps>>;
Tom Joseph56e45c52020-03-16 10:01:45 +053038using DbusPath = std::string;
39using EffecterObjs = std::vector<DbusPath>;
40using EventType = uint8_t;
41using EventHandler = std::function<int(
42 const pldm_msg* request, size_t payloadLength, uint8_t formatVersion,
43 uint8_t tid, size_t eventDataOffset)>;
44using EventHandlers = std::vector<EventHandler>;
45using EventMap = std::map<EventType, EventHandlers>;
Deepak Kodihallic682fe22020-03-04 00:42:54 -060046
Zahed Hossain75330f32020-03-24 02:15:03 -050047// EventEntry = <uint8_t> - EventState <uint8_t> - SensorOffset <uint16_t> -
48// SensorID
49using EventEntry = uint32_t;
50struct DBusInfo
51{
52 pldm::utils::DBusMapping dBusValues;
53 pldm::utils::PropertyValue dBusPropertyValue;
54};
55
Deepak Kodihallibc669f12019-11-28 08:52:07 -060056class Handler : public CmdHandler
Sampa Misraa2fa0702019-05-31 01:28:55 -050057{
Deepak Kodihallibc669f12019-11-28 08:52:07 -060058 public:
Deepak Kodihallib5c227e2020-07-13 06:58:34 -050059 Handler(const pldm::utils::DBusHandler* dBusIntf,
George Liu36e81352020-07-01 14:40:30 +080060 const std::string& pdrJsonsDir, const std::string& eventsJsonsDir,
TOM JOSEPHd4d97a52020-03-23 14:36:34 +053061 pldm_pdr* repo, HostPDRHandler* hostPDRHandler,
Deepak Kodihallib5c227e2020-07-13 06:58:34 -050062 fru::Handler* fruHandler, bool buildPDRLazily = false,
Tom Joseph56e45c52020-03-16 10:01:45 +053063 const std::optional<EventMap>& addOnHandlersMap = std::nullopt) :
Pavithra Barithaya51efaf82020-04-02 02:42:27 -050064 pdrRepo(repo),
Tom Joseph33e9c7e2020-06-11 22:09:52 +053065 hostPDRHandler(hostPDRHandler), stateSensorHandler(eventsJsonsDir),
Deepak Kodihallib5c227e2020-07-13 06:58:34 -050066 fruHandler(fruHandler), dBusIntf(dBusIntf), pdrJsonsDir(pdrJsonsDir),
67 pdrCreated(false)
Sampa Misraa2fa0702019-05-31 01:28:55 -050068 {
Deepak Kodihallib5c227e2020-07-13 06:58:34 -050069 if (!buildPDRLazily)
70 {
Sampa Misra12afe112020-05-25 11:40:44 -050071 generateTerminusLocatorPDR(pdrRepo);
Deepak Kodihallib5c227e2020-07-13 06:58:34 -050072 generate(*dBusIntf, pdrJsonsDir, pdrRepo);
73 pdrCreated = true;
74 }
Deepak Kodihallic682fe22020-03-04 00:42:54 -060075
Deepak Kodihallibc669f12019-11-28 08:52:07 -060076 handlers.emplace(PLDM_GET_PDR,
77 [this](const pldm_msg* request, size_t payloadLength) {
78 return this->getPDR(request, payloadLength);
79 });
George Liueccb0c52020-01-14 11:09:56 +080080 handlers.emplace(PLDM_SET_NUMERIC_EFFECTER_VALUE,
81 [this](const pldm_msg* request, size_t payloadLength) {
82 return this->setNumericEffecterValue(
83 request, payloadLength);
84 });
Deepak Kodihallibc669f12019-11-28 08:52:07 -060085 handlers.emplace(PLDM_SET_STATE_EFFECTER_STATES,
86 [this](const pldm_msg* request, size_t payloadLength) {
87 return this->setStateEffecterStates(request,
88 payloadLength);
89 });
Tom Joseph56e45c52020-03-16 10:01:45 +053090 handlers.emplace(PLDM_PLATFORM_EVENT_MESSAGE,
91 [this](const pldm_msg* request, size_t payloadLength) {
92 return this->platformEventMessage(request,
93 payloadLength);
94 });
95
96 // Default handler for PLDM Events
97 eventHandlers[PLDM_SENSOR_EVENT].emplace_back(
98 [this](const pldm_msg* request, size_t payloadLength,
99 uint8_t formatVersion, uint8_t tid, size_t eventDataOffset) {
100 return this->sensorEvent(request, payloadLength, formatVersion,
101 tid, eventDataOffset);
102 });
Deepak Kodihalli8cb6f662020-04-10 02:55:43 -0500103 eventHandlers[PLDM_PDR_REPOSITORY_CHG_EVENT].emplace_back(
104 [this](const pldm_msg* request, size_t payloadLength,
105 uint8_t formatVersion, uint8_t tid, size_t eventDataOffset) {
106 return this->pldmPDRRepositoryChgEvent(request, payloadLength,
107 formatVersion, tid,
108 eventDataOffset);
109 });
Tom Joseph56e45c52020-03-16 10:01:45 +0530110
111 // Additional OEM event handlers for PLDM events, append it to the
112 // standard handlers
113 if (addOnHandlersMap)
114 {
115 auto addOnHandlers = addOnHandlersMap.value();
116 for (EventMap::iterator iter = addOnHandlers.begin();
117 iter != addOnHandlers.end(); ++iter)
118 {
119 auto search = eventHandlers.find(iter->first);
120 if (search != eventHandlers.end())
121 {
122 search->second.insert(std::end(search->second),
123 std::begin(iter->second),
124 std::end(iter->second));
125 }
126 else
127 {
128 eventHandlers.emplace(iter->first, iter->second);
129 }
130 }
131 }
Sampa Misraa2fa0702019-05-31 01:28:55 -0500132 }
133
George Liu1ec85d42020-02-12 16:05:32 +0800134 pdr_utils::Repo& getRepo()
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600135 {
George Liu1ec85d42020-02-12 16:05:32 +0800136 return this->pdrRepo;
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600137 }
138
George Liu1ec85d42020-02-12 16:05:32 +0800139 /** @brief Add D-Bus mapping and value mapping(stateId to D-Bus) for the
George Liuadbe1722020-05-09 19:20:19 +0800140 * Id. If the same id is added, the previous dbusObjs will
George Liu1ec85d42020-02-12 16:05:32 +0800141 * be "over-written".
142 *
George Liuadbe1722020-05-09 19:20:19 +0800143 * @param[in] Id - effecter/sensor id
George Liu1ec85d42020-02-12 16:05:32 +0800144 * @param[in] dbusObj - list of D-Bus object structure and list of D-Bus
145 * property value to attribute value
George Liuadbe1722020-05-09 19:20:19 +0800146 * @param[in] typeId - the type id of enum
George Liu1ec85d42020-02-12 16:05:32 +0800147 */
George Liua2870722020-02-11 11:09:30 +0800148 void addDbusObjMaps(
George Liuadbe1722020-05-09 19:20:19 +0800149 uint16_t id,
150 std::tuple<pdr_utils::DbusMappings, pdr_utils::DbusValMaps> dbusObj,
151 TypeId typeId = TypeId::PLDM_EFFECTER_ID);
George Liu1ec85d42020-02-12 16:05:32 +0800152
George Liuadbe1722020-05-09 19:20:19 +0800153 /** @brief Retrieve an id -> D-Bus objects mapping
George Liu1ec85d42020-02-12 16:05:32 +0800154 *
George Liuadbe1722020-05-09 19:20:19 +0800155 * @param[in] Id - id
156 * @param[in] typeId - the type id of enum
George Liu1ec85d42020-02-12 16:05:32 +0800157 *
George Liua2870722020-02-11 11:09:30 +0800158 * @return std::tuple<pdr_utils::DbusMappings, pdr_utils::DbusValMaps> -
159 * list of D-Bus object structure and list of D-Bus property value
160 * to attribute value
George Liu1ec85d42020-02-12 16:05:32 +0800161 */
George Liua2870722020-02-11 11:09:30 +0800162 const std::tuple<pdr_utils::DbusMappings, pdr_utils::DbusValMaps>&
George Liuadbe1722020-05-09 19:20:19 +0800163 getDbusObjMaps(uint16_t id,
164 TypeId typeId = TypeId::PLDM_EFFECTER_ID) const;
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600165
166 uint16_t getNextEffecterId()
167 {
168 return ++nextEffecterId;
169 }
170
George Liuadbe1722020-05-09 19:20:19 +0800171 uint16_t getNextSensorId()
172 {
173 return ++nextSensorId;
174 }
175
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600176 /** @brief Parse PDR JSONs and build PDR repository
177 *
George Liu36e81352020-07-01 14:40:30 +0800178 * @param[in] dBusIntf - The interface object
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600179 * @param[in] dir - directory housing platform specific PDR JSON files
180 * @param[in] repo - instance of concrete implementation of Repo
181 */
George Liu36e81352020-07-01 14:40:30 +0800182 void generate(const pldm::utils::DBusHandler& dBusIntf,
183 const std::string& dir, Repo& repo);
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600184
185 /** @brief Parse PDR JSONs and build state effecter PDR repository
186 *
187 * @param[in] json - platform specific PDR JSON files
188 * @param[in] repo - instance of state effecter implementation of Repo
189 */
190 void generateStateEffecterRepo(const Json& json, Repo& repo);
191
Tom Joseph56e45c52020-03-16 10:01:45 +0530192 /** @brief map of PLDM event type to EventHandlers
193 *
194 */
195 EventMap eventHandlers;
196
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600197 /** @brief Handler for GetPDR
198 *
199 * @param[in] request - Request message payload
200 * @param[in] payloadLength - Request payload length
201 * @param[out] Response - Response message written here
202 */
203 Response getPDR(const pldm_msg* request, size_t payloadLength);
Sampa Misraa2fa0702019-05-31 01:28:55 -0500204
George Liueccb0c52020-01-14 11:09:56 +0800205 /** @brief Handler for setNumericEffecterValue
206 *
207 * @param[in] request - Request message
208 * @param[in] payloadLength - Request payload length
209 * @return Response - PLDM Response message
210 */
211 Response setNumericEffecterValue(const pldm_msg* request,
212 size_t payloadLength);
213
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600214 /** @brief Handler for setStateEffecterStates
215 *
216 * @param[in] request - Request message
217 * @param[in] payloadLength - Request payload length
218 * @return Response - PLDM Response message
219 */
220 Response setStateEffecterStates(const pldm_msg* request,
221 size_t payloadLength);
222
Tom Joseph56e45c52020-03-16 10:01:45 +0530223 /** @brief Handler for PlatformEventMessage
224 *
225 * @param[in] request - Request message
226 * @param[in] payloadLength - Request payload length
227 * @return Response - PLDM Response message
228 */
229 Response platformEventMessage(const pldm_msg* request,
230 size_t payloadLength);
231
232 /** @brief Handler for event class Sensor event
233 *
234 * @param[in] request - Request message
235 * @param[in] payloadLength - Request payload length
236 * @param[in] formatVersion - Version of the event format
237 * @param[in] tid - Terminus ID of the event's originator
238 * @param[in] eventDataOffset - Offset of the event data in the request
239 * message
240 * @return PLDM completion code
241 */
242 int sensorEvent(const pldm_msg* request, size_t payloadLength,
243 uint8_t formatVersion, uint8_t tid, size_t eventDataOffset);
244
Deepak Kodihalli8cb6f662020-04-10 02:55:43 -0500245 /** @brief Handler for pldmPDRRepositoryChgEvent
246 *
247 * @param[in] request - Request message
248 * @param[in] payloadLength - Request payload length
249 * @param[in] formatVersion - Version of the event format
250 * @param[in] tid - Terminus ID of the event's originator
251 * @param[in] eventDataOffset - Offset of the event data in the request
252 * message
253 * @return PLDM completion code
254 */
255 int pldmPDRRepositoryChgEvent(const pldm_msg* request, size_t payloadLength,
256 uint8_t formatVersion, uint8_t tid,
257 size_t eventDataOffset);
258
259 /** @brief Handler for extracting the PDR handles from changeEntries
260 *
261 * @param[in] changeEntryData - ChangeEntry data from changeRecord
262 * @param[in] changeEntryDataSize - total size of changeEntryData
263 * @param[in] numberOfChangeEntries - total number of changeEntries to
264 * extract
265 * @param[out] pdrRecordHandles - std::vector where the extracted PDR
266 * handles are placed
267 * @return PLDM completion code
268 */
269 int getPDRRecordHandles(const ChangeEntry* changeEntryData,
270 size_t changeEntryDataSize,
271 size_t numberOfChangeEntries,
272 PDRRecordHandles& pdrRecordHandles);
273
Zahed Hossain75330f32020-03-24 02:15:03 -0500274 /** @brief Handler for setting Sensor event data
275 *
276 * @param[in] sensorId - sensorID value of the sensor
277 * @param[in] sensorOffset - Identifies which state sensor within a
278 * composite state sensor the event is being returned for
279 * @param[in] eventState - The event state value from the state change that
280 * triggered the event message
281 * @return PLDM completion code
282 */
283 int setSensorEventData(uint16_t sensorId, uint8_t sensorOffset,
284 uint8_t eventState);
285
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600286 /** @brief Function to set the effecter requested by pldm requester
287 * @param[in] dBusIntf - The interface object
288 * @param[in] effecterId - Effecter ID sent by the requester to act on
289 * @param[in] stateField - The state field data for each of the states,
290 * equal to composite effecter count in number
291 * @return - Success or failure in setting the states. Returns failure in
292 * terms of PLDM completion codes if atleast one state fails to be set
293 */
294 template <class DBusInterface>
295 int setStateEffecterStatesHandler(
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600296 const DBusInterface& dBusIntf, uint16_t effecterId,
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600297 const std::vector<set_effecter_state_field>& stateField)
Sampa Misraa2fa0702019-05-31 01:28:55 -0500298 {
George Liue53193f2020-02-24 09:23:26 +0800299 using namespace pldm::responder::pdr;
George Liu1e44c732020-02-28 20:20:06 +0800300 using namespace pldm::utils;
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600301 using StateSetNum = uint8_t;
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600302
303 state_effecter_possible_states* states = nullptr;
304 pldm_state_effecter_pdr* pdr = nullptr;
305 uint8_t compEffecterCnt = stateField.size();
George Liu1ec85d42020-02-12 16:05:32 +0800306
307 std::unique_ptr<pldm_pdr, decltype(&pldm_pdr_destroy)>
308 stateEffecterPdrRepo(pldm_pdr_init(), pldm_pdr_destroy);
309 Repo stateEffecterPDRs(stateEffecterPdrRepo.get());
310 getRepoByType(pdrRepo, stateEffecterPDRs, PLDM_STATE_EFFECTER_PDR);
311 if (stateEffecterPDRs.empty())
312 {
313 std::cerr << "Failed to get record by PDR type\n";
314 return PLDM_PLATFORM_INVALID_EFFECTER_ID;
315 }
316
George Liue53193f2020-02-24 09:23:26 +0800317 PdrEntry pdrEntry{};
George Liu1ec85d42020-02-12 16:05:32 +0800318 auto pdrRecord = stateEffecterPDRs.getFirstRecord(pdrEntry);
George Liue53193f2020-02-24 09:23:26 +0800319 while (pdrRecord)
320 {
321 pdr = reinterpret_cast<pldm_state_effecter_pdr*>(pdrEntry.data);
322 if (pdr->effecter_id != effecterId)
Sampa Misraa2fa0702019-05-31 01:28:55 -0500323 {
George Liue53193f2020-02-24 09:23:26 +0800324 pdr = nullptr;
George Liu1ec85d42020-02-12 16:05:32 +0800325 pdrRecord =
326 stateEffecterPDRs.getNextRecord(pdrRecord, pdrEntry);
George Liue53193f2020-02-24 09:23:26 +0800327 continue;
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600328 }
George Liue53193f2020-02-24 09:23:26 +0800329
330 states = reinterpret_cast<state_effecter_possible_states*>(
331 pdr->possible_states);
332 if (compEffecterCnt > pdr->composite_effecter_count)
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600333 {
George Liue53193f2020-02-24 09:23:26 +0800334 std::cerr << "The requester sent wrong composite effecter"
335 << " count for the effecter, EFFECTER_ID="
336 << effecterId << "COMP_EFF_CNT=" << compEffecterCnt
337 << "\n";
338 return PLDM_ERROR_INVALID_DATA;
Sampa Misraa2fa0702019-05-31 01:28:55 -0500339 }
George Liue53193f2020-02-24 09:23:26 +0800340 break;
341 }
342
343 if (!pdr)
344 {
345 return PLDM_PLATFORM_INVALID_EFFECTER_ID;
Sampa Misraa2fa0702019-05-31 01:28:55 -0500346 }
Sampa Misraa2fa0702019-05-31 01:28:55 -0500347
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600348 int rc = PLDM_SUCCESS;
George Liu1ec85d42020-02-12 16:05:32 +0800349 try
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600350 {
George Liu1ec85d42020-02-12 16:05:32 +0800351 const auto& [dbusMappings, dbusValMaps] =
George Liuadbe1722020-05-09 19:20:19 +0800352 effecterDbusObjMaps.at(effecterId);
George Liu1ec85d42020-02-12 16:05:32 +0800353 for (uint8_t currState = 0; currState < compEffecterCnt;
354 ++currState)
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600355 {
George Liu1ec85d42020-02-12 16:05:32 +0800356 std::vector<StateSetNum> allowed{};
357 // computation is based on table 79 from DSP0248 v1.1.1
358 uint8_t bitfieldIndex =
359 stateField[currState].effecter_state / 8;
360 uint8_t bit =
361 stateField[currState].effecter_state - (8 * bitfieldIndex);
362 if (states->possible_states_size < bitfieldIndex ||
363 !(states->states[bitfieldIndex].byte & (1 << bit)))
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600364 {
George Liu1ec85d42020-02-12 16:05:32 +0800365 std::cerr
366 << "Invalid state set value, EFFECTER_ID=" << effecterId
367 << " VALUE=" << stateField[currState].effecter_state
368 << " COMPOSITE_EFFECTER_ID=" << currState
369 << " DBUS_PATH=" << dbusMappings[currState].objectPath
370 << "\n";
371 rc = PLDM_PLATFORM_SET_EFFECTER_UNSUPPORTED_SENSORSTATE;
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600372 break;
373 }
George Liu1ec85d42020-02-12 16:05:32 +0800374 const DBusMapping& dbusMapping = dbusMappings[currState];
375 const StatestoDbusVal& dbusValToMap = dbusValMaps[currState];
376
377 if (stateField[currState].set_request == PLDM_REQUEST_SET)
378 {
379 try
380 {
381 dBusIntf.setDbusProperty(
382 dbusMapping,
383 dbusValToMap.at(
384 stateField[currState].effecter_state));
385 }
386 catch (const std::exception& e)
387 {
388 std::cerr
389 << "Error setting property, ERROR=" << e.what()
390 << " PROPERTY=" << dbusMapping.propertyName
391 << " INTERFACE="
392 << dbusMapping.interface << " PATH="
393 << dbusMapping.objectPath << "\n";
394 return PLDM_ERROR;
395 }
396 }
397 uint8_t* nextState =
398 reinterpret_cast<uint8_t*>(states) +
399 sizeof(state_effecter_possible_states) -
400 sizeof(states->states) +
401 (states->possible_states_size * sizeof(states->states));
402 states = reinterpret_cast<state_effecter_possible_states*>(
403 nextState);
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600404 }
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600405 }
George Liu1ec85d42020-02-12 16:05:32 +0800406 catch (const std::out_of_range& e)
407 {
408 std::cerr << "the effecterId does not exist. effecter id: "
409 << effecterId << e.what() << '\n';
410 }
411
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600412 return rc;
413 }
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600414
Sampa Misra12afe112020-05-25 11:40:44 -0500415 /** @brief Build BMC Terminus Locator PDR
416 *
417 * @param[in] repo - instance of concrete implementation of Repo
418 */
419 void generateTerminusLocatorPDR(Repo& repo);
420
Deepak Kodihallic682fe22020-03-04 00:42:54 -0600421 private:
422 pdr_utils::Repo pdrRepo;
423 uint16_t nextEffecterId{};
George Liuadbe1722020-05-09 19:20:19 +0800424 uint16_t nextSensorId{};
425 DbusObjMaps effecterDbusObjMaps{};
426 DbusObjMaps sensorDbusObjMaps{};
Pavithra Barithaya51efaf82020-04-02 02:42:27 -0500427 HostPDRHandler* hostPDRHandler;
TOM JOSEPHd4d97a52020-03-23 14:36:34 +0530428 events::StateSensorHandler stateSensorHandler;
Tom Joseph33e9c7e2020-06-11 22:09:52 +0530429 fru::Handler* fruHandler;
Deepak Kodihallib5c227e2020-07-13 06:58:34 -0500430 const pldm::utils::DBusHandler* dBusIntf;
431 std::string pdrJsonsDir;
432 bool pdrCreated;
Deepak Kodihallibc669f12019-11-28 08:52:07 -0600433};
434
435} // namespace platform
Deepak Kodihalli557dfb02019-05-12 13:11:17 +0530436} // namespace responder
437} // namespace pldm