Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Patrick Williams | 490126f | 2023-05-10 07:50:22 -0500 | [diff] [blame^] | 8 | |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 9 | #include <string> |
| 10 | #include <tuple> |
| 11 | #include <type_traits> |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 12 | |
| 13 | namespace sdbusplus |
| 14 | { |
Tom Joseph | 3503fdc | 2019-01-10 11:25:27 +0530 | [diff] [blame] | 15 | namespace xyz |
| 16 | { |
| 17 | namespace openbmc_project |
| 18 | { |
| 19 | namespace Common |
| 20 | { |
| 21 | namespace Callout |
| 22 | { |
| 23 | namespace Error |
| 24 | { |
| 25 | struct GPIO; |
| 26 | } // namespace Error |
| 27 | } // namespace Callout |
| 28 | } // namespace Common |
| 29 | } // namespace openbmc_project |
| 30 | } // namespace xyz |
| 31 | } // namespace sdbusplus |
| 32 | |
| 33 | namespace sdbusplus |
| 34 | { |
| 35 | namespace org |
| 36 | { |
| 37 | namespace open_power |
| 38 | { |
| 39 | namespace Common |
| 40 | { |
| 41 | namespace Callout |
| 42 | { |
| 43 | namespace Error |
| 44 | { |
| 45 | struct Procedure; |
| 46 | } // namespace Error |
| 47 | } // namespace Callout |
| 48 | } // namespace Common |
| 49 | } // namespace open_power |
| 50 | } // namespace org |
| 51 | } // namespace sdbusplus |
| 52 | |
| 53 | namespace sdbusplus |
| 54 | { |
| 55 | namespace xyz |
| 56 | { |
| 57 | namespace openbmc_project |
| 58 | { |
| 59 | namespace Common |
| 60 | { |
| 61 | namespace Callout |
| 62 | { |
| 63 | namespace Error |
| 64 | { |
| 65 | struct Inventory; |
| 66 | } // namespace Error |
| 67 | } // namespace Callout |
| 68 | } // namespace Common |
| 69 | } // namespace openbmc_project |
| 70 | } // namespace xyz |
| 71 | } // namespace sdbusplus |
| 72 | |
| 73 | namespace sdbusplus |
| 74 | { |
| 75 | namespace xyz |
| 76 | { |
| 77 | namespace openbmc_project |
| 78 | { |
| 79 | namespace Common |
| 80 | { |
| 81 | namespace Callout |
| 82 | { |
| 83 | namespace Error |
| 84 | { |
| 85 | struct IIC; |
| 86 | } // namespace Error |
| 87 | } // namespace Callout |
| 88 | } // namespace Common |
| 89 | } // namespace openbmc_project |
| 90 | } // namespace xyz |
| 91 | } // namespace sdbusplus |
| 92 | |
| 93 | namespace sdbusplus |
| 94 | { |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 95 | namespace org |
| 96 | { |
| 97 | namespace open_power |
| 98 | { |
| 99 | namespace OCC |
| 100 | { |
| 101 | namespace Metrics |
| 102 | { |
| 103 | namespace Error |
| 104 | { |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame] | 105 | struct Event; |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 106 | } // namespace Error |
| 107 | } // namespace Metrics |
| 108 | } // namespace OCC |
| 109 | } // namespace open_power |
| 110 | } // namespace org |
| 111 | } // namespace sdbusplus |
| 112 | |
Tom Joseph | 3503fdc | 2019-01-10 11:25:27 +0530 | [diff] [blame] | 113 | namespace sdbusplus |
| 114 | { |
| 115 | namespace xyz |
| 116 | { |
| 117 | namespace openbmc_project |
| 118 | { |
| 119 | namespace Common |
| 120 | { |
| 121 | namespace Callout |
| 122 | { |
| 123 | namespace Error |
| 124 | { |
| 125 | struct Device; |
| 126 | } // namespace Error |
| 127 | } // namespace Callout |
| 128 | } // namespace Common |
| 129 | } // namespace openbmc_project |
| 130 | } // namespace xyz |
| 131 | } // namespace sdbusplus |
| 132 | |
| 133 | namespace sdbusplus |
| 134 | { |
| 135 | namespace org |
| 136 | { |
| 137 | namespace open_power |
| 138 | { |
| 139 | namespace Host |
| 140 | { |
| 141 | namespace Error |
| 142 | { |
| 143 | struct MaintenanceProcedure; |
| 144 | } // namespace Error |
| 145 | } // namespace Host |
| 146 | } // namespace open_power |
| 147 | } // namespace org |
| 148 | } // namespace sdbusplus |
| 149 | |
| 150 | namespace sdbusplus |
| 151 | { |
| 152 | namespace org |
| 153 | { |
| 154 | namespace open_power |
| 155 | { |
| 156 | namespace Host |
| 157 | { |
| 158 | namespace Error |
| 159 | { |
| 160 | struct Event; |
| 161 | } // namespace Error |
| 162 | } // namespace Host |
| 163 | } // namespace open_power |
| 164 | } // namespace org |
| 165 | } // namespace sdbusplus |
| 166 | |
| 167 | namespace sdbusplus |
| 168 | { |
| 169 | namespace xyz |
| 170 | { |
| 171 | namespace openbmc_project |
| 172 | { |
| 173 | namespace Common |
| 174 | { |
| 175 | namespace Callout |
| 176 | { |
| 177 | namespace Error |
| 178 | { |
| 179 | struct IPMISensor; |
| 180 | } // namespace Error |
| 181 | } // namespace Callout |
| 182 | } // namespace Common |
| 183 | } // namespace openbmc_project |
| 184 | } // namespace xyz |
| 185 | } // namespace sdbusplus |
| 186 | |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 187 | namespace phosphor |
| 188 | { |
| 189 | |
| 190 | namespace logging |
| 191 | { |
| 192 | |
| 193 | namespace org |
| 194 | { |
| 195 | namespace open_power |
| 196 | { |
Tom Joseph | 3503fdc | 2019-01-10 11:25:27 +0530 | [diff] [blame] | 197 | namespace Common |
| 198 | { |
| 199 | namespace Callout |
| 200 | { |
| 201 | namespace _Procedure |
| 202 | { |
| 203 | |
| 204 | struct PROCEDURE |
| 205 | { |
| 206 | /* |
| 207 | * We can't use -fsanitize=undefined if we declare a |
| 208 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 209 | * mako template lookups. |
| 210 | */ |
| 211 | static constexpr auto str_short = "PROCEDURE"; |
| 212 | using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>; |
| 213 | explicit constexpr PROCEDURE(uint32_t a) : |
| 214 | _entry(entry("PROCEDURE=%u", a)){}; |
| 215 | type _entry; |
| 216 | }; |
| 217 | |
| 218 | } // namespace _Procedure |
| 219 | |
| 220 | struct Procedure |
| 221 | { |
| 222 | static constexpr auto L = level::ERR; |
| 223 | using PROCEDURE = _Procedure::PROCEDURE; |
| 224 | using metadata_types = std::tuple<PROCEDURE>; |
| 225 | }; |
| 226 | |
| 227 | } // namespace Callout |
| 228 | } // namespace Common |
| 229 | } // namespace open_power |
| 230 | } // namespace org |
| 231 | |
| 232 | namespace details |
| 233 | { |
| 234 | |
| 235 | template <> |
| 236 | struct map_exception_type< |
| 237 | sdbusplus::org::open_power::Common::Callout::Error::Procedure> |
| 238 | { |
| 239 | using type = org::open_power::Common::Callout::Procedure; |
| 240 | }; |
| 241 | |
| 242 | } // namespace details |
| 243 | |
| 244 | namespace org |
| 245 | { |
| 246 | namespace open_power |
| 247 | { |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 248 | namespace OCC |
| 249 | { |
| 250 | namespace Metrics |
| 251 | { |
| 252 | namespace _Event |
| 253 | { |
| 254 | |
| 255 | struct ESEL |
| 256 | { |
Tom Joseph | 3503fdc | 2019-01-10 11:25:27 +0530 | [diff] [blame] | 257 | /* |
| 258 | * We can't use -fsanitize=undefined if we declare a |
| 259 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 260 | * mako template lookups. |
| 261 | */ |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 262 | static constexpr auto str_short = "ESEL"; |
Tom Joseph | 3503fdc | 2019-01-10 11:25:27 +0530 | [diff] [blame] | 263 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 264 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 265 | type _entry; |
| 266 | }; |
| 267 | |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame] | 268 | } // namespace _Event |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 269 | |
| 270 | struct Event |
| 271 | { |
| 272 | static constexpr auto L = level::INFO; |
| 273 | using ESEL = _Event::ESEL; |
| 274 | using metadata_types = std::tuple<ESEL>; |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 275 | }; |
| 276 | |
| 277 | } // namespace Metrics |
| 278 | } // namespace OCC |
| 279 | } // namespace open_power |
| 280 | } // namespace org |
| 281 | |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 282 | namespace details |
| 283 | { |
| 284 | |
| 285 | template <> |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame] | 286 | struct map_exception_type< |
| 287 | sdbusplus::org::open_power::OCC::Metrics::Error::Event> |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 288 | { |
| 289 | using type = org::open_power::OCC::Metrics::Event; |
| 290 | }; |
| 291 | |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame] | 292 | } // namespace details |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 293 | |
Tom Joseph | 3503fdc | 2019-01-10 11:25:27 +0530 | [diff] [blame] | 294 | namespace xyz |
| 295 | { |
| 296 | namespace openbmc_project |
| 297 | { |
| 298 | namespace Common |
| 299 | { |
| 300 | namespace Callout |
| 301 | { |
| 302 | namespace _Device |
| 303 | { |
| 304 | |
| 305 | struct CALLOUT_ERRNO |
| 306 | { |
| 307 | /* |
| 308 | * We can't use -fsanitize=undefined if we declare a |
| 309 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 310 | * mako template lookups. |
| 311 | */ |
| 312 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 313 | using type = |
| 314 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>; |
| 315 | explicit constexpr CALLOUT_ERRNO(int32_t a) : |
| 316 | _entry(entry("CALLOUT_ERRNO=%d", a)){}; |
| 317 | type _entry; |
| 318 | }; |
| 319 | struct CALLOUT_DEVICE_PATH |
| 320 | { |
| 321 | /* |
| 322 | * We can't use -fsanitize=undefined if we declare a |
| 323 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 324 | * mako template lookups. |
| 325 | */ |
| 326 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 327 | using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, |
| 328 | const char*>; |
| 329 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
| 330 | _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){}; |
| 331 | type _entry; |
| 332 | }; |
| 333 | |
| 334 | } // namespace _Device |
| 335 | |
| 336 | struct Device |
| 337 | { |
| 338 | static constexpr auto L = level::ERR; |
| 339 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 340 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 341 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 342 | }; |
| 343 | |
| 344 | } // namespace Callout |
| 345 | } // namespace Common |
| 346 | } // namespace openbmc_project |
| 347 | } // namespace xyz |
| 348 | |
| 349 | namespace details |
| 350 | { |
| 351 | |
| 352 | template <> |
| 353 | struct map_exception_type< |
| 354 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 355 | { |
| 356 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 357 | }; |
| 358 | |
| 359 | } // namespace details |
| 360 | |
| 361 | namespace xyz |
| 362 | { |
| 363 | namespace openbmc_project |
| 364 | { |
| 365 | namespace Common |
| 366 | { |
| 367 | namespace Callout |
| 368 | { |
| 369 | namespace _GPIO |
| 370 | { |
| 371 | |
| 372 | struct CALLOUT_GPIO_NUM |
| 373 | { |
| 374 | /* |
| 375 | * We can't use -fsanitize=undefined if we declare a |
| 376 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 377 | * mako template lookups. |
| 378 | */ |
| 379 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 380 | using type = |
| 381 | std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>; |
| 382 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : |
| 383 | _entry(entry("CALLOUT_GPIO_NUM=%u", a)){}; |
| 384 | type _entry; |
| 385 | }; |
| 386 | |
| 387 | } // namespace _GPIO |
| 388 | |
| 389 | struct GPIO |
| 390 | { |
| 391 | static constexpr auto L = level::ERR; |
| 392 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 393 | using CALLOUT_ERRNO = |
| 394 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 395 | using CALLOUT_DEVICE_PATH = |
| 396 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 397 | using metadata_types = |
| 398 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 399 | }; |
| 400 | |
| 401 | } // namespace Callout |
| 402 | } // namespace Common |
| 403 | } // namespace openbmc_project |
| 404 | } // namespace xyz |
| 405 | |
| 406 | namespace details |
| 407 | { |
| 408 | |
| 409 | template <> |
| 410 | struct map_exception_type< |
| 411 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 412 | { |
| 413 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 414 | }; |
| 415 | |
| 416 | } // namespace details |
| 417 | |
| 418 | namespace xyz |
| 419 | { |
| 420 | namespace openbmc_project |
| 421 | { |
| 422 | namespace Common |
| 423 | { |
| 424 | namespace Callout |
| 425 | { |
| 426 | namespace _IIC |
| 427 | { |
| 428 | |
| 429 | struct CALLOUT_IIC_BUS |
| 430 | { |
| 431 | /* |
| 432 | * We can't use -fsanitize=undefined if we declare a |
| 433 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 434 | * mako template lookups. |
| 435 | */ |
| 436 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 437 | using type = |
| 438 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>; |
| 439 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : |
| 440 | _entry(entry("CALLOUT_IIC_BUS=%s", a)){}; |
| 441 | type _entry; |
| 442 | }; |
| 443 | struct CALLOUT_IIC_ADDR |
| 444 | { |
| 445 | /* |
| 446 | * We can't use -fsanitize=undefined if we declare a |
| 447 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 448 | * mako template lookups. |
| 449 | */ |
| 450 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 451 | using type = |
| 452 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>; |
| 453 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : |
| 454 | _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){}; |
| 455 | type _entry; |
| 456 | }; |
| 457 | |
| 458 | } // namespace _IIC |
| 459 | |
| 460 | struct IIC |
| 461 | { |
| 462 | static constexpr auto L = level::ERR; |
| 463 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 464 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 465 | using CALLOUT_ERRNO = |
| 466 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 467 | using CALLOUT_DEVICE_PATH = |
| 468 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 469 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 470 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 471 | }; |
| 472 | |
| 473 | } // namespace Callout |
| 474 | } // namespace Common |
| 475 | } // namespace openbmc_project |
| 476 | } // namespace xyz |
| 477 | |
| 478 | namespace details |
| 479 | { |
| 480 | |
| 481 | template <> |
| 482 | struct map_exception_type< |
| 483 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 484 | { |
| 485 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 486 | }; |
| 487 | |
| 488 | } // namespace details |
| 489 | |
| 490 | namespace xyz |
| 491 | { |
| 492 | namespace openbmc_project |
| 493 | { |
| 494 | namespace Common |
| 495 | { |
| 496 | namespace Callout |
| 497 | { |
| 498 | namespace _Inventory |
| 499 | { |
| 500 | |
| 501 | struct CALLOUT_INVENTORY_PATH |
| 502 | { |
| 503 | /* |
| 504 | * We can't use -fsanitize=undefined if we declare a |
| 505 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 506 | * mako template lookups. |
| 507 | */ |
| 508 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 509 | using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, |
| 510 | const char*>; |
| 511 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
| 512 | _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){}; |
| 513 | type _entry; |
| 514 | }; |
| 515 | |
| 516 | } // namespace _Inventory |
| 517 | |
| 518 | struct Inventory |
| 519 | { |
| 520 | static constexpr auto L = level::ERR; |
| 521 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 522 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 523 | }; |
| 524 | |
| 525 | } // namespace Callout |
| 526 | } // namespace Common |
| 527 | } // namespace openbmc_project |
| 528 | } // namespace xyz |
| 529 | |
| 530 | namespace details |
| 531 | { |
| 532 | |
| 533 | template <> |
| 534 | struct map_exception_type< |
| 535 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 536 | { |
| 537 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 538 | }; |
| 539 | |
| 540 | } // namespace details |
| 541 | |
| 542 | namespace xyz |
| 543 | { |
| 544 | namespace openbmc_project |
| 545 | { |
| 546 | namespace Common |
| 547 | { |
| 548 | namespace Callout |
| 549 | { |
| 550 | namespace _IPMISensor |
| 551 | { |
| 552 | |
| 553 | struct CALLOUT_IPMI_SENSOR_NUM |
| 554 | { |
| 555 | /* |
| 556 | * We can't use -fsanitize=undefined if we declare a |
| 557 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 558 | * mako template lookups. |
| 559 | */ |
| 560 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 561 | using type = |
| 562 | std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, |
| 563 | uint32_t>; |
| 564 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
| 565 | _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){}; |
| 566 | type _entry; |
| 567 | }; |
| 568 | |
| 569 | } // namespace _IPMISensor |
| 570 | |
| 571 | struct IPMISensor |
| 572 | { |
| 573 | static constexpr auto L = level::ERR; |
| 574 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 575 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 576 | }; |
| 577 | |
| 578 | } // namespace Callout |
| 579 | } // namespace Common |
| 580 | } // namespace openbmc_project |
| 581 | } // namespace xyz |
| 582 | |
| 583 | namespace details |
| 584 | { |
| 585 | |
| 586 | template <> |
| 587 | struct map_exception_type< |
| 588 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 589 | { |
| 590 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 591 | }; |
| 592 | |
| 593 | } // namespace details |
| 594 | |
| 595 | namespace org |
| 596 | { |
| 597 | namespace open_power |
| 598 | { |
| 599 | namespace Host |
| 600 | { |
| 601 | namespace _Event |
| 602 | { |
| 603 | |
| 604 | struct ESEL |
| 605 | { |
| 606 | /* |
| 607 | * We can't use -fsanitize=undefined if we declare a |
| 608 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 609 | * mako template lookups. |
| 610 | */ |
| 611 | static constexpr auto str_short = "ESEL"; |
| 612 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 613 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
| 614 | type _entry; |
| 615 | }; |
| 616 | |
| 617 | } // namespace _Event |
| 618 | |
| 619 | struct Event |
| 620 | { |
| 621 | static constexpr auto L = level::ERR; |
| 622 | using ESEL = _Event::ESEL; |
| 623 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 624 | Inventory::CALLOUT_INVENTORY_PATH; |
| 625 | using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>; |
| 626 | }; |
| 627 | |
| 628 | } // namespace Host |
| 629 | } // namespace open_power |
| 630 | } // namespace org |
| 631 | |
| 632 | namespace details |
| 633 | { |
| 634 | |
| 635 | template <> |
| 636 | struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event> |
| 637 | { |
| 638 | using type = org::open_power::Host::Event; |
| 639 | }; |
| 640 | |
| 641 | } // namespace details |
| 642 | |
| 643 | namespace org |
| 644 | { |
| 645 | namespace open_power |
| 646 | { |
| 647 | namespace Host |
| 648 | { |
| 649 | namespace _MaintenanceProcedure |
| 650 | { |
| 651 | |
| 652 | struct ESEL |
| 653 | { |
| 654 | /* |
| 655 | * We can't use -fsanitize=undefined if we declare a |
| 656 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 657 | * mako template lookups. |
| 658 | */ |
| 659 | static constexpr auto str_short = "ESEL"; |
| 660 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 661 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
| 662 | type _entry; |
| 663 | }; |
| 664 | |
| 665 | } // namespace _MaintenanceProcedure |
| 666 | |
| 667 | struct MaintenanceProcedure |
| 668 | { |
| 669 | static constexpr auto L = level::ERR; |
| 670 | using ESEL = _MaintenanceProcedure::ESEL; |
| 671 | using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE; |
| 672 | using metadata_types = std::tuple<ESEL, PROCEDURE>; |
| 673 | }; |
| 674 | |
| 675 | } // namespace Host |
| 676 | } // namespace open_power |
| 677 | } // namespace org |
| 678 | |
| 679 | namespace details |
| 680 | { |
| 681 | |
| 682 | template <> |
| 683 | struct map_exception_type< |
| 684 | sdbusplus::org::open_power::Host::Error::MaintenanceProcedure> |
| 685 | { |
| 686 | using type = org::open_power::Host::MaintenanceProcedure; |
| 687 | }; |
| 688 | |
| 689 | } // namespace details |
| 690 | |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 691 | } // namespace logging |
| 692 | |
| 693 | } // namespace phosphor |