Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
| 5 | #include <string> |
| 6 | #include <tuple> |
| 7 | #include <type_traits> |
| 8 | #include <sdbusplus/exception.hpp> |
| 9 | #include <phosphor-logging/log.hpp> |
| 10 | #include <phosphor-logging/elog.hpp> |
| 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Common |
| 19 | { |
| 20 | namespace Error |
| 21 | { |
| 22 | struct Timeout; |
| 23 | } // namespace Error |
| 24 | } // namespace Common |
| 25 | } // namespace openbmc_project |
| 26 | } // namespace xyz |
| 27 | } // namespace sdbusplus |
| 28 | |
| 29 | namespace sdbusplus |
| 30 | { |
| 31 | namespace xyz |
| 32 | { |
| 33 | namespace openbmc_project |
| 34 | { |
| 35 | namespace Common |
| 36 | { |
| 37 | namespace Callout |
| 38 | { |
| 39 | namespace Error |
| 40 | { |
| 41 | struct GPIO; |
| 42 | } // namespace Error |
| 43 | } // namespace Callout |
| 44 | } // namespace Common |
| 45 | } // namespace openbmc_project |
| 46 | } // namespace xyz |
| 47 | } // namespace sdbusplus |
| 48 | |
| 49 | namespace sdbusplus |
| 50 | { |
| 51 | namespace xyz |
| 52 | { |
| 53 | namespace openbmc_project |
| 54 | { |
| 55 | namespace Common |
| 56 | { |
| 57 | namespace Error |
| 58 | { |
| 59 | struct InvalidArgument; |
| 60 | } // namespace Error |
| 61 | } // namespace Common |
| 62 | } // namespace openbmc_project |
| 63 | } // namespace xyz |
| 64 | } // namespace sdbusplus |
| 65 | |
| 66 | namespace sdbusplus |
| 67 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 68 | namespace org |
| 69 | { |
| 70 | namespace open_power |
| 71 | { |
| 72 | namespace OCC |
| 73 | { |
| 74 | namespace Device |
| 75 | { |
| 76 | namespace Error |
| 77 | { |
| 78 | struct WriteFailure; |
| 79 | } // namespace Error |
| 80 | } // namespace Device |
| 81 | } // namespace OCC |
| 82 | } // namespace open_power |
| 83 | } // namespace org |
| 84 | } // namespace sdbusplus |
| 85 | |
| 86 | namespace sdbusplus |
| 87 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 88 | namespace xyz |
| 89 | { |
| 90 | namespace openbmc_project |
| 91 | { |
| 92 | namespace State |
| 93 | { |
| 94 | namespace Host |
| 95 | { |
| 96 | namespace Error |
| 97 | { |
| 98 | struct SoftOffTimeout; |
| 99 | } // namespace Error |
| 100 | } // namespace Host |
| 101 | } // namespace State |
| 102 | } // namespace openbmc_project |
| 103 | } // namespace xyz |
| 104 | } // namespace sdbusplus |
| 105 | |
| 106 | namespace sdbusplus |
| 107 | { |
| 108 | namespace xyz |
| 109 | { |
| 110 | namespace openbmc_project |
| 111 | { |
| 112 | namespace Common |
| 113 | { |
| 114 | namespace Callout |
| 115 | { |
| 116 | namespace Error |
| 117 | { |
| 118 | struct Inventory; |
| 119 | } // namespace Error |
| 120 | } // namespace Callout |
| 121 | } // namespace Common |
| 122 | } // namespace openbmc_project |
| 123 | } // namespace xyz |
| 124 | } // namespace sdbusplus |
| 125 | |
| 126 | namespace sdbusplus |
| 127 | { |
| 128 | namespace xyz |
| 129 | { |
| 130 | namespace openbmc_project |
| 131 | { |
| 132 | namespace Common |
| 133 | { |
| 134 | namespace Callout |
| 135 | { |
| 136 | namespace Error |
| 137 | { |
| 138 | struct IIC; |
| 139 | } // namespace Error |
| 140 | } // namespace Callout |
| 141 | } // namespace Common |
| 142 | } // namespace openbmc_project |
| 143 | } // namespace xyz |
| 144 | } // namespace sdbusplus |
| 145 | |
| 146 | namespace sdbusplus |
| 147 | { |
| 148 | namespace xyz |
| 149 | { |
| 150 | namespace openbmc_project |
| 151 | { |
| 152 | namespace Common |
| 153 | { |
| 154 | namespace File |
| 155 | { |
| 156 | namespace Error |
| 157 | { |
| 158 | struct Open; |
| 159 | } // namespace Error |
| 160 | } // namespace File |
| 161 | } // namespace Common |
| 162 | } // namespace openbmc_project |
| 163 | } // namespace xyz |
| 164 | } // namespace sdbusplus |
| 165 | |
| 166 | namespace sdbusplus |
| 167 | { |
| 168 | namespace xyz |
| 169 | { |
| 170 | namespace openbmc_project |
| 171 | { |
| 172 | namespace Common |
| 173 | { |
| 174 | namespace Error |
| 175 | { |
| 176 | struct InternalFailure; |
| 177 | } // namespace Error |
| 178 | } // namespace Common |
| 179 | } // namespace openbmc_project |
| 180 | } // namespace xyz |
| 181 | } // namespace sdbusplus |
| 182 | |
| 183 | namespace sdbusplus |
| 184 | { |
| 185 | namespace xyz |
| 186 | { |
| 187 | namespace openbmc_project |
| 188 | { |
| 189 | namespace Common |
| 190 | { |
| 191 | namespace Callout |
| 192 | { |
| 193 | namespace Error |
| 194 | { |
| 195 | struct Device; |
| 196 | } // namespace Error |
| 197 | } // namespace Callout |
| 198 | } // namespace Common |
| 199 | } // namespace openbmc_project |
| 200 | } // namespace xyz |
| 201 | } // namespace sdbusplus |
| 202 | |
| 203 | namespace sdbusplus |
| 204 | { |
| 205 | namespace xyz |
| 206 | { |
| 207 | namespace openbmc_project |
| 208 | { |
| 209 | namespace Control |
| 210 | { |
| 211 | namespace Device |
| 212 | { |
| 213 | namespace Error |
| 214 | { |
| 215 | struct WriteFailure; |
| 216 | } // namespace Error |
| 217 | } // namespace Device |
| 218 | } // namespace Control |
| 219 | } // namespace openbmc_project |
| 220 | } // namespace xyz |
| 221 | } // namespace sdbusplus |
| 222 | |
| 223 | namespace sdbusplus |
| 224 | { |
| 225 | namespace xyz |
| 226 | { |
| 227 | namespace openbmc_project |
| 228 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 229 | namespace Sensor |
| 230 | { |
| 231 | namespace Device |
| 232 | { |
| 233 | namespace Error |
| 234 | { |
| 235 | struct ReadFailure; |
| 236 | } // namespace Error |
| 237 | } // namespace Device |
| 238 | } // namespace Sensor |
| 239 | } // namespace openbmc_project |
| 240 | } // namespace xyz |
| 241 | } // namespace sdbusplus |
| 242 | |
| 243 | namespace sdbusplus |
| 244 | { |
| 245 | namespace xyz |
| 246 | { |
| 247 | namespace openbmc_project |
| 248 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 249 | namespace Common |
| 250 | { |
| 251 | namespace File |
| 252 | { |
| 253 | namespace Error |
| 254 | { |
| 255 | struct Seek; |
| 256 | } // namespace Error |
| 257 | } // namespace File |
| 258 | } // namespace Common |
| 259 | } // namespace openbmc_project |
| 260 | } // namespace xyz |
| 261 | } // namespace sdbusplus |
| 262 | |
| 263 | namespace sdbusplus |
| 264 | { |
| 265 | namespace org |
| 266 | { |
| 267 | namespace open_power |
| 268 | { |
| 269 | namespace OCC |
| 270 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 271 | namespace Device |
| 272 | { |
| 273 | namespace Error |
| 274 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 275 | struct ConfigFailure; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 276 | } // namespace Error |
| 277 | } // namespace Device |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 278 | } // namespace OCC |
| 279 | } // namespace open_power |
| 280 | } // namespace org |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 281 | } // namespace sdbusplus |
| 282 | |
| 283 | namespace sdbusplus |
| 284 | { |
| 285 | namespace org |
| 286 | { |
| 287 | namespace open_power |
| 288 | { |
| 289 | namespace OCC |
| 290 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 291 | namespace Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 292 | { |
| 293 | namespace Error |
| 294 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 295 | struct OpenFailure; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 296 | } // namespace Error |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 297 | } // namespace Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 298 | } // namespace OCC |
| 299 | } // namespace open_power |
| 300 | } // namespace org |
| 301 | } // namespace sdbusplus |
| 302 | |
| 303 | namespace sdbusplus |
| 304 | { |
| 305 | namespace xyz |
| 306 | { |
| 307 | namespace openbmc_project |
| 308 | { |
| 309 | namespace Common |
| 310 | { |
| 311 | namespace Callout |
| 312 | { |
| 313 | namespace Error |
| 314 | { |
| 315 | struct IPMISensor; |
| 316 | } // namespace Error |
| 317 | } // namespace Callout |
| 318 | } // namespace Common |
| 319 | } // namespace openbmc_project |
| 320 | } // namespace xyz |
| 321 | } // namespace sdbusplus |
| 322 | |
| 323 | namespace sdbusplus |
| 324 | { |
| 325 | namespace org |
| 326 | { |
| 327 | namespace open_power |
| 328 | { |
| 329 | namespace OCC |
| 330 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 331 | namespace Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 332 | { |
| 333 | namespace Error |
| 334 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 335 | struct ReadFailure; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 336 | } // namespace Error |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 337 | } // namespace Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 338 | } // namespace OCC |
| 339 | } // namespace open_power |
| 340 | } // namespace org |
| 341 | } // namespace sdbusplus |
| 342 | |
| 343 | namespace sdbusplus |
| 344 | { |
| 345 | namespace xyz |
| 346 | { |
| 347 | namespace openbmc_project |
| 348 | { |
| 349 | namespace Control |
| 350 | { |
| 351 | namespace Host |
| 352 | { |
| 353 | namespace Error |
| 354 | { |
| 355 | struct CommandNotSupported; |
| 356 | } // namespace Error |
| 357 | } // namespace Host |
| 358 | } // namespace Control |
| 359 | } // namespace openbmc_project |
| 360 | } // namespace xyz |
| 361 | } // namespace sdbusplus |
| 362 | |
| 363 | |
| 364 | namespace phosphor |
| 365 | { |
| 366 | |
| 367 | namespace logging |
| 368 | { |
| 369 | |
| 370 | namespace xyz |
| 371 | { |
| 372 | namespace openbmc_project |
| 373 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 374 | namespace Control |
| 375 | { |
| 376 | namespace Host |
| 377 | { |
| 378 | namespace _CommandNotSupported |
| 379 | { |
| 380 | |
| 381 | |
| 382 | } // namespace _CommandNotSupported |
| 383 | |
| 384 | struct CommandNotSupported |
| 385 | { |
| 386 | static constexpr auto L = level::ERR; |
| 387 | using metadata_types = std::tuple<>; |
| 388 | |
| 389 | }; |
| 390 | |
| 391 | } // namespace Host |
| 392 | } // namespace Control |
| 393 | } // namespace openbmc_project |
| 394 | } // namespace xyz |
| 395 | |
| 396 | |
| 397 | namespace details |
| 398 | { |
| 399 | |
| 400 | template <> |
| 401 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported> |
| 402 | { |
| 403 | using type = xyz::openbmc_project::Control::Host::CommandNotSupported; |
| 404 | }; |
| 405 | |
| 406 | } |
| 407 | |
| 408 | namespace xyz |
| 409 | { |
| 410 | namespace openbmc_project |
| 411 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 412 | namespace Common |
| 413 | { |
| 414 | namespace _Timeout |
| 415 | { |
| 416 | |
| 417 | struct TIMEOUT_IN_MSEC |
| 418 | { |
| 419 | static constexpr auto str = "TIMEOUT_IN_MSEC=%llu"; |
| 420 | static constexpr auto str_short = "TIMEOUT_IN_MSEC"; |
| 421 | using type = std::tuple<std::decay_t<decltype(str)>,uint64_t>; |
| 422 | explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : _entry(entry(str, a)) {}; |
| 423 | type _entry; |
| 424 | }; |
| 425 | |
| 426 | } // namespace _Timeout |
| 427 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 428 | struct Timeout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 429 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 430 | static constexpr auto L = level::ERR; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 431 | using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC; |
| 432 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
| 433 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 434 | }; |
| 435 | |
| 436 | } // namespace Common |
| 437 | } // namespace openbmc_project |
| 438 | } // namespace xyz |
| 439 | |
| 440 | |
| 441 | namespace details |
| 442 | { |
| 443 | |
| 444 | template <> |
| 445 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::Timeout> |
| 446 | { |
| 447 | using type = xyz::openbmc_project::Common::Timeout; |
| 448 | }; |
| 449 | |
| 450 | } |
| 451 | |
| 452 | namespace xyz |
| 453 | { |
| 454 | namespace openbmc_project |
| 455 | { |
| 456 | namespace Common |
| 457 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 458 | namespace _InternalFailure |
| 459 | { |
| 460 | |
| 461 | |
| 462 | } // namespace _InternalFailure |
| 463 | |
| 464 | struct InternalFailure |
| 465 | { |
| 466 | static constexpr auto L = level::ERR; |
| 467 | using metadata_types = std::tuple<>; |
| 468 | |
| 469 | }; |
| 470 | |
| 471 | } // namespace Common |
| 472 | } // namespace openbmc_project |
| 473 | } // namespace xyz |
| 474 | |
| 475 | |
| 476 | namespace details |
| 477 | { |
| 478 | |
| 479 | template <> |
| 480 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure> |
| 481 | { |
| 482 | using type = xyz::openbmc_project::Common::InternalFailure; |
| 483 | }; |
| 484 | |
| 485 | } |
| 486 | |
| 487 | namespace xyz |
| 488 | { |
| 489 | namespace openbmc_project |
| 490 | { |
| 491 | namespace Common |
| 492 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 493 | namespace _InvalidArgument |
| 494 | { |
| 495 | |
| 496 | struct ARGUMENT_NAME |
| 497 | { |
| 498 | static constexpr auto str = "ARGUMENT_NAME=%s"; |
| 499 | static constexpr auto str_short = "ARGUMENT_NAME"; |
| 500 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 501 | explicit constexpr ARGUMENT_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 502 | type _entry; |
| 503 | }; |
| 504 | struct ARGUMENT_VALUE |
| 505 | { |
| 506 | static constexpr auto str = "ARGUMENT_VALUE=%s"; |
| 507 | static constexpr auto str_short = "ARGUMENT_VALUE"; |
| 508 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 509 | explicit constexpr ARGUMENT_VALUE(const char* a) : _entry(entry(str, a)) {}; |
| 510 | type _entry; |
| 511 | }; |
| 512 | |
| 513 | } // namespace _InvalidArgument |
| 514 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 515 | struct InvalidArgument |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 516 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 517 | static constexpr auto L = level::ERR; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 518 | using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME; |
| 519 | using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE; |
| 520 | using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>; |
| 521 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 522 | }; |
| 523 | |
| 524 | } // namespace Common |
| 525 | } // namespace openbmc_project |
| 526 | } // namespace xyz |
| 527 | |
| 528 | |
| 529 | namespace details |
| 530 | { |
| 531 | |
| 532 | template <> |
| 533 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument> |
| 534 | { |
| 535 | using type = xyz::openbmc_project::Common::InvalidArgument; |
| 536 | }; |
| 537 | |
| 538 | } |
| 539 | |
| 540 | namespace xyz |
| 541 | { |
| 542 | namespace openbmc_project |
| 543 | { |
| 544 | namespace Common |
| 545 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 546 | namespace File |
| 547 | { |
| 548 | namespace _Open |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 549 | { |
| 550 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 551 | struct ERRNO |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 552 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 553 | static constexpr auto str = "ERRNO=%d"; |
| 554 | static constexpr auto str_short = "ERRNO"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 555 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 556 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 557 | type _entry; |
| 558 | }; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 559 | struct PATH |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 560 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 561 | static constexpr auto str = "PATH=%s"; |
| 562 | static constexpr auto str_short = "PATH"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 563 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 564 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 565 | type _entry; |
| 566 | }; |
| 567 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 568 | } // namespace _Open |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 569 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 570 | struct Open |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 571 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 572 | static constexpr auto L = level::ERR; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 573 | using ERRNO = _Open::ERRNO; |
| 574 | using PATH = _Open::PATH; |
| 575 | using metadata_types = std::tuple<ERRNO, PATH>; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 576 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 577 | }; |
| 578 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 579 | } // namespace File |
| 580 | } // namespace Common |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 581 | } // namespace openbmc_project |
| 582 | } // namespace xyz |
| 583 | |
| 584 | |
| 585 | namespace details |
| 586 | { |
| 587 | |
| 588 | template <> |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 589 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Open> |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 590 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 591 | using type = xyz::openbmc_project::Common::File::Open; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 592 | }; |
| 593 | |
| 594 | } |
| 595 | |
| 596 | namespace xyz |
| 597 | { |
| 598 | namespace openbmc_project |
| 599 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 600 | namespace Common |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 601 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 602 | namespace File |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 603 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 604 | namespace _Seek |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 605 | { |
| 606 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 607 | struct OFFSET |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 608 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 609 | static constexpr auto str = "OFFSET=%ll"; |
| 610 | static constexpr auto str_short = "OFFSET"; |
| 611 | using type = std::tuple<std::decay_t<decltype(str)>,int64_t>; |
| 612 | explicit constexpr OFFSET(int64_t a) : _entry(entry(str, a)) {}; |
| 613 | type _entry; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 614 | }; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 615 | struct WHENCE |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 616 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 617 | static constexpr auto str = "WHENCE=%d"; |
| 618 | static constexpr auto str_short = "WHENCE"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 619 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 620 | explicit constexpr WHENCE(int32_t a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 621 | type _entry; |
| 622 | }; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 623 | struct ERRNO |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 624 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 625 | static constexpr auto str = "ERRNO=%d"; |
| 626 | static constexpr auto str_short = "ERRNO"; |
| 627 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
| 628 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)) {}; |
| 629 | type _entry; |
| 630 | }; |
| 631 | struct PATH |
| 632 | { |
| 633 | static constexpr auto str = "PATH=%s"; |
| 634 | static constexpr auto str_short = "PATH"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 635 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 636 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 637 | type _entry; |
| 638 | }; |
| 639 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 640 | } // namespace _Seek |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 641 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 642 | struct Seek |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 643 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 644 | static constexpr auto L = level::ERR; |
| 645 | using OFFSET = _Seek::OFFSET; |
| 646 | using WHENCE = _Seek::WHENCE; |
| 647 | using ERRNO = _Seek::ERRNO; |
| 648 | using PATH = _Seek::PATH; |
| 649 | using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 650 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 651 | }; |
| 652 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 653 | } // namespace File |
| 654 | } // namespace Common |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 655 | } // namespace openbmc_project |
| 656 | } // namespace xyz |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 657 | |
| 658 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 659 | namespace details |
| 660 | { |
| 661 | |
| 662 | template <> |
| 663 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::File::Error::Seek> |
| 664 | { |
| 665 | using type = xyz::openbmc_project::Common::File::Seek; |
| 666 | }; |
| 667 | |
| 668 | } |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 669 | |
| 670 | namespace example |
| 671 | { |
| 672 | namespace xyz |
| 673 | { |
| 674 | namespace openbmc_project |
| 675 | { |
| 676 | namespace Example |
| 677 | { |
| 678 | namespace Elog |
| 679 | { |
| 680 | namespace _TestErrorTwo |
| 681 | { |
| 682 | |
| 683 | struct DEV_ADDR |
| 684 | { |
| 685 | static constexpr auto str = "DEV_ADDR=0x%.8X"; |
| 686 | static constexpr auto str_short = "DEV_ADDR"; |
| 687 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 688 | explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)) {}; |
| 689 | type _entry; |
| 690 | }; |
| 691 | struct DEV_ID |
| 692 | { |
| 693 | static constexpr auto str = "DEV_ID=%u"; |
| 694 | static constexpr auto str_short = "DEV_ID"; |
| 695 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 696 | explicit constexpr DEV_ID(uint32_t a) : _entry(entry(str, a)) {}; |
| 697 | type _entry; |
| 698 | }; |
| 699 | struct DEV_NAME |
| 700 | { |
| 701 | static constexpr auto str = "DEV_NAME=%s"; |
| 702 | static constexpr auto str_short = "DEV_NAME"; |
| 703 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 704 | explicit constexpr DEV_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 705 | type _entry; |
| 706 | }; |
| 707 | |
| 708 | } // namespace _TestErrorTwo |
| 709 | |
| 710 | struct TestErrorTwo : public sdbusplus::exception_t |
| 711 | { |
| 712 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestErrorTwo"; |
| 713 | static constexpr auto errDesc = "This is test error two"; |
| 714 | static constexpr auto L = level::ERR; |
| 715 | using DEV_ADDR = _TestErrorTwo::DEV_ADDR; |
| 716 | using DEV_ID = _TestErrorTwo::DEV_ID; |
| 717 | using DEV_NAME = _TestErrorTwo::DEV_NAME; |
| 718 | using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>; |
| 719 | |
| 720 | const char* name() const noexcept |
| 721 | { |
| 722 | return errName; |
| 723 | } |
| 724 | |
| 725 | const char* description() const noexcept |
| 726 | { |
| 727 | return errDesc; |
| 728 | } |
| 729 | |
| 730 | const char* what() const noexcept |
| 731 | { |
| 732 | return errName; |
| 733 | } |
| 734 | }; |
| 735 | |
| 736 | } // namespace Elog |
| 737 | } // namespace Example |
| 738 | } // namespace openbmc_project |
| 739 | } // namespace xyz |
| 740 | } // namespace example |
| 741 | |
| 742 | |
| 743 | |
| 744 | namespace example |
| 745 | { |
| 746 | namespace xyz |
| 747 | { |
| 748 | namespace openbmc_project |
| 749 | { |
| 750 | namespace Example |
| 751 | { |
| 752 | namespace Elog |
| 753 | { |
| 754 | namespace _AutoTestSimple |
| 755 | { |
| 756 | |
| 757 | struct STRING |
| 758 | { |
| 759 | static constexpr auto str = "STRING=%s"; |
| 760 | static constexpr auto str_short = "STRING"; |
| 761 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 762 | explicit constexpr STRING(const char* a) : _entry(entry(str, a)) {}; |
| 763 | type _entry; |
| 764 | }; |
| 765 | |
| 766 | } // namespace _AutoTestSimple |
| 767 | |
| 768 | struct AutoTestSimple : public sdbusplus::exception_t |
| 769 | { |
| 770 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.AutoTestSimple"; |
| 771 | static constexpr auto errDesc = "This is a simple test error."; |
| 772 | static constexpr auto L = level::ERR; |
| 773 | using STRING = _AutoTestSimple::STRING; |
| 774 | using metadata_types = std::tuple<STRING>; |
| 775 | |
| 776 | const char* name() const noexcept |
| 777 | { |
| 778 | return errName; |
| 779 | } |
| 780 | |
| 781 | const char* description() const noexcept |
| 782 | { |
| 783 | return errDesc; |
| 784 | } |
| 785 | |
| 786 | const char* what() const noexcept |
| 787 | { |
| 788 | return errName; |
| 789 | } |
| 790 | }; |
| 791 | |
| 792 | } // namespace Elog |
| 793 | } // namespace Example |
| 794 | } // namespace openbmc_project |
| 795 | } // namespace xyz |
| 796 | } // namespace example |
| 797 | |
| 798 | |
| 799 | |
| 800 | namespace example |
| 801 | { |
| 802 | namespace xyz |
| 803 | { |
| 804 | namespace openbmc_project |
| 805 | { |
| 806 | namespace Example |
| 807 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 808 | namespace Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 809 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 810 | namespace _Callout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 811 | { |
| 812 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 813 | struct CALLOUT_ERRNO_TEST |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 814 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 815 | static constexpr auto str = "CALLOUT_ERRNO_TEST=%d"; |
| 816 | static constexpr auto str_short = "CALLOUT_ERRNO_TEST"; |
| 817 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
| 818 | explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : _entry(entry(str, a)) {}; |
| 819 | type _entry; |
| 820 | }; |
| 821 | struct CALLOUT_DEVICE_PATH_TEST |
| 822 | { |
| 823 | static constexpr auto str = "CALLOUT_DEVICE_PATH_TEST=%s"; |
| 824 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST"; |
| 825 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 826 | explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 827 | type _entry; |
| 828 | }; |
| 829 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 830 | } // namespace _Callout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 831 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 832 | struct Callout : public sdbusplus::exception_t |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 833 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 834 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Device.Callout"; |
| 835 | static constexpr auto errDesc = "Generic device callout"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 836 | static constexpr auto L = level::ERR; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 837 | using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST; |
| 838 | using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST; |
| 839 | using metadata_types = std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 840 | |
| 841 | const char* name() const noexcept |
| 842 | { |
| 843 | return errName; |
| 844 | } |
| 845 | |
| 846 | const char* description() const noexcept |
| 847 | { |
| 848 | return errDesc; |
| 849 | } |
| 850 | |
| 851 | const char* what() const noexcept |
| 852 | { |
| 853 | return errName; |
| 854 | } |
| 855 | }; |
| 856 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 857 | } // namespace Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 858 | } // namespace Example |
| 859 | } // namespace openbmc_project |
| 860 | } // namespace xyz |
| 861 | } // namespace example |
| 862 | |
| 863 | |
| 864 | |
| 865 | namespace xyz |
| 866 | { |
| 867 | namespace openbmc_project |
| 868 | { |
| 869 | namespace Common |
| 870 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 871 | namespace Callout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 872 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 873 | namespace _Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 874 | { |
| 875 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 876 | struct CALLOUT_ERRNO |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 877 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 878 | static constexpr auto str = "CALLOUT_ERRNO=%d"; |
| 879 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 880 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 881 | explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 882 | type _entry; |
| 883 | }; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 884 | struct CALLOUT_DEVICE_PATH |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 885 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 886 | static constexpr auto str = "CALLOUT_DEVICE_PATH=%s"; |
| 887 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 888 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 889 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 890 | type _entry; |
| 891 | }; |
| 892 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 893 | } // namespace _Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 894 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 895 | struct Device |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 896 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 897 | static constexpr auto L = level::ERR; |
| 898 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 899 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 900 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 901 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 902 | }; |
| 903 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 904 | } // namespace Callout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 905 | } // namespace Common |
| 906 | } // namespace openbmc_project |
| 907 | } // namespace xyz |
| 908 | |
| 909 | |
| 910 | namespace details |
| 911 | { |
| 912 | |
| 913 | template <> |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 914 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 915 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 916 | using type = xyz::openbmc_project::Common::Callout::Device; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 917 | }; |
| 918 | |
| 919 | } |
| 920 | |
| 921 | namespace xyz |
| 922 | { |
| 923 | namespace openbmc_project |
| 924 | { |
| 925 | namespace Common |
| 926 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 927 | namespace Callout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 928 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 929 | namespace _GPIO |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 930 | { |
| 931 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 932 | struct CALLOUT_GPIO_NUM |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 933 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 934 | static constexpr auto str = "CALLOUT_GPIO_NUM=%u"; |
| 935 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 936 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 937 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 938 | type _entry; |
| 939 | }; |
| 940 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 941 | } // namespace _GPIO |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 942 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 943 | struct GPIO |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 944 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 945 | static constexpr auto L = level::ERR; |
| 946 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 947 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 948 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 949 | using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 950 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 951 | }; |
| 952 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 953 | } // namespace Callout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 954 | } // namespace Common |
| 955 | } // namespace openbmc_project |
| 956 | } // namespace xyz |
| 957 | |
| 958 | |
| 959 | namespace details |
| 960 | { |
| 961 | |
| 962 | template <> |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 963 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 964 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 965 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 966 | }; |
| 967 | |
| 968 | } |
| 969 | |
| 970 | namespace xyz |
| 971 | { |
| 972 | namespace openbmc_project |
| 973 | { |
| 974 | namespace Common |
| 975 | { |
| 976 | namespace Callout |
| 977 | { |
| 978 | namespace _IIC |
| 979 | { |
| 980 | |
| 981 | struct CALLOUT_IIC_BUS |
| 982 | { |
| 983 | static constexpr auto str = "CALLOUT_IIC_BUS=%s"; |
| 984 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 985 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 986 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {}; |
| 987 | type _entry; |
| 988 | }; |
| 989 | struct CALLOUT_IIC_ADDR |
| 990 | { |
| 991 | static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx"; |
| 992 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 993 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 994 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {}; |
| 995 | type _entry; |
| 996 | }; |
| 997 | |
| 998 | } // namespace _IIC |
| 999 | |
| 1000 | struct IIC |
| 1001 | { |
| 1002 | static constexpr auto L = level::ERR; |
| 1003 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 1004 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 1005 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1006 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1007 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1008 | |
| 1009 | }; |
| 1010 | |
| 1011 | } // namespace Callout |
| 1012 | } // namespace Common |
| 1013 | } // namespace openbmc_project |
| 1014 | } // namespace xyz |
| 1015 | |
| 1016 | |
| 1017 | namespace details |
| 1018 | { |
| 1019 | |
| 1020 | template <> |
| 1021 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 1022 | { |
| 1023 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 1024 | }; |
| 1025 | |
| 1026 | } |
| 1027 | |
| 1028 | namespace xyz |
| 1029 | { |
| 1030 | namespace openbmc_project |
| 1031 | { |
| 1032 | namespace Common |
| 1033 | { |
| 1034 | namespace Callout |
| 1035 | { |
| 1036 | namespace _Inventory |
| 1037 | { |
| 1038 | |
| 1039 | struct CALLOUT_INVENTORY_PATH |
| 1040 | { |
| 1041 | static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s"; |
| 1042 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 1043 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1044 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 1045 | type _entry; |
| 1046 | }; |
| 1047 | |
| 1048 | } // namespace _Inventory |
| 1049 | |
| 1050 | struct Inventory |
| 1051 | { |
| 1052 | static constexpr auto L = level::ERR; |
| 1053 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 1054 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 1055 | |
| 1056 | }; |
| 1057 | |
| 1058 | } // namespace Callout |
| 1059 | } // namespace Common |
| 1060 | } // namespace openbmc_project |
| 1061 | } // namespace xyz |
| 1062 | |
| 1063 | |
| 1064 | namespace details |
| 1065 | { |
| 1066 | |
| 1067 | template <> |
| 1068 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 1069 | { |
| 1070 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 1071 | }; |
| 1072 | |
| 1073 | } |
| 1074 | |
| 1075 | namespace xyz |
| 1076 | { |
| 1077 | namespace openbmc_project |
| 1078 | { |
| 1079 | namespace Common |
| 1080 | { |
| 1081 | namespace Callout |
| 1082 | { |
| 1083 | namespace _IPMISensor |
| 1084 | { |
| 1085 | |
| 1086 | struct CALLOUT_IPMI_SENSOR_NUM |
| 1087 | { |
| 1088 | static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u"; |
| 1089 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 1090 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 1091 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 1092 | type _entry; |
| 1093 | }; |
| 1094 | |
| 1095 | } // namespace _IPMISensor |
| 1096 | |
| 1097 | struct IPMISensor |
| 1098 | { |
| 1099 | static constexpr auto L = level::ERR; |
| 1100 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 1101 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 1102 | |
| 1103 | }; |
| 1104 | |
| 1105 | } // namespace Callout |
| 1106 | } // namespace Common |
| 1107 | } // namespace openbmc_project |
| 1108 | } // namespace xyz |
| 1109 | |
| 1110 | |
| 1111 | namespace details |
| 1112 | { |
| 1113 | |
| 1114 | template <> |
| 1115 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 1116 | { |
| 1117 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1118 | }; |
| 1119 | |
| 1120 | } |
| 1121 | |
| 1122 | namespace xyz |
| 1123 | { |
| 1124 | namespace openbmc_project |
| 1125 | { |
| 1126 | namespace State |
| 1127 | { |
| 1128 | namespace Host |
| 1129 | { |
| 1130 | namespace _SoftOffTimeout |
| 1131 | { |
| 1132 | |
| 1133 | |
| 1134 | } // namespace _SoftOffTimeout |
| 1135 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 1136 | struct SoftOffTimeout |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1137 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 1138 | static constexpr auto L = level::ERR; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1139 | using TIMEOUT_IN_MSEC = xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC; |
| 1140 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
| 1141 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1142 | }; |
| 1143 | |
| 1144 | } // namespace Host |
| 1145 | } // namespace State |
| 1146 | } // namespace openbmc_project |
| 1147 | } // namespace xyz |
| 1148 | |
| 1149 | |
| 1150 | namespace details |
| 1151 | { |
| 1152 | |
| 1153 | template <> |
| 1154 | struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout> |
| 1155 | { |
| 1156 | using type = xyz::openbmc_project::State::Host::SoftOffTimeout; |
| 1157 | }; |
| 1158 | |
| 1159 | } |
| 1160 | |
| 1161 | namespace xyz |
| 1162 | { |
| 1163 | namespace openbmc_project |
| 1164 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 1165 | namespace Control |
| 1166 | { |
| 1167 | namespace Device |
| 1168 | { |
| 1169 | namespace _WriteFailure |
| 1170 | { |
| 1171 | |
| 1172 | |
| 1173 | } // namespace _WriteFailure |
| 1174 | |
| 1175 | struct WriteFailure |
| 1176 | { |
| 1177 | static constexpr auto L = level::ERR; |
| 1178 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1179 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1180 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1181 | |
| 1182 | }; |
| 1183 | |
| 1184 | } // namespace Device |
| 1185 | } // namespace Control |
| 1186 | } // namespace openbmc_project |
| 1187 | } // namespace xyz |
| 1188 | |
| 1189 | |
| 1190 | namespace details |
| 1191 | { |
| 1192 | |
| 1193 | template <> |
| 1194 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure> |
| 1195 | { |
| 1196 | using type = xyz::openbmc_project::Control::Device::WriteFailure; |
| 1197 | }; |
| 1198 | |
| 1199 | } |
| 1200 | |
| 1201 | namespace org |
| 1202 | { |
| 1203 | namespace open_power |
| 1204 | { |
| 1205 | namespace OCC |
| 1206 | { |
| 1207 | namespace Device |
| 1208 | { |
| 1209 | namespace _OpenFailure |
| 1210 | { |
| 1211 | |
| 1212 | |
| 1213 | } // namespace _OpenFailure |
| 1214 | |
| 1215 | struct OpenFailure |
| 1216 | { |
| 1217 | static constexpr auto L = level::ERR; |
| 1218 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1219 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1220 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1221 | |
| 1222 | }; |
| 1223 | |
| 1224 | } // namespace Device |
| 1225 | } // namespace OCC |
| 1226 | } // namespace open_power |
| 1227 | } // namespace org |
| 1228 | |
| 1229 | |
| 1230 | namespace details |
| 1231 | { |
| 1232 | |
| 1233 | template <> |
| 1234 | struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::OpenFailure> |
| 1235 | { |
| 1236 | using type = org::open_power::OCC::Device::OpenFailure; |
| 1237 | }; |
| 1238 | |
| 1239 | } |
| 1240 | |
| 1241 | namespace org |
| 1242 | { |
| 1243 | namespace open_power |
| 1244 | { |
| 1245 | namespace OCC |
| 1246 | { |
| 1247 | namespace Device |
| 1248 | { |
| 1249 | namespace _ReadFailure |
| 1250 | { |
| 1251 | |
| 1252 | |
| 1253 | } // namespace _ReadFailure |
| 1254 | |
| 1255 | struct ReadFailure |
| 1256 | { |
| 1257 | static constexpr auto L = level::ERR; |
| 1258 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1259 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1260 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1261 | |
| 1262 | }; |
| 1263 | |
| 1264 | } // namespace Device |
| 1265 | } // namespace OCC |
| 1266 | } // namespace open_power |
| 1267 | } // namespace org |
| 1268 | |
| 1269 | |
| 1270 | namespace details |
| 1271 | { |
| 1272 | |
| 1273 | template <> |
| 1274 | struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::ReadFailure> |
| 1275 | { |
| 1276 | using type = org::open_power::OCC::Device::ReadFailure; |
| 1277 | }; |
| 1278 | |
| 1279 | } |
| 1280 | |
| 1281 | namespace org |
| 1282 | { |
| 1283 | namespace open_power |
| 1284 | { |
| 1285 | namespace OCC |
| 1286 | { |
| 1287 | namespace Device |
| 1288 | { |
| 1289 | namespace _WriteFailure |
| 1290 | { |
| 1291 | |
| 1292 | |
| 1293 | } // namespace _WriteFailure |
| 1294 | |
| 1295 | struct WriteFailure |
| 1296 | { |
| 1297 | static constexpr auto L = level::ERR; |
| 1298 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1299 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1300 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1301 | |
| 1302 | }; |
| 1303 | |
| 1304 | } // namespace Device |
| 1305 | } // namespace OCC |
| 1306 | } // namespace open_power |
| 1307 | } // namespace org |
| 1308 | |
| 1309 | |
| 1310 | namespace details |
| 1311 | { |
| 1312 | |
| 1313 | template <> |
| 1314 | struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::WriteFailure> |
| 1315 | { |
| 1316 | using type = org::open_power::OCC::Device::WriteFailure; |
| 1317 | }; |
| 1318 | |
| 1319 | } |
| 1320 | |
| 1321 | namespace org |
| 1322 | { |
| 1323 | namespace open_power |
| 1324 | { |
| 1325 | namespace OCC |
| 1326 | { |
| 1327 | namespace Device |
| 1328 | { |
| 1329 | namespace _ConfigFailure |
| 1330 | { |
| 1331 | |
| 1332 | |
| 1333 | } // namespace _ConfigFailure |
| 1334 | |
| 1335 | struct ConfigFailure |
| 1336 | { |
| 1337 | static constexpr auto L = level::ERR; |
| 1338 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1339 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1340 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1341 | |
| 1342 | }; |
| 1343 | |
| 1344 | } // namespace Device |
| 1345 | } // namespace OCC |
| 1346 | } // namespace open_power |
| 1347 | } // namespace org |
| 1348 | |
| 1349 | |
| 1350 | namespace details |
| 1351 | { |
| 1352 | |
| 1353 | template <> |
| 1354 | struct map_exception_type<sdbusplus::org::open_power::OCC::Device::Error::ConfigFailure> |
| 1355 | { |
| 1356 | using type = org::open_power::OCC::Device::ConfigFailure; |
| 1357 | }; |
| 1358 | |
| 1359 | } |
| 1360 | |
| 1361 | namespace xyz |
| 1362 | { |
| 1363 | namespace openbmc_project |
| 1364 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1365 | namespace Sensor |
| 1366 | { |
| 1367 | namespace Device |
| 1368 | { |
| 1369 | namespace _ReadFailure |
| 1370 | { |
| 1371 | |
| 1372 | |
| 1373 | } // namespace _ReadFailure |
| 1374 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 1375 | struct ReadFailure |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1376 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 1377 | static constexpr auto L = level::ERR; |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1378 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1379 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1380 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 1381 | |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1382 | }; |
| 1383 | |
| 1384 | } // namespace Device |
| 1385 | } // namespace Sensor |
| 1386 | } // namespace openbmc_project |
| 1387 | } // namespace xyz |
| 1388 | |
| 1389 | |
| 1390 | namespace details |
| 1391 | { |
| 1392 | |
| 1393 | template <> |
| 1394 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure> |
| 1395 | { |
| 1396 | using type = xyz::openbmc_project::Sensor::Device::ReadFailure; |
| 1397 | }; |
| 1398 | |
| 1399 | } |
| 1400 | |
| 1401 | namespace example |
| 1402 | { |
| 1403 | namespace xyz |
| 1404 | { |
| 1405 | namespace openbmc_project |
| 1406 | { |
| 1407 | namespace Example |
| 1408 | { |
| 1409 | namespace Elog |
| 1410 | { |
| 1411 | namespace _TestErrorOne |
| 1412 | { |
| 1413 | |
| 1414 | struct ERRNUM |
| 1415 | { |
| 1416 | static constexpr auto str = "ERRNUM=0x%.4X"; |
| 1417 | static constexpr auto str_short = "ERRNUM"; |
| 1418 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 1419 | explicit constexpr ERRNUM(uint16_t a) : _entry(entry(str, a)) {}; |
| 1420 | type _entry; |
| 1421 | }; |
| 1422 | struct FILE_PATH |
| 1423 | { |
| 1424 | static constexpr auto str = "FILE_PATH=%s"; |
| 1425 | static constexpr auto str_short = "FILE_PATH"; |
| 1426 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1427 | explicit constexpr FILE_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 1428 | type _entry; |
| 1429 | }; |
| 1430 | struct FILE_NAME |
| 1431 | { |
| 1432 | static constexpr auto str = "FILE_NAME=%s"; |
| 1433 | static constexpr auto str_short = "FILE_NAME"; |
| 1434 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1435 | explicit constexpr FILE_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 1436 | type _entry; |
| 1437 | }; |
| 1438 | |
| 1439 | } // namespace _TestErrorOne |
| 1440 | |
| 1441 | struct TestErrorOne : public sdbusplus::exception_t |
| 1442 | { |
| 1443 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestErrorOne"; |
| 1444 | static constexpr auto errDesc = "this is test error one"; |
| 1445 | static constexpr auto L = level::INFO; |
| 1446 | using ERRNUM = _TestErrorOne::ERRNUM; |
| 1447 | using FILE_PATH = _TestErrorOne::FILE_PATH; |
| 1448 | using FILE_NAME = _TestErrorOne::FILE_NAME; |
| 1449 | using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 1450 | using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 1451 | using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 1452 | using metadata_types = std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
| 1453 | |
| 1454 | const char* name() const noexcept |
| 1455 | { |
| 1456 | return errName; |
| 1457 | } |
| 1458 | |
| 1459 | const char* description() const noexcept |
| 1460 | { |
| 1461 | return errDesc; |
| 1462 | } |
| 1463 | |
| 1464 | const char* what() const noexcept |
| 1465 | { |
| 1466 | return errName; |
| 1467 | } |
| 1468 | }; |
| 1469 | |
| 1470 | } // namespace Elog |
| 1471 | } // namespace Example |
| 1472 | } // namespace openbmc_project |
| 1473 | } // namespace xyz |
| 1474 | } // namespace example |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | namespace example |
| 1479 | { |
| 1480 | namespace xyz |
| 1481 | { |
| 1482 | namespace openbmc_project |
| 1483 | { |
| 1484 | namespace Example |
| 1485 | { |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 1486 | namespace Elog |
| 1487 | { |
| 1488 | namespace _TestCallout |
| 1489 | { |
| 1490 | |
| 1491 | struct DEV_ADDR |
| 1492 | { |
| 1493 | static constexpr auto str = "DEV_ADDR=0x%.8X"; |
| 1494 | static constexpr auto str_short = "DEV_ADDR"; |
| 1495 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 1496 | explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)) {}; |
| 1497 | type _entry; |
| 1498 | }; |
| 1499 | |
| 1500 | } // namespace _TestCallout |
| 1501 | |
| 1502 | struct TestCallout : public sdbusplus::exception_t |
| 1503 | { |
| 1504 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Elog.TestCallout"; |
| 1505 | static constexpr auto errDesc = "This is test error TestCallout"; |
| 1506 | static constexpr auto L = level::ERR; |
| 1507 | using DEV_ADDR = _TestCallout::DEV_ADDR; |
| 1508 | using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device::Callout::CALLOUT_ERRNO_TEST; |
| 1509 | using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example::Device::Callout::CALLOUT_DEVICE_PATH_TEST; |
| 1510 | using metadata_types = std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 1511 | |
| 1512 | const char* name() const noexcept |
| 1513 | { |
| 1514 | return errName; |
| 1515 | } |
| 1516 | |
| 1517 | const char* description() const noexcept |
| 1518 | { |
| 1519 | return errDesc; |
| 1520 | } |
| 1521 | |
| 1522 | const char* what() const noexcept |
| 1523 | { |
| 1524 | return errName; |
| 1525 | } |
| 1526 | }; |
| 1527 | |
| 1528 | } // namespace Elog |
| 1529 | } // namespace Example |
| 1530 | } // namespace openbmc_project |
| 1531 | } // namespace xyz |
| 1532 | } // namespace example |
| 1533 | |
| 1534 | |
| 1535 | |
| 1536 | namespace example |
| 1537 | { |
| 1538 | namespace xyz |
| 1539 | { |
| 1540 | namespace openbmc_project |
| 1541 | { |
| 1542 | namespace Example |
| 1543 | { |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 1544 | namespace Foo |
| 1545 | { |
| 1546 | namespace _Foo |
| 1547 | { |
| 1548 | |
| 1549 | struct FOO_DATA |
| 1550 | { |
| 1551 | static constexpr auto str = "FOO_DATA=%s"; |
| 1552 | static constexpr auto str_short = "FOO_DATA"; |
| 1553 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1554 | explicit constexpr FOO_DATA(const char* a) : _entry(entry(str, a)) {}; |
| 1555 | type _entry; |
| 1556 | }; |
| 1557 | |
| 1558 | } // namespace _Foo |
| 1559 | |
| 1560 | struct Foo : public sdbusplus::exception_t |
| 1561 | { |
| 1562 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Foo.Foo"; |
| 1563 | static constexpr auto errDesc = "this is test error Foo"; |
| 1564 | static constexpr auto L = level::INFO; |
| 1565 | using FOO_DATA = _Foo::FOO_DATA; |
| 1566 | using ERRNUM = example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 1567 | using FILE_PATH = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 1568 | using FILE_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 1569 | using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 1570 | using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 1571 | using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 1572 | using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
| 1573 | |
| 1574 | const char* name() const noexcept |
| 1575 | { |
| 1576 | return errName; |
| 1577 | } |
| 1578 | |
| 1579 | const char* description() const noexcept |
| 1580 | { |
| 1581 | return errDesc; |
| 1582 | } |
| 1583 | |
| 1584 | const char* what() const noexcept |
| 1585 | { |
| 1586 | return errName; |
| 1587 | } |
| 1588 | }; |
| 1589 | |
| 1590 | } // namespace Foo |
| 1591 | } // namespace Example |
| 1592 | } // namespace openbmc_project |
| 1593 | } // namespace xyz |
| 1594 | } // namespace example |
| 1595 | |
| 1596 | |
| 1597 | |
| 1598 | namespace example |
| 1599 | { |
| 1600 | namespace xyz |
| 1601 | { |
| 1602 | namespace openbmc_project |
| 1603 | { |
| 1604 | namespace Example |
| 1605 | { |
| 1606 | namespace Bar |
| 1607 | { |
| 1608 | namespace _Bar |
| 1609 | { |
| 1610 | |
| 1611 | struct BAR_DATA |
| 1612 | { |
| 1613 | static constexpr auto str = "BAR_DATA=%s"; |
| 1614 | static constexpr auto str_short = "BAR_DATA"; |
| 1615 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1616 | explicit constexpr BAR_DATA(const char* a) : _entry(entry(str, a)) {}; |
| 1617 | type _entry; |
| 1618 | }; |
| 1619 | |
| 1620 | } // namespace _Bar |
| 1621 | |
| 1622 | struct Bar : public sdbusplus::exception_t |
| 1623 | { |
| 1624 | static constexpr auto errName = "example.xyz.openbmc_project.Example.Bar.Bar"; |
| 1625 | static constexpr auto errDesc = "this is test error Bar"; |
| 1626 | static constexpr auto L = level::INFO; |
| 1627 | using BAR_DATA = _Bar::BAR_DATA; |
| 1628 | using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA; |
| 1629 | using ERRNUM = example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 1630 | using FILE_PATH = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 1631 | using FILE_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 1632 | using DEV_ADDR = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 1633 | using DEV_ID = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 1634 | using DEV_NAME = example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 1635 | using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
| 1636 | |
| 1637 | const char* name() const noexcept |
| 1638 | { |
| 1639 | return errName; |
| 1640 | } |
| 1641 | |
| 1642 | const char* description() const noexcept |
| 1643 | { |
| 1644 | return errDesc; |
| 1645 | } |
| 1646 | |
| 1647 | const char* what() const noexcept |
| 1648 | { |
| 1649 | return errName; |
| 1650 | } |
| 1651 | }; |
| 1652 | |
| 1653 | } // namespace Bar |
| 1654 | } // namespace Example |
| 1655 | } // namespace openbmc_project |
| 1656 | } // namespace xyz |
| 1657 | } // namespace example |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | } // namespace logging |
| 1663 | |
| 1664 | } // namespace phosphor |