Vernon Mauery | a3702c1 | 2019-05-22 13:20:59 -0700 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
| 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
| 8 | #include <string> |
| 9 | #include <tuple> |
| 10 | #include <type_traits> |
| 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Dump |
| 19 | { |
| 20 | namespace Create |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
| 24 | struct QuotaExceeded; |
| 25 | } // namespace Error |
| 26 | } // namespace Create |
| 27 | } // namespace Dump |
| 28 | } // namespace openbmc_project |
| 29 | } // namespace xyz |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | namespace sdbusplus |
| 33 | { |
| 34 | namespace xyz |
| 35 | { |
| 36 | namespace openbmc_project |
| 37 | { |
| 38 | namespace State |
| 39 | { |
| 40 | namespace Shutdown |
| 41 | { |
| 42 | namespace Inventory |
| 43 | { |
| 44 | namespace Error |
| 45 | { |
| 46 | struct Fan; |
| 47 | } // namespace Error |
| 48 | } // namespace Inventory |
| 49 | } // namespace Shutdown |
| 50 | } // namespace State |
| 51 | } // namespace openbmc_project |
| 52 | } // namespace xyz |
| 53 | } // namespace sdbusplus |
| 54 | |
| 55 | namespace sdbusplus |
| 56 | { |
| 57 | namespace xyz |
| 58 | { |
| 59 | namespace openbmc_project |
| 60 | { |
| 61 | namespace Common |
| 62 | { |
| 63 | namespace Device |
| 64 | { |
| 65 | namespace Error |
| 66 | { |
| 67 | struct ReadFailure; |
| 68 | } // namespace Error |
| 69 | } // namespace Device |
| 70 | } // namespace Common |
| 71 | } // namespace openbmc_project |
| 72 | } // namespace xyz |
| 73 | } // namespace sdbusplus |
| 74 | |
| 75 | namespace sdbusplus |
| 76 | { |
| 77 | namespace xyz |
| 78 | { |
| 79 | namespace openbmc_project |
| 80 | { |
| 81 | namespace State |
| 82 | { |
| 83 | namespace Host |
| 84 | { |
| 85 | namespace Error |
| 86 | { |
| 87 | struct SoftOffTimeout; |
| 88 | } // namespace Error |
| 89 | } // namespace Host |
| 90 | } // namespace State |
| 91 | } // namespace openbmc_project |
| 92 | } // namespace xyz |
| 93 | } // namespace sdbusplus |
| 94 | |
| 95 | namespace sdbusplus |
| 96 | { |
| 97 | namespace xyz |
| 98 | { |
| 99 | namespace openbmc_project |
| 100 | { |
| 101 | namespace Common |
| 102 | { |
| 103 | namespace File |
| 104 | { |
| 105 | namespace Error |
| 106 | { |
| 107 | struct Open; |
| 108 | } // namespace Error |
| 109 | } // namespace File |
| 110 | } // namespace Common |
| 111 | } // namespace openbmc_project |
| 112 | } // namespace xyz |
| 113 | } // namespace sdbusplus |
| 114 | |
| 115 | namespace sdbusplus |
| 116 | { |
| 117 | namespace xyz |
| 118 | { |
| 119 | namespace openbmc_project |
| 120 | { |
| 121 | namespace Inventory |
| 122 | { |
| 123 | namespace Error |
| 124 | { |
| 125 | struct Nonfunctional; |
| 126 | } // namespace Error |
| 127 | } // namespace Inventory |
| 128 | } // namespace openbmc_project |
| 129 | } // namespace xyz |
| 130 | } // namespace sdbusplus |
| 131 | |
| 132 | namespace sdbusplus |
| 133 | { |
| 134 | namespace xyz |
| 135 | { |
| 136 | namespace openbmc_project |
| 137 | { |
| 138 | namespace Control |
| 139 | { |
| 140 | namespace Device |
| 141 | { |
| 142 | namespace Error |
| 143 | { |
| 144 | struct WriteFailure; |
| 145 | } // namespace Error |
| 146 | } // namespace Device |
| 147 | } // namespace Control |
| 148 | } // namespace openbmc_project |
| 149 | } // namespace xyz |
| 150 | } // namespace sdbusplus |
| 151 | |
| 152 | namespace sdbusplus |
| 153 | { |
| 154 | namespace xyz |
| 155 | { |
| 156 | namespace openbmc_project |
| 157 | { |
| 158 | namespace Common |
| 159 | { |
| 160 | namespace File |
| 161 | { |
| 162 | namespace Error |
| 163 | { |
| 164 | struct Seek; |
| 165 | } // namespace Error |
| 166 | } // namespace File |
| 167 | } // namespace Common |
| 168 | } // namespace openbmc_project |
| 169 | } // namespace xyz |
| 170 | } // namespace sdbusplus |
| 171 | |
| 172 | namespace sdbusplus |
| 173 | { |
| 174 | namespace xyz |
| 175 | { |
| 176 | namespace openbmc_project |
| 177 | { |
| 178 | namespace User |
| 179 | { |
| 180 | namespace Common |
| 181 | { |
| 182 | namespace Error |
| 183 | { |
| 184 | struct UserNameDoesNotExist; |
| 185 | } // namespace Error |
| 186 | } // namespace Common |
| 187 | } // namespace User |
| 188 | } // namespace openbmc_project |
| 189 | } // namespace xyz |
| 190 | } // namespace sdbusplus |
| 191 | |
| 192 | namespace sdbusplus |
| 193 | { |
| 194 | namespace xyz |
| 195 | { |
| 196 | namespace openbmc_project |
| 197 | { |
| 198 | namespace Common |
| 199 | { |
| 200 | namespace File |
| 201 | { |
| 202 | namespace Error |
| 203 | { |
| 204 | struct Write; |
| 205 | } // namespace Error |
| 206 | } // namespace File |
| 207 | } // namespace Common |
| 208 | } // namespace openbmc_project |
| 209 | } // namespace xyz |
| 210 | } // namespace sdbusplus |
| 211 | |
| 212 | namespace sdbusplus |
| 213 | { |
| 214 | namespace xyz |
| 215 | { |
| 216 | namespace openbmc_project |
| 217 | { |
| 218 | namespace Inventory |
| 219 | { |
| 220 | namespace Error |
| 221 | { |
| 222 | struct NotPresent; |
| 223 | } // namespace Error |
| 224 | } // namespace Inventory |
| 225 | } // namespace openbmc_project |
| 226 | } // namespace xyz |
| 227 | } // namespace sdbusplus |
| 228 | |
| 229 | namespace sdbusplus |
| 230 | { |
| 231 | namespace xyz |
| 232 | { |
| 233 | namespace openbmc_project |
| 234 | { |
| 235 | namespace Common |
| 236 | { |
| 237 | namespace Error |
| 238 | { |
| 239 | struct InternalFailure; |
| 240 | } // namespace Error |
| 241 | } // namespace Common |
| 242 | } // namespace openbmc_project |
| 243 | } // namespace xyz |
| 244 | } // namespace sdbusplus |
| 245 | |
| 246 | namespace sdbusplus |
| 247 | { |
| 248 | namespace xyz |
| 249 | { |
| 250 | namespace openbmc_project |
| 251 | { |
| 252 | namespace Common |
| 253 | { |
| 254 | namespace Callout |
| 255 | { |
| 256 | namespace Error |
| 257 | { |
| 258 | struct Device; |
| 259 | } // namespace Error |
| 260 | } // namespace Callout |
| 261 | } // namespace Common |
| 262 | } // namespace openbmc_project |
| 263 | } // namespace xyz |
| 264 | } // namespace sdbusplus |
| 265 | |
| 266 | namespace sdbusplus |
| 267 | { |
| 268 | namespace xyz |
| 269 | { |
| 270 | namespace openbmc_project |
| 271 | { |
| 272 | namespace Sensor |
| 273 | { |
| 274 | namespace Threshold |
| 275 | { |
| 276 | namespace Error |
| 277 | { |
| 278 | struct CriticalLow; |
| 279 | } // namespace Error |
| 280 | } // namespace Threshold |
| 281 | } // namespace Sensor |
| 282 | } // namespace openbmc_project |
| 283 | } // namespace xyz |
| 284 | } // namespace sdbusplus |
| 285 | |
| 286 | namespace sdbusplus |
| 287 | { |
| 288 | namespace xyz |
| 289 | { |
| 290 | namespace openbmc_project |
| 291 | { |
| 292 | namespace Sensor |
| 293 | { |
| 294 | namespace Threshold |
| 295 | { |
| 296 | namespace Error |
| 297 | { |
| 298 | struct CriticalHigh; |
| 299 | } // namespace Error |
| 300 | } // namespace Threshold |
| 301 | } // namespace Sensor |
| 302 | } // namespace openbmc_project |
| 303 | } // namespace xyz |
| 304 | } // namespace sdbusplus |
| 305 | |
| 306 | namespace sdbusplus |
| 307 | { |
| 308 | namespace xyz |
| 309 | { |
| 310 | namespace openbmc_project |
| 311 | { |
| 312 | namespace Sensor |
| 313 | { |
| 314 | namespace Device |
| 315 | { |
| 316 | namespace Error |
| 317 | { |
| 318 | struct ReadFailure; |
| 319 | } // namespace Error |
| 320 | } // namespace Device |
| 321 | } // namespace Sensor |
| 322 | } // namespace openbmc_project |
| 323 | } // namespace xyz |
| 324 | } // namespace sdbusplus |
| 325 | |
| 326 | namespace sdbusplus |
| 327 | { |
| 328 | namespace xyz |
| 329 | { |
| 330 | namespace openbmc_project |
| 331 | { |
| 332 | namespace Control |
| 333 | { |
| 334 | namespace Host |
| 335 | { |
| 336 | namespace Error |
| 337 | { |
| 338 | struct CommandNotSupported; |
| 339 | } // namespace Error |
| 340 | } // namespace Host |
| 341 | } // namespace Control |
| 342 | } // namespace openbmc_project |
| 343 | } // namespace xyz |
| 344 | } // namespace sdbusplus |
| 345 | |
| 346 | namespace sdbusplus |
| 347 | { |
| 348 | namespace xyz |
| 349 | { |
| 350 | namespace openbmc_project |
| 351 | { |
| 352 | namespace User |
| 353 | { |
| 354 | namespace Common |
| 355 | { |
| 356 | namespace Error |
| 357 | { |
| 358 | struct UserNameGrpPrivFail; |
| 359 | } // namespace Error |
| 360 | } // namespace Common |
| 361 | } // namespace User |
| 362 | } // namespace openbmc_project |
| 363 | } // namespace xyz |
| 364 | } // namespace sdbusplus |
| 365 | |
| 366 | namespace sdbusplus |
| 367 | { |
| 368 | namespace xyz |
| 369 | { |
| 370 | namespace openbmc_project |
| 371 | { |
| 372 | namespace Common |
| 373 | { |
| 374 | namespace Callout |
| 375 | { |
| 376 | namespace Error |
| 377 | { |
| 378 | struct GPIO; |
| 379 | } // namespace Error |
| 380 | } // namespace Callout |
| 381 | } // namespace Common |
| 382 | } // namespace openbmc_project |
| 383 | } // namespace xyz |
| 384 | } // namespace sdbusplus |
| 385 | |
| 386 | namespace sdbusplus |
| 387 | { |
| 388 | namespace xyz |
| 389 | { |
| 390 | namespace openbmc_project |
| 391 | { |
| 392 | namespace Common |
| 393 | { |
| 394 | namespace Error |
| 395 | { |
| 396 | struct InvalidArgument; |
| 397 | } // namespace Error |
| 398 | } // namespace Common |
| 399 | } // namespace openbmc_project |
| 400 | } // namespace xyz |
| 401 | } // namespace sdbusplus |
| 402 | |
| 403 | namespace sdbusplus |
| 404 | { |
| 405 | namespace xyz |
| 406 | { |
| 407 | namespace openbmc_project |
| 408 | { |
| 409 | namespace User |
| 410 | { |
| 411 | namespace Common |
| 412 | { |
| 413 | namespace Error |
| 414 | { |
| 415 | struct NoResource; |
| 416 | } // namespace Error |
| 417 | } // namespace Common |
| 418 | } // namespace User |
| 419 | } // namespace openbmc_project |
| 420 | } // namespace xyz |
| 421 | } // namespace sdbusplus |
| 422 | |
| 423 | namespace sdbusplus |
| 424 | { |
| 425 | namespace xyz |
| 426 | { |
| 427 | namespace openbmc_project |
| 428 | { |
| 429 | namespace Common |
| 430 | { |
| 431 | namespace Device |
| 432 | { |
| 433 | namespace Error |
| 434 | { |
| 435 | struct WriteFailure; |
| 436 | } // namespace Error |
| 437 | } // namespace Device |
| 438 | } // namespace Common |
| 439 | } // namespace openbmc_project |
| 440 | } // namespace xyz |
| 441 | } // namespace sdbusplus |
| 442 | |
| 443 | namespace sdbusplus |
| 444 | { |
| 445 | namespace xyz |
| 446 | { |
| 447 | namespace openbmc_project |
| 448 | { |
| 449 | namespace Common |
| 450 | { |
| 451 | namespace Error |
| 452 | { |
| 453 | struct InsufficientPermission; |
| 454 | } // namespace Error |
| 455 | } // namespace Common |
| 456 | } // namespace openbmc_project |
| 457 | } // namespace xyz |
| 458 | } // namespace sdbusplus |
| 459 | |
| 460 | namespace sdbusplus |
| 461 | { |
| 462 | namespace xyz |
| 463 | { |
| 464 | namespace openbmc_project |
| 465 | { |
| 466 | namespace Dump |
| 467 | { |
| 468 | namespace Create |
| 469 | { |
| 470 | namespace Error |
| 471 | { |
| 472 | struct Disabled; |
| 473 | } // namespace Error |
| 474 | } // namespace Create |
| 475 | } // namespace Dump |
| 476 | } // namespace openbmc_project |
| 477 | } // namespace xyz |
| 478 | } // namespace sdbusplus |
| 479 | |
| 480 | namespace sdbusplus |
| 481 | { |
| 482 | namespace xyz |
| 483 | { |
| 484 | namespace openbmc_project |
| 485 | { |
| 486 | namespace Common |
| 487 | { |
| 488 | namespace Callout |
| 489 | { |
| 490 | namespace Error |
| 491 | { |
| 492 | struct IPMISensor; |
| 493 | } // namespace Error |
| 494 | } // namespace Callout |
| 495 | } // namespace Common |
| 496 | } // namespace openbmc_project |
| 497 | } // namespace xyz |
| 498 | } // namespace sdbusplus |
| 499 | |
| 500 | namespace sdbusplus |
| 501 | { |
| 502 | namespace xyz |
| 503 | { |
| 504 | namespace openbmc_project |
| 505 | { |
| 506 | namespace Common |
| 507 | { |
| 508 | namespace Error |
| 509 | { |
| 510 | struct Timeout; |
| 511 | } // namespace Error |
| 512 | } // namespace Common |
| 513 | } // namespace openbmc_project |
| 514 | } // namespace xyz |
| 515 | } // namespace sdbusplus |
| 516 | |
| 517 | namespace sdbusplus |
| 518 | { |
| 519 | namespace xyz |
| 520 | { |
| 521 | namespace openbmc_project |
| 522 | { |
| 523 | namespace Common |
| 524 | { |
| 525 | namespace Callout |
| 526 | { |
| 527 | namespace Error |
| 528 | { |
| 529 | struct Inventory; |
| 530 | } // namespace Error |
| 531 | } // namespace Callout |
| 532 | } // namespace Common |
| 533 | } // namespace openbmc_project |
| 534 | } // namespace xyz |
| 535 | } // namespace sdbusplus |
| 536 | |
| 537 | namespace sdbusplus |
| 538 | { |
| 539 | namespace xyz |
| 540 | { |
| 541 | namespace openbmc_project |
| 542 | { |
| 543 | namespace Common |
| 544 | { |
| 545 | namespace Callout |
| 546 | { |
| 547 | namespace Error |
| 548 | { |
| 549 | struct IIC; |
| 550 | } // namespace Error |
| 551 | } // namespace Callout |
| 552 | } // namespace Common |
| 553 | } // namespace openbmc_project |
| 554 | } // namespace xyz |
| 555 | } // namespace sdbusplus |
| 556 | |
| 557 | namespace sdbusplus |
| 558 | { |
| 559 | namespace xyz |
| 560 | { |
| 561 | namespace openbmc_project |
| 562 | { |
| 563 | namespace State |
| 564 | { |
| 565 | namespace Shutdown |
| 566 | { |
| 567 | namespace ThermalEvent |
| 568 | { |
| 569 | namespace Error |
| 570 | { |
| 571 | struct GPU; |
| 572 | } // namespace Error |
| 573 | } // namespace ThermalEvent |
| 574 | } // namespace Shutdown |
| 575 | } // namespace State |
| 576 | } // namespace openbmc_project |
| 577 | } // namespace xyz |
| 578 | } // namespace sdbusplus |
| 579 | |
| 580 | namespace sdbusplus |
| 581 | { |
| 582 | namespace xyz |
| 583 | { |
| 584 | namespace openbmc_project |
| 585 | { |
| 586 | namespace State |
| 587 | { |
| 588 | namespace Shutdown |
| 589 | { |
| 590 | namespace Power |
| 591 | { |
| 592 | namespace Error |
| 593 | { |
| 594 | struct Fault; |
| 595 | } // namespace Error |
| 596 | } // namespace Power |
| 597 | } // namespace Shutdown |
| 598 | } // namespace State |
| 599 | } // namespace openbmc_project |
| 600 | } // namespace xyz |
| 601 | } // namespace sdbusplus |
| 602 | |
| 603 | namespace sdbusplus |
| 604 | { |
| 605 | namespace xyz |
| 606 | { |
| 607 | namespace openbmc_project |
| 608 | { |
| 609 | namespace User |
| 610 | { |
| 611 | namespace Common |
| 612 | { |
| 613 | namespace Error |
| 614 | { |
| 615 | struct UserNameExists; |
| 616 | } // namespace Error |
| 617 | } // namespace Common |
| 618 | } // namespace User |
| 619 | } // namespace openbmc_project |
| 620 | } // namespace xyz |
| 621 | } // namespace sdbusplus |
| 622 | |
| 623 | namespace sdbusplus |
| 624 | { |
| 625 | namespace xyz |
| 626 | { |
| 627 | namespace openbmc_project |
| 628 | { |
| 629 | namespace State |
| 630 | { |
| 631 | namespace Shutdown |
| 632 | { |
| 633 | namespace ThermalEvent |
| 634 | { |
| 635 | namespace Error |
| 636 | { |
| 637 | struct Processor; |
| 638 | } // namespace Error |
| 639 | } // namespace ThermalEvent |
| 640 | } // namespace Shutdown |
| 641 | } // namespace State |
| 642 | } // namespace openbmc_project |
| 643 | } // namespace xyz |
| 644 | } // namespace sdbusplus |
| 645 | |
| 646 | namespace phosphor |
| 647 | { |
| 648 | |
| 649 | namespace logging |
| 650 | { |
| 651 | |
| 652 | namespace xyz |
| 653 | { |
| 654 | namespace openbmc_project |
| 655 | { |
| 656 | namespace Control |
| 657 | { |
| 658 | namespace Host |
| 659 | { |
| 660 | namespace _CommandNotSupported |
| 661 | { |
| 662 | |
| 663 | } // namespace _CommandNotSupported |
| 664 | |
| 665 | struct CommandNotSupported |
| 666 | { |
| 667 | static constexpr auto L = level::ERR; |
| 668 | using metadata_types = std::tuple<>; |
| 669 | }; |
| 670 | |
| 671 | } // namespace Host |
| 672 | } // namespace Control |
| 673 | } // namespace openbmc_project |
| 674 | } // namespace xyz |
| 675 | |
| 676 | namespace details |
| 677 | { |
| 678 | |
| 679 | template <> |
| 680 | struct map_exception_type< |
| 681 | sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported> |
| 682 | { |
| 683 | using type = xyz::openbmc_project::Control::Host::CommandNotSupported; |
| 684 | }; |
| 685 | |
| 686 | } // namespace details |
| 687 | |
| 688 | namespace xyz |
| 689 | { |
| 690 | namespace openbmc_project |
| 691 | { |
| 692 | namespace Sensor |
| 693 | { |
| 694 | namespace Threshold |
| 695 | { |
| 696 | namespace _CriticalHigh |
| 697 | { |
| 698 | |
| 699 | struct SENSOR_DATA |
| 700 | { |
| 701 | static constexpr auto str = "SENSOR_DATA=%s"; |
| 702 | static constexpr auto str_short = "SENSOR_DATA"; |
| 703 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 704 | explicit constexpr SENSOR_DATA(const char* a) : _entry(entry(str, a)){}; |
| 705 | type _entry; |
| 706 | }; |
| 707 | |
| 708 | } // namespace _CriticalHigh |
| 709 | |
| 710 | struct CriticalHigh |
| 711 | { |
| 712 | static constexpr auto L = level::ERR; |
| 713 | using SENSOR_DATA = _CriticalHigh::SENSOR_DATA; |
| 714 | using metadata_types = std::tuple<SENSOR_DATA>; |
| 715 | }; |
| 716 | |
| 717 | } // namespace Threshold |
| 718 | } // namespace Sensor |
| 719 | } // namespace openbmc_project |
| 720 | } // namespace xyz |
| 721 | |
| 722 | namespace details |
| 723 | { |
| 724 | |
| 725 | template <> |
| 726 | struct map_exception_type< |
| 727 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh> |
| 728 | { |
| 729 | using type = xyz::openbmc_project::Sensor::Threshold::CriticalHigh; |
| 730 | }; |
| 731 | |
| 732 | } // namespace details |
| 733 | |
| 734 | namespace xyz |
| 735 | { |
| 736 | namespace openbmc_project |
| 737 | { |
| 738 | namespace Sensor |
| 739 | { |
| 740 | namespace Threshold |
| 741 | { |
| 742 | namespace _CriticalLow |
| 743 | { |
| 744 | |
| 745 | struct SENSOR_DATA |
| 746 | { |
| 747 | static constexpr auto str = "SENSOR_DATA=%s"; |
| 748 | static constexpr auto str_short = "SENSOR_DATA"; |
| 749 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 750 | explicit constexpr SENSOR_DATA(const char* a) : _entry(entry(str, a)){}; |
| 751 | type _entry; |
| 752 | }; |
| 753 | |
| 754 | } // namespace _CriticalLow |
| 755 | |
| 756 | struct CriticalLow |
| 757 | { |
| 758 | static constexpr auto L = level::ERR; |
| 759 | using SENSOR_DATA = _CriticalLow::SENSOR_DATA; |
| 760 | using metadata_types = std::tuple<SENSOR_DATA>; |
| 761 | }; |
| 762 | |
| 763 | } // namespace Threshold |
| 764 | } // namespace Sensor |
| 765 | } // namespace openbmc_project |
| 766 | } // namespace xyz |
| 767 | |
| 768 | namespace details |
| 769 | { |
| 770 | |
| 771 | template <> |
| 772 | struct map_exception_type< |
| 773 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalLow> |
| 774 | { |
| 775 | using type = xyz::openbmc_project::Sensor::Threshold::CriticalLow; |
| 776 | }; |
| 777 | |
| 778 | } // namespace details |
| 779 | |
| 780 | namespace xyz |
| 781 | { |
| 782 | namespace openbmc_project |
| 783 | { |
| 784 | namespace State |
| 785 | { |
| 786 | namespace Shutdown |
| 787 | { |
| 788 | namespace ThermalEvent |
| 789 | { |
| 790 | namespace _Processor |
| 791 | { |
| 792 | |
| 793 | } // namespace _Processor |
| 794 | |
| 795 | struct Processor |
| 796 | { |
| 797 | static constexpr auto L = level::ERR; |
| 798 | using metadata_types = std::tuple<>; |
| 799 | }; |
| 800 | |
| 801 | } // namespace ThermalEvent |
| 802 | } // namespace Shutdown |
| 803 | } // namespace State |
| 804 | } // namespace openbmc_project |
| 805 | } // namespace xyz |
| 806 | |
| 807 | namespace details |
| 808 | { |
| 809 | |
| 810 | template <> |
| 811 | struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown:: |
| 812 | ThermalEvent::Error::Processor> |
| 813 | { |
| 814 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Processor; |
| 815 | }; |
| 816 | |
| 817 | } // namespace details |
| 818 | |
| 819 | namespace xyz |
| 820 | { |
| 821 | namespace openbmc_project |
| 822 | { |
| 823 | namespace State |
| 824 | { |
| 825 | namespace Shutdown |
| 826 | { |
| 827 | namespace ThermalEvent |
| 828 | { |
| 829 | namespace _GPU |
| 830 | { |
| 831 | |
| 832 | } // namespace _GPU |
| 833 | |
| 834 | struct GPU |
| 835 | { |
| 836 | static constexpr auto L = level::ERR; |
| 837 | using metadata_types = std::tuple<>; |
| 838 | }; |
| 839 | |
| 840 | } // namespace ThermalEvent |
| 841 | } // namespace Shutdown |
| 842 | } // namespace State |
| 843 | } // namespace openbmc_project |
| 844 | } // namespace xyz |
| 845 | |
| 846 | namespace details |
| 847 | { |
| 848 | |
| 849 | template <> |
| 850 | struct map_exception_type< |
| 851 | sdbusplus::xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::GPU> |
| 852 | { |
| 853 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::GPU; |
| 854 | }; |
| 855 | |
| 856 | } // namespace details |
| 857 | |
| 858 | namespace xyz |
| 859 | { |
| 860 | namespace openbmc_project |
| 861 | { |
| 862 | namespace Dump |
| 863 | { |
| 864 | namespace Create |
| 865 | { |
| 866 | namespace _Disabled |
| 867 | { |
| 868 | |
| 869 | } // namespace _Disabled |
| 870 | |
| 871 | struct Disabled |
| 872 | { |
| 873 | static constexpr auto L = level::ERR; |
| 874 | using metadata_types = std::tuple<>; |
| 875 | }; |
| 876 | |
| 877 | } // namespace Create |
| 878 | } // namespace Dump |
| 879 | } // namespace openbmc_project |
| 880 | } // namespace xyz |
| 881 | |
| 882 | namespace details |
| 883 | { |
| 884 | |
| 885 | template <> |
| 886 | struct map_exception_type< |
| 887 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled> |
| 888 | { |
| 889 | using type = xyz::openbmc_project::Dump::Create::Disabled; |
| 890 | }; |
| 891 | |
| 892 | } // namespace details |
| 893 | |
| 894 | namespace xyz |
| 895 | { |
| 896 | namespace openbmc_project |
| 897 | { |
| 898 | namespace Dump |
| 899 | { |
| 900 | namespace Create |
| 901 | { |
| 902 | namespace _QuotaExceeded |
| 903 | { |
| 904 | |
| 905 | struct REASON |
| 906 | { |
| 907 | static constexpr auto str = "REASON = %s"; |
| 908 | static constexpr auto str_short = "REASON "; |
| 909 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 910 | explicit constexpr REASON(const char* a) : _entry(entry(str, a)){}; |
| 911 | type _entry; |
| 912 | }; |
| 913 | |
| 914 | } // namespace _QuotaExceeded |
| 915 | |
| 916 | struct QuotaExceeded |
| 917 | { |
| 918 | static constexpr auto L = level::ERR; |
| 919 | using REASON = _QuotaExceeded::REASON; |
| 920 | using metadata_types = std::tuple<REASON>; |
| 921 | }; |
| 922 | |
| 923 | } // namespace Create |
| 924 | } // namespace Dump |
| 925 | } // namespace openbmc_project |
| 926 | } // namespace xyz |
| 927 | |
| 928 | namespace details |
| 929 | { |
| 930 | |
| 931 | template <> |
| 932 | struct map_exception_type< |
| 933 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded> |
| 934 | { |
| 935 | using type = xyz::openbmc_project::Dump::Create::QuotaExceeded; |
| 936 | }; |
| 937 | |
| 938 | } // namespace details |
| 939 | |
| 940 | namespace xyz |
| 941 | { |
| 942 | namespace openbmc_project |
| 943 | { |
| 944 | namespace Common |
| 945 | { |
| 946 | namespace _Timeout |
| 947 | { |
| 948 | |
| 949 | struct TIMEOUT_IN_MSEC |
| 950 | { |
| 951 | static constexpr auto str = "TIMEOUT_IN_MSEC=%llu"; |
| 952 | static constexpr auto str_short = "TIMEOUT_IN_MSEC"; |
| 953 | using type = std::tuple<std::decay_t<decltype(str)>, uint64_t>; |
| 954 | explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : _entry(entry(str, a)){}; |
| 955 | type _entry; |
| 956 | }; |
| 957 | |
| 958 | } // namespace _Timeout |
| 959 | |
| 960 | struct Timeout |
| 961 | { |
| 962 | static constexpr auto L = level::ERR; |
| 963 | using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC; |
| 964 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
| 965 | }; |
| 966 | |
| 967 | } // namespace Common |
| 968 | } // namespace openbmc_project |
| 969 | } // namespace xyz |
| 970 | |
| 971 | namespace details |
| 972 | { |
| 973 | |
| 974 | template <> |
| 975 | struct map_exception_type< |
| 976 | sdbusplus::xyz::openbmc_project::Common::Error::Timeout> |
| 977 | { |
| 978 | using type = xyz::openbmc_project::Common::Timeout; |
| 979 | }; |
| 980 | |
| 981 | } // namespace details |
| 982 | |
| 983 | namespace xyz |
| 984 | { |
| 985 | namespace openbmc_project |
| 986 | { |
| 987 | namespace Common |
| 988 | { |
| 989 | namespace _InternalFailure |
| 990 | { |
| 991 | |
| 992 | } // namespace _InternalFailure |
| 993 | |
| 994 | struct InternalFailure |
| 995 | { |
| 996 | static constexpr auto L = level::ERR; |
| 997 | using metadata_types = std::tuple<>; |
| 998 | }; |
| 999 | |
| 1000 | } // namespace Common |
| 1001 | } // namespace openbmc_project |
| 1002 | } // namespace xyz |
| 1003 | |
| 1004 | namespace details |
| 1005 | { |
| 1006 | |
| 1007 | template <> |
| 1008 | struct map_exception_type< |
| 1009 | sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure> |
| 1010 | { |
| 1011 | using type = xyz::openbmc_project::Common::InternalFailure; |
| 1012 | }; |
| 1013 | |
| 1014 | } // namespace details |
| 1015 | |
| 1016 | namespace xyz |
| 1017 | { |
| 1018 | namespace openbmc_project |
| 1019 | { |
| 1020 | namespace Common |
| 1021 | { |
| 1022 | namespace _InvalidArgument |
| 1023 | { |
| 1024 | |
| 1025 | struct ARGUMENT_NAME |
| 1026 | { |
| 1027 | static constexpr auto str = "ARGUMENT_NAME=%s"; |
| 1028 | static constexpr auto str_short = "ARGUMENT_NAME"; |
| 1029 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1030 | explicit constexpr ARGUMENT_NAME(const char* a) : _entry(entry(str, a)){}; |
| 1031 | type _entry; |
| 1032 | }; |
| 1033 | struct ARGUMENT_VALUE |
| 1034 | { |
| 1035 | static constexpr auto str = "ARGUMENT_VALUE=%s"; |
| 1036 | static constexpr auto str_short = "ARGUMENT_VALUE"; |
| 1037 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1038 | explicit constexpr ARGUMENT_VALUE(const char* a) : _entry(entry(str, a)){}; |
| 1039 | type _entry; |
| 1040 | }; |
| 1041 | |
| 1042 | } // namespace _InvalidArgument |
| 1043 | |
| 1044 | struct InvalidArgument |
| 1045 | { |
| 1046 | static constexpr auto L = level::ERR; |
| 1047 | using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME; |
| 1048 | using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE; |
| 1049 | using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>; |
| 1050 | }; |
| 1051 | |
| 1052 | } // namespace Common |
| 1053 | } // namespace openbmc_project |
| 1054 | } // namespace xyz |
| 1055 | |
| 1056 | namespace details |
| 1057 | { |
| 1058 | |
| 1059 | template <> |
| 1060 | struct map_exception_type< |
| 1061 | sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument> |
| 1062 | { |
| 1063 | using type = xyz::openbmc_project::Common::InvalidArgument; |
| 1064 | }; |
| 1065 | |
| 1066 | } // namespace details |
| 1067 | |
| 1068 | namespace xyz |
| 1069 | { |
| 1070 | namespace openbmc_project |
| 1071 | { |
| 1072 | namespace Common |
| 1073 | { |
| 1074 | namespace _InsufficientPermission |
| 1075 | { |
| 1076 | |
| 1077 | } // namespace _InsufficientPermission |
| 1078 | |
| 1079 | struct InsufficientPermission |
| 1080 | { |
| 1081 | static constexpr auto L = level::INFO; |
| 1082 | using metadata_types = std::tuple<>; |
| 1083 | }; |
| 1084 | |
| 1085 | } // namespace Common |
| 1086 | } // namespace openbmc_project |
| 1087 | } // namespace xyz |
| 1088 | |
| 1089 | namespace details |
| 1090 | { |
| 1091 | |
| 1092 | template <> |
| 1093 | struct map_exception_type< |
| 1094 | sdbusplus::xyz::openbmc_project::Common::Error::InsufficientPermission> |
| 1095 | { |
| 1096 | using type = xyz::openbmc_project::Common::InsufficientPermission; |
| 1097 | }; |
| 1098 | |
| 1099 | } // namespace details |
| 1100 | |
| 1101 | namespace xyz |
| 1102 | { |
| 1103 | namespace openbmc_project |
| 1104 | { |
| 1105 | namespace User |
| 1106 | { |
| 1107 | namespace Common |
| 1108 | { |
| 1109 | namespace _UserNameExists |
| 1110 | { |
| 1111 | |
| 1112 | } // namespace _UserNameExists |
| 1113 | |
| 1114 | struct UserNameExists |
| 1115 | { |
| 1116 | static constexpr auto L = level::ERR; |
| 1117 | using metadata_types = std::tuple<>; |
| 1118 | }; |
| 1119 | |
| 1120 | } // namespace Common |
| 1121 | } // namespace User |
| 1122 | } // namespace openbmc_project |
| 1123 | } // namespace xyz |
| 1124 | |
| 1125 | namespace details |
| 1126 | { |
| 1127 | |
| 1128 | template <> |
| 1129 | struct map_exception_type< |
| 1130 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameExists> |
| 1131 | { |
| 1132 | using type = xyz::openbmc_project::User::Common::UserNameExists; |
| 1133 | }; |
| 1134 | |
| 1135 | } // namespace details |
| 1136 | |
| 1137 | namespace xyz |
| 1138 | { |
| 1139 | namespace openbmc_project |
| 1140 | { |
| 1141 | namespace User |
| 1142 | { |
| 1143 | namespace Common |
| 1144 | { |
| 1145 | namespace _UserNameDoesNotExist |
| 1146 | { |
| 1147 | |
| 1148 | } // namespace _UserNameDoesNotExist |
| 1149 | |
| 1150 | struct UserNameDoesNotExist |
| 1151 | { |
| 1152 | static constexpr auto L = level::ERR; |
| 1153 | using metadata_types = std::tuple<>; |
| 1154 | }; |
| 1155 | |
| 1156 | } // namespace Common |
| 1157 | } // namespace User |
| 1158 | } // namespace openbmc_project |
| 1159 | } // namespace xyz |
| 1160 | |
| 1161 | namespace details |
| 1162 | { |
| 1163 | |
| 1164 | template <> |
| 1165 | struct map_exception_type< |
| 1166 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameDoesNotExist> |
| 1167 | { |
| 1168 | using type = xyz::openbmc_project::User::Common::UserNameDoesNotExist; |
| 1169 | }; |
| 1170 | |
| 1171 | } // namespace details |
| 1172 | |
| 1173 | namespace xyz |
| 1174 | { |
| 1175 | namespace openbmc_project |
| 1176 | { |
| 1177 | namespace User |
| 1178 | { |
| 1179 | namespace Common |
| 1180 | { |
| 1181 | namespace _UserNameGrpPrivFail |
| 1182 | { |
| 1183 | |
| 1184 | struct REASON |
| 1185 | { |
| 1186 | static constexpr auto str = "REASON = %s"; |
| 1187 | static constexpr auto str_short = "REASON "; |
| 1188 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1189 | explicit constexpr REASON(const char* a) : _entry(entry(str, a)){}; |
| 1190 | type _entry; |
| 1191 | }; |
| 1192 | |
| 1193 | } // namespace _UserNameGrpPrivFail |
| 1194 | |
| 1195 | struct UserNameGrpPrivFail |
| 1196 | { |
| 1197 | static constexpr auto L = level::ERR; |
| 1198 | using REASON = _UserNameGrpPrivFail::REASON; |
| 1199 | using metadata_types = std::tuple<REASON>; |
| 1200 | }; |
| 1201 | |
| 1202 | } // namespace Common |
| 1203 | } // namespace User |
| 1204 | } // namespace openbmc_project |
| 1205 | } // namespace xyz |
| 1206 | |
| 1207 | namespace details |
| 1208 | { |
| 1209 | |
| 1210 | template <> |
| 1211 | struct map_exception_type< |
| 1212 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameGrpPrivFail> |
| 1213 | { |
| 1214 | using type = xyz::openbmc_project::User::Common::UserNameGrpPrivFail; |
| 1215 | }; |
| 1216 | |
| 1217 | } // namespace details |
| 1218 | |
| 1219 | namespace xyz |
| 1220 | { |
| 1221 | namespace openbmc_project |
| 1222 | { |
| 1223 | namespace User |
| 1224 | { |
| 1225 | namespace Common |
| 1226 | { |
| 1227 | namespace _NoResource |
| 1228 | { |
| 1229 | |
| 1230 | struct REASON |
| 1231 | { |
| 1232 | static constexpr auto str = "REASON = %s"; |
| 1233 | static constexpr auto str_short = "REASON "; |
| 1234 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1235 | explicit constexpr REASON(const char* a) : _entry(entry(str, a)){}; |
| 1236 | type _entry; |
| 1237 | }; |
| 1238 | |
| 1239 | } // namespace _NoResource |
| 1240 | |
| 1241 | struct NoResource |
| 1242 | { |
| 1243 | static constexpr auto L = level::ERR; |
| 1244 | using REASON = _NoResource::REASON; |
| 1245 | using metadata_types = std::tuple<REASON>; |
| 1246 | }; |
| 1247 | |
| 1248 | } // namespace Common |
| 1249 | } // namespace User |
| 1250 | } // namespace openbmc_project |
| 1251 | } // namespace xyz |
| 1252 | |
| 1253 | namespace details |
| 1254 | { |
| 1255 | |
| 1256 | template <> |
| 1257 | struct map_exception_type< |
| 1258 | sdbusplus::xyz::openbmc_project::User::Common::Error::NoResource> |
| 1259 | { |
| 1260 | using type = xyz::openbmc_project::User::Common::NoResource; |
| 1261 | }; |
| 1262 | |
| 1263 | } // namespace details |
| 1264 | |
| 1265 | namespace xyz |
| 1266 | { |
| 1267 | namespace openbmc_project |
| 1268 | { |
| 1269 | namespace Common |
| 1270 | { |
| 1271 | namespace File |
| 1272 | { |
| 1273 | namespace _Open |
| 1274 | { |
| 1275 | |
| 1276 | struct ERRNO |
| 1277 | { |
| 1278 | static constexpr auto str = "ERRNO=%d"; |
| 1279 | static constexpr auto str_short = "ERRNO"; |
| 1280 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1281 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){}; |
| 1282 | type _entry; |
| 1283 | }; |
| 1284 | struct PATH |
| 1285 | { |
| 1286 | static constexpr auto str = "PATH=%s"; |
| 1287 | static constexpr auto str_short = "PATH"; |
| 1288 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1289 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
| 1290 | type _entry; |
| 1291 | }; |
| 1292 | |
| 1293 | } // namespace _Open |
| 1294 | |
| 1295 | struct Open |
| 1296 | { |
| 1297 | static constexpr auto L = level::ERR; |
| 1298 | using ERRNO = _Open::ERRNO; |
| 1299 | using PATH = _Open::PATH; |
| 1300 | using metadata_types = std::tuple<ERRNO, PATH>; |
| 1301 | }; |
| 1302 | |
| 1303 | } // namespace File |
| 1304 | } // namespace Common |
| 1305 | } // namespace openbmc_project |
| 1306 | } // namespace xyz |
| 1307 | |
| 1308 | namespace details |
| 1309 | { |
| 1310 | |
| 1311 | template <> |
| 1312 | struct map_exception_type< |
| 1313 | sdbusplus::xyz::openbmc_project::Common::File::Error::Open> |
| 1314 | { |
| 1315 | using type = xyz::openbmc_project::Common::File::Open; |
| 1316 | }; |
| 1317 | |
| 1318 | } // namespace details |
| 1319 | |
| 1320 | namespace xyz |
| 1321 | { |
| 1322 | namespace openbmc_project |
| 1323 | { |
| 1324 | namespace Common |
| 1325 | { |
| 1326 | namespace File |
| 1327 | { |
| 1328 | namespace _Seek |
| 1329 | { |
| 1330 | |
| 1331 | struct OFFSET |
| 1332 | { |
| 1333 | static constexpr auto str = "OFFSET=%ll"; |
| 1334 | static constexpr auto str_short = "OFFSET"; |
| 1335 | using type = std::tuple<std::decay_t<decltype(str)>, int64_t>; |
| 1336 | explicit constexpr OFFSET(int64_t a) : _entry(entry(str, a)){}; |
| 1337 | type _entry; |
| 1338 | }; |
| 1339 | struct WHENCE |
| 1340 | { |
| 1341 | static constexpr auto str = "WHENCE=%d"; |
| 1342 | static constexpr auto str_short = "WHENCE"; |
| 1343 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1344 | explicit constexpr WHENCE(int32_t a) : _entry(entry(str, a)){}; |
| 1345 | type _entry; |
| 1346 | }; |
| 1347 | struct ERRNO |
| 1348 | { |
| 1349 | static constexpr auto str = "ERRNO=%d"; |
| 1350 | static constexpr auto str_short = "ERRNO"; |
| 1351 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1352 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){}; |
| 1353 | type _entry; |
| 1354 | }; |
| 1355 | struct PATH |
| 1356 | { |
| 1357 | static constexpr auto str = "PATH=%s"; |
| 1358 | static constexpr auto str_short = "PATH"; |
| 1359 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1360 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
| 1361 | type _entry; |
| 1362 | }; |
| 1363 | |
| 1364 | } // namespace _Seek |
| 1365 | |
| 1366 | struct Seek |
| 1367 | { |
| 1368 | static constexpr auto L = level::ERR; |
| 1369 | using OFFSET = _Seek::OFFSET; |
| 1370 | using WHENCE = _Seek::WHENCE; |
| 1371 | using ERRNO = _Seek::ERRNO; |
| 1372 | using PATH = _Seek::PATH; |
| 1373 | using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>; |
| 1374 | }; |
| 1375 | |
| 1376 | } // namespace File |
| 1377 | } // namespace Common |
| 1378 | } // namespace openbmc_project |
| 1379 | } // namespace xyz |
| 1380 | |
| 1381 | namespace details |
| 1382 | { |
| 1383 | |
| 1384 | template <> |
| 1385 | struct map_exception_type< |
| 1386 | sdbusplus::xyz::openbmc_project::Common::File::Error::Seek> |
| 1387 | { |
| 1388 | using type = xyz::openbmc_project::Common::File::Seek; |
| 1389 | }; |
| 1390 | |
| 1391 | } // namespace details |
| 1392 | |
| 1393 | namespace xyz |
| 1394 | { |
| 1395 | namespace openbmc_project |
| 1396 | { |
| 1397 | namespace Common |
| 1398 | { |
| 1399 | namespace File |
| 1400 | { |
| 1401 | namespace _Write |
| 1402 | { |
| 1403 | |
| 1404 | struct ERRNO |
| 1405 | { |
| 1406 | static constexpr auto str = "ERRNO=%d"; |
| 1407 | static constexpr auto str_short = "ERRNO"; |
| 1408 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1409 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){}; |
| 1410 | type _entry; |
| 1411 | }; |
| 1412 | struct PATH |
| 1413 | { |
| 1414 | static constexpr auto str = "PATH=%s"; |
| 1415 | static constexpr auto str_short = "PATH"; |
| 1416 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1417 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
| 1418 | type _entry; |
| 1419 | }; |
| 1420 | |
| 1421 | } // namespace _Write |
| 1422 | |
| 1423 | struct Write |
| 1424 | { |
| 1425 | static constexpr auto L = level::ERR; |
| 1426 | using ERRNO = _Write::ERRNO; |
| 1427 | using PATH = _Write::PATH; |
| 1428 | using metadata_types = std::tuple<ERRNO, PATH>; |
| 1429 | }; |
| 1430 | |
| 1431 | } // namespace File |
| 1432 | } // namespace Common |
| 1433 | } // namespace openbmc_project |
| 1434 | } // namespace xyz |
| 1435 | |
| 1436 | namespace details |
| 1437 | { |
| 1438 | |
| 1439 | template <> |
| 1440 | struct map_exception_type< |
| 1441 | sdbusplus::xyz::openbmc_project::Common::File::Error::Write> |
| 1442 | { |
| 1443 | using type = xyz::openbmc_project::Common::File::Write; |
| 1444 | }; |
| 1445 | |
| 1446 | } // namespace details |
| 1447 | |
| 1448 | namespace example |
| 1449 | { |
| 1450 | namespace xyz |
| 1451 | { |
| 1452 | namespace openbmc_project |
| 1453 | { |
| 1454 | namespace Example |
| 1455 | { |
| 1456 | namespace Device |
| 1457 | { |
| 1458 | namespace _Callout |
| 1459 | { |
| 1460 | |
| 1461 | struct CALLOUT_ERRNO_TEST |
| 1462 | { |
| 1463 | static constexpr auto str = "CALLOUT_ERRNO_TEST=%d"; |
| 1464 | static constexpr auto str_short = "CALLOUT_ERRNO_TEST"; |
| 1465 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1466 | explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : _entry(entry(str, a)){}; |
| 1467 | type _entry; |
| 1468 | }; |
| 1469 | struct CALLOUT_DEVICE_PATH_TEST |
| 1470 | { |
| 1471 | static constexpr auto str = "CALLOUT_DEVICE_PATH_TEST=%s"; |
| 1472 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST"; |
| 1473 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1474 | explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : |
| 1475 | _entry(entry(str, a)){}; |
| 1476 | type _entry; |
| 1477 | }; |
| 1478 | |
| 1479 | } // namespace _Callout |
| 1480 | |
| 1481 | struct Callout : public sdbusplus::exception_t |
| 1482 | { |
| 1483 | static constexpr auto errName = |
| 1484 | "example.xyz.openbmc_project.Example.Device.Callout"; |
| 1485 | static constexpr auto errDesc = "Generic device callout"; |
| 1486 | static constexpr auto L = level::ERR; |
| 1487 | using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST; |
| 1488 | using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST; |
| 1489 | using metadata_types = |
| 1490 | std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 1491 | |
| 1492 | const char* name() const noexcept |
| 1493 | { |
| 1494 | return errName; |
| 1495 | } |
| 1496 | |
| 1497 | const char* description() const noexcept |
| 1498 | { |
| 1499 | return errDesc; |
| 1500 | } |
| 1501 | |
| 1502 | const char* what() const noexcept |
| 1503 | { |
| 1504 | return errName; |
| 1505 | } |
| 1506 | }; |
| 1507 | |
| 1508 | } // namespace Device |
| 1509 | } // namespace Example |
| 1510 | } // namespace openbmc_project |
| 1511 | } // namespace xyz |
| 1512 | } // namespace example |
| 1513 | |
| 1514 | namespace xyz |
| 1515 | { |
| 1516 | namespace openbmc_project |
| 1517 | { |
| 1518 | namespace Common |
| 1519 | { |
| 1520 | namespace Callout |
| 1521 | { |
| 1522 | namespace _Device |
| 1523 | { |
| 1524 | |
| 1525 | struct CALLOUT_ERRNO |
| 1526 | { |
| 1527 | static constexpr auto str = "CALLOUT_ERRNO=%d"; |
| 1528 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 1529 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1530 | explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)){}; |
| 1531 | type _entry; |
| 1532 | }; |
| 1533 | struct CALLOUT_DEVICE_PATH |
| 1534 | { |
| 1535 | static constexpr auto str = "CALLOUT_DEVICE_PATH=%s"; |
| 1536 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 1537 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1538 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
| 1539 | _entry(entry(str, a)){}; |
| 1540 | type _entry; |
| 1541 | }; |
| 1542 | |
| 1543 | } // namespace _Device |
| 1544 | |
| 1545 | struct Device |
| 1546 | { |
| 1547 | static constexpr auto L = level::ERR; |
| 1548 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 1549 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 1550 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1551 | }; |
| 1552 | |
| 1553 | } // namespace Callout |
| 1554 | } // namespace Common |
| 1555 | } // namespace openbmc_project |
| 1556 | } // namespace xyz |
| 1557 | |
| 1558 | namespace details |
| 1559 | { |
| 1560 | |
| 1561 | template <> |
| 1562 | struct map_exception_type< |
| 1563 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 1564 | { |
| 1565 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 1566 | }; |
| 1567 | |
| 1568 | } // namespace details |
| 1569 | |
| 1570 | namespace xyz |
| 1571 | { |
| 1572 | namespace openbmc_project |
| 1573 | { |
| 1574 | namespace Common |
| 1575 | { |
| 1576 | namespace Callout |
| 1577 | { |
| 1578 | namespace _GPIO |
| 1579 | { |
| 1580 | |
| 1581 | struct CALLOUT_GPIO_NUM |
| 1582 | { |
| 1583 | static constexpr auto str = "CALLOUT_GPIO_NUM=%u"; |
| 1584 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 1585 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1586 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)){}; |
| 1587 | type _entry; |
| 1588 | }; |
| 1589 | |
| 1590 | } // namespace _GPIO |
| 1591 | |
| 1592 | struct GPIO |
| 1593 | { |
| 1594 | static constexpr auto L = level::ERR; |
| 1595 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 1596 | using CALLOUT_ERRNO = |
| 1597 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1598 | using CALLOUT_DEVICE_PATH = |
| 1599 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1600 | using metadata_types = |
| 1601 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1602 | }; |
| 1603 | |
| 1604 | } // namespace Callout |
| 1605 | } // namespace Common |
| 1606 | } // namespace openbmc_project |
| 1607 | } // namespace xyz |
| 1608 | |
| 1609 | namespace details |
| 1610 | { |
| 1611 | |
| 1612 | template <> |
| 1613 | struct map_exception_type< |
| 1614 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 1615 | { |
| 1616 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 1617 | }; |
| 1618 | |
| 1619 | } // namespace details |
| 1620 | |
| 1621 | namespace xyz |
| 1622 | { |
| 1623 | namespace openbmc_project |
| 1624 | { |
| 1625 | namespace Common |
| 1626 | { |
| 1627 | namespace Callout |
| 1628 | { |
| 1629 | namespace _IIC |
| 1630 | { |
| 1631 | |
| 1632 | struct CALLOUT_IIC_BUS |
| 1633 | { |
| 1634 | static constexpr auto str = "CALLOUT_IIC_BUS=%s"; |
| 1635 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 1636 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1637 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)){}; |
| 1638 | type _entry; |
| 1639 | }; |
| 1640 | struct CALLOUT_IIC_ADDR |
| 1641 | { |
| 1642 | static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx"; |
| 1643 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 1644 | using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>; |
| 1645 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)){}; |
| 1646 | type _entry; |
| 1647 | }; |
| 1648 | |
| 1649 | } // namespace _IIC |
| 1650 | |
| 1651 | struct IIC |
| 1652 | { |
| 1653 | static constexpr auto L = level::ERR; |
| 1654 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 1655 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 1656 | using CALLOUT_ERRNO = |
| 1657 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1658 | using CALLOUT_DEVICE_PATH = |
| 1659 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1660 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 1661 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1662 | }; |
| 1663 | |
| 1664 | } // namespace Callout |
| 1665 | } // namespace Common |
| 1666 | } // namespace openbmc_project |
| 1667 | } // namespace xyz |
| 1668 | |
| 1669 | namespace details |
| 1670 | { |
| 1671 | |
| 1672 | template <> |
| 1673 | struct map_exception_type< |
| 1674 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 1675 | { |
| 1676 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 1677 | }; |
| 1678 | |
| 1679 | } // namespace details |
| 1680 | |
| 1681 | namespace xyz |
| 1682 | { |
| 1683 | namespace openbmc_project |
| 1684 | { |
| 1685 | namespace Common |
| 1686 | { |
| 1687 | namespace Callout |
| 1688 | { |
| 1689 | namespace _Inventory |
| 1690 | { |
| 1691 | |
| 1692 | struct CALLOUT_INVENTORY_PATH |
| 1693 | { |
| 1694 | static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s"; |
| 1695 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 1696 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1697 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
| 1698 | _entry(entry(str, a)){}; |
| 1699 | type _entry; |
| 1700 | }; |
| 1701 | |
| 1702 | } // namespace _Inventory |
| 1703 | |
| 1704 | struct Inventory |
| 1705 | { |
| 1706 | static constexpr auto L = level::ERR; |
| 1707 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 1708 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 1709 | }; |
| 1710 | |
| 1711 | } // namespace Callout |
| 1712 | } // namespace Common |
| 1713 | } // namespace openbmc_project |
| 1714 | } // namespace xyz |
| 1715 | |
| 1716 | namespace details |
| 1717 | { |
| 1718 | |
| 1719 | template <> |
| 1720 | struct map_exception_type< |
| 1721 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 1722 | { |
| 1723 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 1724 | }; |
| 1725 | |
| 1726 | } // namespace details |
| 1727 | |
| 1728 | namespace xyz |
| 1729 | { |
| 1730 | namespace openbmc_project |
| 1731 | { |
| 1732 | namespace Common |
| 1733 | { |
| 1734 | namespace Callout |
| 1735 | { |
| 1736 | namespace _IPMISensor |
| 1737 | { |
| 1738 | |
| 1739 | struct CALLOUT_IPMI_SENSOR_NUM |
| 1740 | { |
| 1741 | static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u"; |
| 1742 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 1743 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1744 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
| 1745 | _entry(entry(str, a)){}; |
| 1746 | type _entry; |
| 1747 | }; |
| 1748 | |
| 1749 | } // namespace _IPMISensor |
| 1750 | |
| 1751 | struct IPMISensor |
| 1752 | { |
| 1753 | static constexpr auto L = level::ERR; |
| 1754 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 1755 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 1756 | }; |
| 1757 | |
| 1758 | } // namespace Callout |
| 1759 | } // namespace Common |
| 1760 | } // namespace openbmc_project |
| 1761 | } // namespace xyz |
| 1762 | |
| 1763 | namespace details |
| 1764 | { |
| 1765 | |
| 1766 | template <> |
| 1767 | struct map_exception_type< |
| 1768 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 1769 | { |
| 1770 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 1771 | }; |
| 1772 | |
| 1773 | } // namespace details |
| 1774 | |
| 1775 | namespace xyz |
| 1776 | { |
| 1777 | namespace openbmc_project |
| 1778 | { |
| 1779 | namespace Common |
| 1780 | { |
| 1781 | namespace Device |
| 1782 | { |
| 1783 | namespace _ReadFailure |
| 1784 | { |
| 1785 | |
| 1786 | } // namespace _ReadFailure |
| 1787 | |
| 1788 | struct ReadFailure |
| 1789 | { |
| 1790 | static constexpr auto L = level::ERR; |
| 1791 | using CALLOUT_ERRNO = |
| 1792 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1793 | using CALLOUT_DEVICE_PATH = |
| 1794 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1795 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1796 | }; |
| 1797 | |
| 1798 | } // namespace Device |
| 1799 | } // namespace Common |
| 1800 | } // namespace openbmc_project |
| 1801 | } // namespace xyz |
| 1802 | |
| 1803 | namespace details |
| 1804 | { |
| 1805 | |
| 1806 | template <> |
| 1807 | struct map_exception_type< |
| 1808 | sdbusplus::xyz::openbmc_project::Common::Device::Error::ReadFailure> |
| 1809 | { |
| 1810 | using type = xyz::openbmc_project::Common::Device::ReadFailure; |
| 1811 | }; |
| 1812 | |
| 1813 | } // namespace details |
| 1814 | |
| 1815 | namespace xyz |
| 1816 | { |
| 1817 | namespace openbmc_project |
| 1818 | { |
| 1819 | namespace Common |
| 1820 | { |
| 1821 | namespace Device |
| 1822 | { |
| 1823 | namespace _WriteFailure |
| 1824 | { |
| 1825 | |
| 1826 | } // namespace _WriteFailure |
| 1827 | |
| 1828 | struct WriteFailure |
| 1829 | { |
| 1830 | static constexpr auto L = level::ERR; |
| 1831 | using CALLOUT_ERRNO = |
| 1832 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1833 | using CALLOUT_DEVICE_PATH = |
| 1834 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1835 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1836 | }; |
| 1837 | |
| 1838 | } // namespace Device |
| 1839 | } // namespace Common |
| 1840 | } // namespace openbmc_project |
| 1841 | } // namespace xyz |
| 1842 | |
| 1843 | namespace details |
| 1844 | { |
| 1845 | |
| 1846 | template <> |
| 1847 | struct map_exception_type< |
| 1848 | sdbusplus::xyz::openbmc_project::Common::Device::Error::WriteFailure> |
| 1849 | { |
| 1850 | using type = xyz::openbmc_project::Common::Device::WriteFailure; |
| 1851 | }; |
| 1852 | |
| 1853 | } // namespace details |
| 1854 | |
| 1855 | namespace example |
| 1856 | { |
| 1857 | namespace xyz |
| 1858 | { |
| 1859 | namespace openbmc_project |
| 1860 | { |
| 1861 | namespace Example |
| 1862 | { |
| 1863 | namespace Elog |
| 1864 | { |
| 1865 | namespace _TestErrorTwo |
| 1866 | { |
| 1867 | |
| 1868 | struct DEV_ADDR |
| 1869 | { |
| 1870 | static constexpr auto str = "DEV_ADDR=0x%.8X"; |
| 1871 | static constexpr auto str_short = "DEV_ADDR"; |
| 1872 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1873 | explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)){}; |
| 1874 | type _entry; |
| 1875 | }; |
| 1876 | struct DEV_ID |
| 1877 | { |
| 1878 | static constexpr auto str = "DEV_ID=%u"; |
| 1879 | static constexpr auto str_short = "DEV_ID"; |
| 1880 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1881 | explicit constexpr DEV_ID(uint32_t a) : _entry(entry(str, a)){}; |
| 1882 | type _entry; |
| 1883 | }; |
| 1884 | struct DEV_NAME |
| 1885 | { |
| 1886 | static constexpr auto str = "DEV_NAME=%s"; |
| 1887 | static constexpr auto str_short = "DEV_NAME"; |
| 1888 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1889 | explicit constexpr DEV_NAME(const char* a) : _entry(entry(str, a)){}; |
| 1890 | type _entry; |
| 1891 | }; |
| 1892 | |
| 1893 | } // namespace _TestErrorTwo |
| 1894 | |
| 1895 | struct TestErrorTwo : public sdbusplus::exception_t |
| 1896 | { |
| 1897 | static constexpr auto errName = |
| 1898 | "example.xyz.openbmc_project.Example.Elog.TestErrorTwo"; |
| 1899 | static constexpr auto errDesc = "This is test error two"; |
| 1900 | static constexpr auto L = level::ERR; |
| 1901 | using DEV_ADDR = _TestErrorTwo::DEV_ADDR; |
| 1902 | using DEV_ID = _TestErrorTwo::DEV_ID; |
| 1903 | using DEV_NAME = _TestErrorTwo::DEV_NAME; |
| 1904 | using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>; |
| 1905 | |
| 1906 | const char* name() const noexcept |
| 1907 | { |
| 1908 | return errName; |
| 1909 | } |
| 1910 | |
| 1911 | const char* description() const noexcept |
| 1912 | { |
| 1913 | return errDesc; |
| 1914 | } |
| 1915 | |
| 1916 | const char* what() const noexcept |
| 1917 | { |
| 1918 | return errName; |
| 1919 | } |
| 1920 | }; |
| 1921 | |
| 1922 | } // namespace Elog |
| 1923 | } // namespace Example |
| 1924 | } // namespace openbmc_project |
| 1925 | } // namespace xyz |
| 1926 | } // namespace example |
| 1927 | |
| 1928 | namespace example |
| 1929 | { |
| 1930 | namespace xyz |
| 1931 | { |
| 1932 | namespace openbmc_project |
| 1933 | { |
| 1934 | namespace Example |
| 1935 | { |
| 1936 | namespace Elog |
| 1937 | { |
| 1938 | namespace _AutoTestSimple |
| 1939 | { |
| 1940 | |
| 1941 | struct STRING |
| 1942 | { |
| 1943 | static constexpr auto str = "STRING=%s"; |
| 1944 | static constexpr auto str_short = "STRING"; |
| 1945 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1946 | explicit constexpr STRING(const char* a) : _entry(entry(str, a)){}; |
| 1947 | type _entry; |
| 1948 | }; |
| 1949 | |
| 1950 | } // namespace _AutoTestSimple |
| 1951 | |
| 1952 | struct AutoTestSimple : public sdbusplus::exception_t |
| 1953 | { |
| 1954 | static constexpr auto errName = |
| 1955 | "example.xyz.openbmc_project.Example.Elog.AutoTestSimple"; |
| 1956 | static constexpr auto errDesc = "This is a simple test error."; |
| 1957 | static constexpr auto L = level::ERR; |
| 1958 | using STRING = _AutoTestSimple::STRING; |
| 1959 | using metadata_types = std::tuple<STRING>; |
| 1960 | |
| 1961 | const char* name() const noexcept |
| 1962 | { |
| 1963 | return errName; |
| 1964 | } |
| 1965 | |
| 1966 | const char* description() const noexcept |
| 1967 | { |
| 1968 | return errDesc; |
| 1969 | } |
| 1970 | |
| 1971 | const char* what() const noexcept |
| 1972 | { |
| 1973 | return errName; |
| 1974 | } |
| 1975 | }; |
| 1976 | |
| 1977 | } // namespace Elog |
| 1978 | } // namespace Example |
| 1979 | } // namespace openbmc_project |
| 1980 | } // namespace xyz |
| 1981 | } // namespace example |
| 1982 | |
| 1983 | namespace example |
| 1984 | { |
| 1985 | namespace xyz |
| 1986 | { |
| 1987 | namespace openbmc_project |
| 1988 | { |
| 1989 | namespace Example |
| 1990 | { |
| 1991 | namespace Elog |
| 1992 | { |
| 1993 | namespace _TestCallout |
| 1994 | { |
| 1995 | |
| 1996 | struct DEV_ADDR |
| 1997 | { |
| 1998 | static constexpr auto str = "DEV_ADDR=0x%.8X"; |
| 1999 | static constexpr auto str_short = "DEV_ADDR"; |
| 2000 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 2001 | explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)){}; |
| 2002 | type _entry; |
| 2003 | }; |
| 2004 | |
| 2005 | } // namespace _TestCallout |
| 2006 | |
| 2007 | struct TestCallout : public sdbusplus::exception_t |
| 2008 | { |
| 2009 | static constexpr auto errName = |
| 2010 | "example.xyz.openbmc_project.Example.Elog.TestCallout"; |
| 2011 | static constexpr auto errDesc = "This is test error TestCallout"; |
| 2012 | static constexpr auto L = level::ERR; |
| 2013 | using DEV_ADDR = _TestCallout::DEV_ADDR; |
| 2014 | using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device:: |
| 2015 | Callout::CALLOUT_ERRNO_TEST; |
| 2016 | using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example:: |
| 2017 | Device::Callout::CALLOUT_DEVICE_PATH_TEST; |
| 2018 | using metadata_types = |
| 2019 | std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 2020 | |
| 2021 | const char* name() const noexcept |
| 2022 | { |
| 2023 | return errName; |
| 2024 | } |
| 2025 | |
| 2026 | const char* description() const noexcept |
| 2027 | { |
| 2028 | return errDesc; |
| 2029 | } |
| 2030 | |
| 2031 | const char* what() const noexcept |
| 2032 | { |
| 2033 | return errName; |
| 2034 | } |
| 2035 | }; |
| 2036 | |
| 2037 | } // namespace Elog |
| 2038 | } // namespace Example |
| 2039 | } // namespace openbmc_project |
| 2040 | } // namespace xyz |
| 2041 | } // namespace example |
| 2042 | |
| 2043 | namespace xyz |
| 2044 | { |
| 2045 | namespace openbmc_project |
| 2046 | { |
| 2047 | namespace State |
| 2048 | { |
| 2049 | namespace Shutdown |
| 2050 | { |
| 2051 | namespace Inventory |
| 2052 | { |
| 2053 | namespace _Fan |
| 2054 | { |
| 2055 | |
| 2056 | } // namespace _Fan |
| 2057 | |
| 2058 | struct Fan |
| 2059 | { |
| 2060 | static constexpr auto L = level::ERR; |
| 2061 | using metadata_types = std::tuple<>; |
| 2062 | }; |
| 2063 | |
| 2064 | } // namespace Inventory |
| 2065 | } // namespace Shutdown |
| 2066 | } // namespace State |
| 2067 | } // namespace openbmc_project |
| 2068 | } // namespace xyz |
| 2069 | |
| 2070 | namespace details |
| 2071 | { |
| 2072 | |
| 2073 | template <> |
| 2074 | struct map_exception_type< |
| 2075 | sdbusplus::xyz::openbmc_project::State::Shutdown::Inventory::Error::Fan> |
| 2076 | { |
| 2077 | using type = xyz::openbmc_project::State::Shutdown::Inventory::Fan; |
| 2078 | }; |
| 2079 | |
| 2080 | } // namespace details |
| 2081 | |
| 2082 | namespace xyz |
| 2083 | { |
| 2084 | namespace openbmc_project |
| 2085 | { |
| 2086 | namespace State |
| 2087 | { |
| 2088 | namespace Shutdown |
| 2089 | { |
| 2090 | namespace Power |
| 2091 | { |
| 2092 | namespace _Fault |
| 2093 | { |
| 2094 | |
| 2095 | } // namespace _Fault |
| 2096 | |
| 2097 | struct Fault |
| 2098 | { |
| 2099 | static constexpr auto L = level::ERR; |
| 2100 | using metadata_types = std::tuple<>; |
| 2101 | }; |
| 2102 | |
| 2103 | } // namespace Power |
| 2104 | } // namespace Shutdown |
| 2105 | } // namespace State |
| 2106 | } // namespace openbmc_project |
| 2107 | } // namespace xyz |
| 2108 | |
| 2109 | namespace details |
| 2110 | { |
| 2111 | |
| 2112 | template <> |
| 2113 | struct map_exception_type< |
| 2114 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Fault> |
| 2115 | { |
| 2116 | using type = xyz::openbmc_project::State::Shutdown::Power::Fault; |
| 2117 | }; |
| 2118 | |
| 2119 | } // namespace details |
| 2120 | |
| 2121 | namespace xyz |
| 2122 | { |
| 2123 | namespace openbmc_project |
| 2124 | { |
| 2125 | namespace Sensor |
| 2126 | { |
| 2127 | namespace Device |
| 2128 | { |
| 2129 | namespace _ReadFailure |
| 2130 | { |
| 2131 | |
| 2132 | } // namespace _ReadFailure |
| 2133 | |
| 2134 | struct ReadFailure |
| 2135 | { |
| 2136 | static constexpr auto L = level::ERR; |
| 2137 | using CALLOUT_ERRNO = |
| 2138 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 2139 | using CALLOUT_DEVICE_PATH = |
| 2140 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 2141 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 2142 | }; |
| 2143 | |
| 2144 | } // namespace Device |
| 2145 | } // namespace Sensor |
| 2146 | } // namespace openbmc_project |
| 2147 | } // namespace xyz |
| 2148 | |
| 2149 | namespace details |
| 2150 | { |
| 2151 | |
| 2152 | template <> |
| 2153 | struct map_exception_type< |
| 2154 | sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure> |
| 2155 | { |
| 2156 | using type = xyz::openbmc_project::Sensor::Device::ReadFailure; |
| 2157 | }; |
| 2158 | |
| 2159 | } // namespace details |
| 2160 | |
| 2161 | namespace xyz |
| 2162 | { |
| 2163 | namespace openbmc_project |
| 2164 | { |
| 2165 | namespace State |
| 2166 | { |
| 2167 | namespace Host |
| 2168 | { |
| 2169 | namespace _SoftOffTimeout |
| 2170 | { |
| 2171 | |
| 2172 | } // namespace _SoftOffTimeout |
| 2173 | |
| 2174 | struct SoftOffTimeout |
| 2175 | { |
| 2176 | static constexpr auto L = level::ERR; |
| 2177 | using TIMEOUT_IN_MSEC = |
| 2178 | xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC; |
| 2179 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
| 2180 | }; |
| 2181 | |
| 2182 | } // namespace Host |
| 2183 | } // namespace State |
| 2184 | } // namespace openbmc_project |
| 2185 | } // namespace xyz |
| 2186 | |
| 2187 | namespace details |
| 2188 | { |
| 2189 | |
| 2190 | template <> |
| 2191 | struct map_exception_type< |
| 2192 | sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout> |
| 2193 | { |
| 2194 | using type = xyz::openbmc_project::State::Host::SoftOffTimeout; |
| 2195 | }; |
| 2196 | |
| 2197 | } // namespace details |
| 2198 | |
| 2199 | namespace xyz |
| 2200 | { |
| 2201 | namespace openbmc_project |
| 2202 | { |
| 2203 | namespace Inventory |
| 2204 | { |
| 2205 | namespace _NotPresent |
| 2206 | { |
| 2207 | |
| 2208 | } // namespace _NotPresent |
| 2209 | |
| 2210 | struct NotPresent |
| 2211 | { |
| 2212 | static constexpr auto L = level::ERR; |
| 2213 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 2214 | Inventory::CALLOUT_INVENTORY_PATH; |
| 2215 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 2216 | }; |
| 2217 | |
| 2218 | } // namespace Inventory |
| 2219 | } // namespace openbmc_project |
| 2220 | } // namespace xyz |
| 2221 | |
| 2222 | namespace details |
| 2223 | { |
| 2224 | |
| 2225 | template <> |
| 2226 | struct map_exception_type< |
| 2227 | sdbusplus::xyz::openbmc_project::Inventory::Error::NotPresent> |
| 2228 | { |
| 2229 | using type = xyz::openbmc_project::Inventory::NotPresent; |
| 2230 | }; |
| 2231 | |
| 2232 | } // namespace details |
| 2233 | |
| 2234 | namespace xyz |
| 2235 | { |
| 2236 | namespace openbmc_project |
| 2237 | { |
| 2238 | namespace Inventory |
| 2239 | { |
| 2240 | namespace _Nonfunctional |
| 2241 | { |
| 2242 | |
| 2243 | } // namespace _Nonfunctional |
| 2244 | |
| 2245 | struct Nonfunctional |
| 2246 | { |
| 2247 | static constexpr auto L = level::ERR; |
| 2248 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 2249 | Inventory::CALLOUT_INVENTORY_PATH; |
| 2250 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 2251 | }; |
| 2252 | |
| 2253 | } // namespace Inventory |
| 2254 | } // namespace openbmc_project |
| 2255 | } // namespace xyz |
| 2256 | |
| 2257 | namespace details |
| 2258 | { |
| 2259 | |
| 2260 | template <> |
| 2261 | struct map_exception_type< |
| 2262 | sdbusplus::xyz::openbmc_project::Inventory::Error::Nonfunctional> |
| 2263 | { |
| 2264 | using type = xyz::openbmc_project::Inventory::Nonfunctional; |
| 2265 | }; |
| 2266 | |
| 2267 | } // namespace details |
| 2268 | |
| 2269 | namespace xyz |
| 2270 | { |
| 2271 | namespace openbmc_project |
| 2272 | { |
| 2273 | namespace Control |
| 2274 | { |
| 2275 | namespace Device |
| 2276 | { |
| 2277 | namespace _WriteFailure |
| 2278 | { |
| 2279 | |
| 2280 | } // namespace _WriteFailure |
| 2281 | |
| 2282 | struct WriteFailure |
| 2283 | { |
| 2284 | static constexpr auto L = level::ERR; |
| 2285 | using CALLOUT_ERRNO = |
| 2286 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 2287 | using CALLOUT_DEVICE_PATH = |
| 2288 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 2289 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 2290 | }; |
| 2291 | |
| 2292 | } // namespace Device |
| 2293 | } // namespace Control |
| 2294 | } // namespace openbmc_project |
| 2295 | } // namespace xyz |
| 2296 | |
| 2297 | namespace details |
| 2298 | { |
| 2299 | |
| 2300 | template <> |
| 2301 | struct map_exception_type< |
| 2302 | sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure> |
| 2303 | { |
| 2304 | using type = xyz::openbmc_project::Control::Device::WriteFailure; |
| 2305 | }; |
| 2306 | |
| 2307 | } // namespace details |
| 2308 | |
| 2309 | namespace example |
| 2310 | { |
| 2311 | namespace xyz |
| 2312 | { |
| 2313 | namespace openbmc_project |
| 2314 | { |
| 2315 | namespace Example |
| 2316 | { |
| 2317 | namespace Elog |
| 2318 | { |
| 2319 | namespace _TestErrorOne |
| 2320 | { |
| 2321 | |
| 2322 | struct ERRNUM |
| 2323 | { |
| 2324 | static constexpr auto str = "ERRNUM=0x%.4X"; |
| 2325 | static constexpr auto str_short = "ERRNUM"; |
| 2326 | using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>; |
| 2327 | explicit constexpr ERRNUM(uint16_t a) : _entry(entry(str, a)){}; |
| 2328 | type _entry; |
| 2329 | }; |
| 2330 | struct FILE_PATH |
| 2331 | { |
| 2332 | static constexpr auto str = "FILE_PATH=%s"; |
| 2333 | static constexpr auto str_short = "FILE_PATH"; |
| 2334 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 2335 | explicit constexpr FILE_PATH(const char* a) : _entry(entry(str, a)){}; |
| 2336 | type _entry; |
| 2337 | }; |
| 2338 | struct FILE_NAME |
| 2339 | { |
| 2340 | static constexpr auto str = "FILE_NAME=%s"; |
| 2341 | static constexpr auto str_short = "FILE_NAME"; |
| 2342 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 2343 | explicit constexpr FILE_NAME(const char* a) : _entry(entry(str, a)){}; |
| 2344 | type _entry; |
| 2345 | }; |
| 2346 | |
| 2347 | } // namespace _TestErrorOne |
| 2348 | |
| 2349 | struct TestErrorOne : public sdbusplus::exception_t |
| 2350 | { |
| 2351 | static constexpr auto errName = |
| 2352 | "example.xyz.openbmc_project.Example.Elog.TestErrorOne"; |
| 2353 | static constexpr auto errDesc = "this is test error one"; |
| 2354 | static constexpr auto L = level::INFO; |
| 2355 | using ERRNUM = _TestErrorOne::ERRNUM; |
| 2356 | using FILE_PATH = _TestErrorOne::FILE_PATH; |
| 2357 | using FILE_NAME = _TestErrorOne::FILE_NAME; |
| 2358 | using DEV_ADDR = |
| 2359 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 2360 | using DEV_ID = |
| 2361 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 2362 | using DEV_NAME = |
| 2363 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 2364 | using metadata_types = |
| 2365 | std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
| 2366 | |
| 2367 | const char* name() const noexcept |
| 2368 | { |
| 2369 | return errName; |
| 2370 | } |
| 2371 | |
| 2372 | const char* description() const noexcept |
| 2373 | { |
| 2374 | return errDesc; |
| 2375 | } |
| 2376 | |
| 2377 | const char* what() const noexcept |
| 2378 | { |
| 2379 | return errName; |
| 2380 | } |
| 2381 | }; |
| 2382 | |
| 2383 | } // namespace Elog |
| 2384 | } // namespace Example |
| 2385 | } // namespace openbmc_project |
| 2386 | } // namespace xyz |
| 2387 | } // namespace example |
| 2388 | |
| 2389 | namespace example |
| 2390 | { |
| 2391 | namespace xyz |
| 2392 | { |
| 2393 | namespace openbmc_project |
| 2394 | { |
| 2395 | namespace Example |
| 2396 | { |
| 2397 | namespace Foo |
| 2398 | { |
| 2399 | namespace _Foo |
| 2400 | { |
| 2401 | |
| 2402 | struct FOO_DATA |
| 2403 | { |
| 2404 | static constexpr auto str = "FOO_DATA=%s"; |
| 2405 | static constexpr auto str_short = "FOO_DATA"; |
| 2406 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 2407 | explicit constexpr FOO_DATA(const char* a) : _entry(entry(str, a)){}; |
| 2408 | type _entry; |
| 2409 | }; |
| 2410 | |
| 2411 | } // namespace _Foo |
| 2412 | |
| 2413 | struct Foo : public sdbusplus::exception_t |
| 2414 | { |
| 2415 | static constexpr auto errName = |
| 2416 | "example.xyz.openbmc_project.Example.Foo.Foo"; |
| 2417 | static constexpr auto errDesc = "this is test error Foo"; |
| 2418 | static constexpr auto L = level::INFO; |
| 2419 | using FOO_DATA = _Foo::FOO_DATA; |
| 2420 | using ERRNUM = |
| 2421 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 2422 | using FILE_PATH = |
| 2423 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 2424 | using FILE_NAME = |
| 2425 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 2426 | using DEV_ADDR = |
| 2427 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 2428 | using DEV_ID = |
| 2429 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 2430 | using DEV_NAME = |
| 2431 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 2432 | using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, |
| 2433 | DEV_ADDR, DEV_ID, DEV_NAME>; |
| 2434 | |
| 2435 | const char* name() const noexcept |
| 2436 | { |
| 2437 | return errName; |
| 2438 | } |
| 2439 | |
| 2440 | const char* description() const noexcept |
| 2441 | { |
| 2442 | return errDesc; |
| 2443 | } |
| 2444 | |
| 2445 | const char* what() const noexcept |
| 2446 | { |
| 2447 | return errName; |
| 2448 | } |
| 2449 | }; |
| 2450 | |
| 2451 | } // namespace Foo |
| 2452 | } // namespace Example |
| 2453 | } // namespace openbmc_project |
| 2454 | } // namespace xyz |
| 2455 | } // namespace example |
| 2456 | |
| 2457 | namespace example |
| 2458 | { |
| 2459 | namespace xyz |
| 2460 | { |
| 2461 | namespace openbmc_project |
| 2462 | { |
| 2463 | namespace Example |
| 2464 | { |
| 2465 | namespace Bar |
| 2466 | { |
| 2467 | namespace _Bar |
| 2468 | { |
| 2469 | |
| 2470 | struct BAR_DATA |
| 2471 | { |
| 2472 | static constexpr auto str = "BAR_DATA=%s"; |
| 2473 | static constexpr auto str_short = "BAR_DATA"; |
| 2474 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 2475 | explicit constexpr BAR_DATA(const char* a) : _entry(entry(str, a)){}; |
| 2476 | type _entry; |
| 2477 | }; |
| 2478 | |
| 2479 | } // namespace _Bar |
| 2480 | |
| 2481 | struct Bar : public sdbusplus::exception_t |
| 2482 | { |
| 2483 | static constexpr auto errName = |
| 2484 | "example.xyz.openbmc_project.Example.Bar.Bar"; |
| 2485 | static constexpr auto errDesc = "this is test error Bar"; |
| 2486 | static constexpr auto L = level::INFO; |
| 2487 | using BAR_DATA = _Bar::BAR_DATA; |
| 2488 | using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA; |
| 2489 | using ERRNUM = |
| 2490 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 2491 | using FILE_PATH = |
| 2492 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 2493 | using FILE_NAME = |
| 2494 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 2495 | using DEV_ADDR = |
| 2496 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 2497 | using DEV_ID = |
| 2498 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 2499 | using DEV_NAME = |
| 2500 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 2501 | using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, |
| 2502 | FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
| 2503 | |
| 2504 | const char* name() const noexcept |
| 2505 | { |
| 2506 | return errName; |
| 2507 | } |
| 2508 | |
| 2509 | const char* description() const noexcept |
| 2510 | { |
| 2511 | return errDesc; |
| 2512 | } |
| 2513 | |
| 2514 | const char* what() const noexcept |
| 2515 | { |
| 2516 | return errName; |
| 2517 | } |
| 2518 | }; |
| 2519 | |
| 2520 | } // namespace Bar |
| 2521 | } // namespace Example |
| 2522 | } // namespace openbmc_project |
| 2523 | } // namespace xyz |
| 2524 | } // namespace example |
| 2525 | |
| 2526 | } // namespace logging |
| 2527 | |
| 2528 | } // namespace phosphor |