Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <tuple> |
| 10 | #include <type_traits> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 14 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 15 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 16 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 17 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 18 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 19 | { |
| 20 | namespace Error |
| 21 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 22 | struct BlankSystemVPD; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 23 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 24 | } // namespace VPD |
| 25 | } // namespace ibm |
| 26 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 27 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 28 | namespace sdbusplus |
| 29 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 30 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 31 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 32 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 33 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 34 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 35 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 36 | namespace Error |
| 37 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 38 | struct DbusFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 39 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 40 | } // namespace VPD |
| 41 | } // namespace ibm |
| 42 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 43 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 44 | namespace sdbusplus |
| 45 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 46 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 47 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 48 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 49 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 50 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 51 | { |
| 52 | namespace Error |
| 53 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 54 | struct EccCheckFailed; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 55 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 56 | } // namespace VPD |
| 57 | } // namespace ibm |
| 58 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 59 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 60 | namespace sdbusplus |
| 61 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 62 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 63 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 64 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 65 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 66 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 67 | { |
| 68 | namespace Error |
| 69 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 70 | struct InvalidEepromPath; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 71 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 72 | } // namespace VPD |
| 73 | } // namespace ibm |
| 74 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 75 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 76 | namespace sdbusplus |
| 77 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 78 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 79 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 80 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 81 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 82 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 83 | { |
| 84 | namespace Error |
| 85 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 86 | struct InvalidJson; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 87 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 88 | } // namespace VPD |
| 89 | } // namespace ibm |
| 90 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 91 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 92 | namespace sdbusplus |
| 93 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 94 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 95 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 96 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 97 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 98 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 99 | { |
| 100 | namespace Error |
| 101 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 102 | struct InvalidVPD; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 103 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 104 | } // namespace VPD |
| 105 | } // namespace ibm |
| 106 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 107 | } // namespace sdbusplus |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 108 | namespace sdbusplus |
| 109 | { |
| 110 | namespace com |
| 111 | { |
| 112 | namespace ibm |
| 113 | { |
| 114 | namespace VPD |
| 115 | { |
| 116 | namespace Error |
| 117 | { |
| 118 | struct KeywordNotFound; |
| 119 | } // namespace Error |
| 120 | } // namespace VPD |
| 121 | } // namespace ibm |
| 122 | } // namespace com |
| 123 | } // namespace sdbusplus |
| 124 | namespace sdbusplus |
| 125 | { |
| 126 | namespace com |
| 127 | { |
| 128 | namespace ibm |
| 129 | { |
| 130 | namespace VPD |
| 131 | { |
| 132 | namespace Error |
| 133 | { |
| 134 | struct LocationNotFound; |
| 135 | } // namespace Error |
| 136 | } // namespace VPD |
| 137 | } // namespace ibm |
| 138 | } // namespace com |
| 139 | } // namespace sdbusplus |
| 140 | namespace sdbusplus |
| 141 | { |
| 142 | namespace com |
| 143 | { |
| 144 | namespace ibm |
| 145 | { |
| 146 | namespace VPD |
| 147 | { |
| 148 | namespace Error |
| 149 | { |
| 150 | struct NodeNotFound; |
| 151 | } // namespace Error |
| 152 | } // namespace VPD |
| 153 | } // namespace ibm |
| 154 | } // namespace com |
| 155 | } // namespace sdbusplus |
| 156 | namespace sdbusplus |
| 157 | { |
| 158 | namespace com |
| 159 | { |
| 160 | namespace ibm |
| 161 | { |
| 162 | namespace VPD |
| 163 | { |
| 164 | namespace Error |
| 165 | { |
| 166 | struct PathNotFound; |
| 167 | } // namespace Error |
| 168 | } // namespace VPD |
| 169 | } // namespace ibm |
| 170 | } // namespace com |
| 171 | } // namespace sdbusplus |
| 172 | namespace sdbusplus |
| 173 | { |
| 174 | namespace com |
| 175 | { |
| 176 | namespace ibm |
| 177 | { |
| 178 | namespace VPD |
| 179 | { |
| 180 | namespace Error |
| 181 | { |
| 182 | struct RecordNotFound; |
| 183 | } // namespace Error |
| 184 | } // namespace VPD |
| 185 | } // namespace ibm |
| 186 | } // namespace com |
| 187 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 188 | namespace sdbusplus |
| 189 | { |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 190 | namespace org |
| 191 | { |
| 192 | namespace open_power |
| 193 | { |
| 194 | namespace Common |
| 195 | { |
| 196 | namespace Callout |
| 197 | { |
| 198 | namespace Error |
| 199 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 200 | struct Procedure; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 201 | } // namespace Error |
| 202 | } // namespace Callout |
| 203 | } // namespace Common |
| 204 | } // namespace open_power |
| 205 | } // namespace org |
| 206 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 207 | namespace sdbusplus |
| 208 | { |
| 209 | namespace org |
| 210 | { |
| 211 | namespace open_power |
| 212 | { |
| 213 | namespace Host |
| 214 | { |
| 215 | namespace Access |
| 216 | { |
| 217 | namespace Error |
| 218 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 219 | struct ReadCFAM; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 220 | } // namespace Error |
| 221 | } // namespace Access |
| 222 | } // namespace Host |
| 223 | } // namespace open_power |
| 224 | } // namespace org |
| 225 | } // namespace sdbusplus |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 226 | namespace sdbusplus |
| 227 | { |
| 228 | namespace org |
| 229 | { |
| 230 | namespace open_power |
| 231 | { |
| 232 | namespace Host |
| 233 | { |
| 234 | namespace Access |
| 235 | { |
| 236 | namespace Error |
| 237 | { |
| 238 | struct WriteCFAM; |
| 239 | } // namespace Error |
| 240 | } // namespace Access |
| 241 | } // namespace Host |
| 242 | } // namespace open_power |
| 243 | } // namespace org |
| 244 | } // namespace sdbusplus |
| 245 | namespace sdbusplus |
| 246 | { |
| 247 | namespace org |
| 248 | { |
| 249 | namespace open_power |
| 250 | { |
| 251 | namespace Host |
| 252 | { |
| 253 | namespace Error |
| 254 | { |
| 255 | struct Event; |
| 256 | } // namespace Error |
| 257 | } // namespace Host |
| 258 | } // namespace open_power |
| 259 | } // namespace org |
| 260 | } // namespace sdbusplus |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 261 | namespace sdbusplus |
| 262 | { |
| 263 | namespace org |
| 264 | { |
| 265 | namespace open_power |
| 266 | { |
| 267 | namespace Host |
| 268 | { |
| 269 | namespace Error |
| 270 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 271 | struct MaintenanceProcedure; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 272 | } // namespace Error |
| 273 | } // namespace Host |
| 274 | } // namespace open_power |
| 275 | } // namespace org |
| 276 | } // namespace sdbusplus |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 277 | namespace sdbusplus |
| 278 | { |
| 279 | namespace org |
| 280 | { |
| 281 | namespace open_power |
| 282 | { |
| 283 | namespace Proc |
| 284 | { |
| 285 | namespace FSI |
| 286 | { |
| 287 | namespace Error |
| 288 | { |
| 289 | struct MasterDetectionFailure; |
| 290 | } // namespace Error |
| 291 | } // namespace FSI |
| 292 | } // namespace Proc |
| 293 | } // namespace open_power |
| 294 | } // namespace org |
| 295 | } // namespace sdbusplus |
| 296 | namespace sdbusplus |
| 297 | { |
| 298 | namespace org |
| 299 | { |
| 300 | namespace open_power |
| 301 | { |
| 302 | namespace Proc |
| 303 | { |
| 304 | namespace FSI |
| 305 | { |
| 306 | namespace Error |
| 307 | { |
| 308 | struct SlaveDetectionFailure; |
| 309 | } // namespace Error |
| 310 | } // namespace FSI |
| 311 | } // namespace Proc |
| 312 | } // namespace open_power |
| 313 | } // namespace org |
| 314 | } // namespace sdbusplus |
| 315 | namespace sdbusplus |
| 316 | { |
| 317 | namespace xyz |
| 318 | { |
| 319 | namespace openbmc_project |
| 320 | { |
| 321 | namespace BIOSConfig |
| 322 | { |
| 323 | namespace Common |
| 324 | { |
| 325 | namespace Error |
| 326 | { |
| 327 | struct AttributeNotFound; |
| 328 | } // namespace Error |
| 329 | } // namespace Common |
| 330 | } // namespace BIOSConfig |
| 331 | } // namespace openbmc_project |
| 332 | } // namespace xyz |
| 333 | } // namespace sdbusplus |
| 334 | namespace sdbusplus |
| 335 | { |
| 336 | namespace xyz |
| 337 | { |
| 338 | namespace openbmc_project |
| 339 | { |
| 340 | namespace BIOSConfig |
| 341 | { |
| 342 | namespace Common |
| 343 | { |
| 344 | namespace Error |
| 345 | { |
| 346 | struct AttributeReadOnly; |
| 347 | } // namespace Error |
| 348 | } // namespace Common |
| 349 | } // namespace BIOSConfig |
| 350 | } // namespace openbmc_project |
| 351 | } // namespace xyz |
| 352 | } // namespace sdbusplus |
| 353 | namespace sdbusplus |
| 354 | { |
| 355 | namespace xyz |
| 356 | { |
| 357 | namespace openbmc_project |
| 358 | { |
| 359 | namespace BIOSConfig |
| 360 | { |
| 361 | namespace Common |
| 362 | { |
| 363 | namespace Error |
| 364 | { |
| 365 | struct InvalidCurrentPassword; |
| 366 | } // namespace Error |
| 367 | } // namespace Common |
| 368 | } // namespace BIOSConfig |
| 369 | } // namespace openbmc_project |
| 370 | } // namespace xyz |
| 371 | } // namespace sdbusplus |
| 372 | namespace sdbusplus |
| 373 | { |
| 374 | namespace xyz |
| 375 | { |
| 376 | namespace openbmc_project |
| 377 | { |
| 378 | namespace BIOSConfig |
| 379 | { |
| 380 | namespace Common |
| 381 | { |
| 382 | namespace Error |
| 383 | { |
| 384 | struct PasswordNotSettable; |
| 385 | } // namespace Error |
| 386 | } // namespace Common |
| 387 | } // namespace BIOSConfig |
| 388 | } // namespace openbmc_project |
| 389 | } // namespace xyz |
| 390 | } // namespace sdbusplus |
| 391 | namespace sdbusplus |
| 392 | { |
| 393 | namespace xyz |
| 394 | { |
| 395 | namespace openbmc_project |
| 396 | { |
| 397 | namespace Certs |
| 398 | { |
| 399 | namespace Error |
| 400 | { |
| 401 | struct InvalidCertificate; |
| 402 | } // namespace Error |
| 403 | } // namespace Certs |
| 404 | } // namespace openbmc_project |
| 405 | } // namespace xyz |
| 406 | } // namespace sdbusplus |
| 407 | namespace sdbusplus |
| 408 | { |
| 409 | namespace xyz |
| 410 | { |
| 411 | namespace openbmc_project |
| 412 | { |
| 413 | namespace Chassis |
| 414 | { |
| 415 | namespace Common |
| 416 | { |
| 417 | namespace Error |
| 418 | { |
| 419 | struct IOError; |
| 420 | } // namespace Error |
| 421 | } // namespace Common |
| 422 | } // namespace Chassis |
| 423 | } // namespace openbmc_project |
| 424 | } // namespace xyz |
| 425 | } // namespace sdbusplus |
| 426 | namespace sdbusplus |
| 427 | { |
| 428 | namespace xyz |
| 429 | { |
| 430 | namespace openbmc_project |
| 431 | { |
| 432 | namespace Chassis |
| 433 | { |
| 434 | namespace Common |
| 435 | { |
| 436 | namespace Error |
| 437 | { |
| 438 | struct UnsupportedCommand; |
| 439 | } // namespace Error |
| 440 | } // namespace Common |
| 441 | } // namespace Chassis |
| 442 | } // namespace openbmc_project |
| 443 | } // namespace xyz |
| 444 | } // namespace sdbusplus |
| 445 | namespace sdbusplus |
| 446 | { |
| 447 | namespace xyz |
| 448 | { |
| 449 | namespace openbmc_project |
| 450 | { |
| 451 | namespace Common |
| 452 | { |
| 453 | namespace Callout |
| 454 | { |
| 455 | namespace Error |
| 456 | { |
| 457 | struct Device; |
| 458 | } // namespace Error |
| 459 | } // namespace Callout |
| 460 | } // namespace Common |
| 461 | } // namespace openbmc_project |
| 462 | } // namespace xyz |
| 463 | } // namespace sdbusplus |
| 464 | namespace sdbusplus |
| 465 | { |
| 466 | namespace xyz |
| 467 | { |
| 468 | namespace openbmc_project |
| 469 | { |
| 470 | namespace Common |
| 471 | { |
| 472 | namespace Callout |
| 473 | { |
| 474 | namespace Error |
| 475 | { |
| 476 | struct GPIO; |
| 477 | } // namespace Error |
| 478 | } // namespace Callout |
| 479 | } // namespace Common |
| 480 | } // namespace openbmc_project |
| 481 | } // namespace xyz |
| 482 | } // namespace sdbusplus |
| 483 | namespace sdbusplus |
| 484 | { |
| 485 | namespace xyz |
| 486 | { |
| 487 | namespace openbmc_project |
| 488 | { |
| 489 | namespace Common |
| 490 | { |
| 491 | namespace Callout |
| 492 | { |
| 493 | namespace Error |
| 494 | { |
| 495 | struct IIC; |
| 496 | } // namespace Error |
| 497 | } // namespace Callout |
| 498 | } // namespace Common |
| 499 | } // namespace openbmc_project |
| 500 | } // namespace xyz |
| 501 | } // namespace sdbusplus |
| 502 | namespace sdbusplus |
| 503 | { |
| 504 | namespace xyz |
| 505 | { |
| 506 | namespace openbmc_project |
| 507 | { |
| 508 | namespace Common |
| 509 | { |
| 510 | namespace Callout |
| 511 | { |
| 512 | namespace Error |
| 513 | { |
| 514 | struct IPMISensor; |
| 515 | } // namespace Error |
| 516 | } // namespace Callout |
| 517 | } // namespace Common |
| 518 | } // namespace openbmc_project |
| 519 | } // namespace xyz |
| 520 | } // namespace sdbusplus |
| 521 | namespace sdbusplus |
| 522 | { |
| 523 | namespace xyz |
| 524 | { |
| 525 | namespace openbmc_project |
| 526 | { |
| 527 | namespace Common |
| 528 | { |
| 529 | namespace Callout |
| 530 | { |
| 531 | namespace Error |
| 532 | { |
| 533 | struct Inventory; |
| 534 | } // namespace Error |
| 535 | } // namespace Callout |
| 536 | } // namespace Common |
| 537 | } // namespace openbmc_project |
| 538 | } // namespace xyz |
| 539 | } // namespace sdbusplus |
| 540 | namespace sdbusplus |
| 541 | { |
| 542 | namespace xyz |
| 543 | { |
| 544 | namespace openbmc_project |
| 545 | { |
| 546 | namespace Common |
| 547 | { |
| 548 | namespace Device |
| 549 | { |
| 550 | namespace Error |
| 551 | { |
| 552 | struct ReadFailure; |
| 553 | } // namespace Error |
| 554 | } // namespace Device |
| 555 | } // namespace Common |
| 556 | } // namespace openbmc_project |
| 557 | } // namespace xyz |
| 558 | } // namespace sdbusplus |
| 559 | namespace sdbusplus |
| 560 | { |
| 561 | namespace xyz |
| 562 | { |
| 563 | namespace openbmc_project |
| 564 | { |
| 565 | namespace Common |
| 566 | { |
| 567 | namespace Device |
| 568 | { |
| 569 | namespace Error |
| 570 | { |
| 571 | struct WriteFailure; |
| 572 | } // namespace Error |
| 573 | } // namespace Device |
| 574 | } // namespace Common |
| 575 | } // namespace openbmc_project |
| 576 | } // namespace xyz |
| 577 | } // namespace sdbusplus |
| 578 | namespace sdbusplus |
| 579 | { |
| 580 | namespace xyz |
| 581 | { |
| 582 | namespace openbmc_project |
| 583 | { |
| 584 | namespace Common |
| 585 | { |
| 586 | namespace Error |
| 587 | { |
| 588 | struct InsufficientPermission; |
| 589 | } // namespace Error |
| 590 | } // namespace Common |
| 591 | } // namespace openbmc_project |
| 592 | } // namespace xyz |
| 593 | } // namespace sdbusplus |
| 594 | namespace sdbusplus |
| 595 | { |
| 596 | namespace xyz |
| 597 | { |
| 598 | namespace openbmc_project |
| 599 | { |
| 600 | namespace Common |
| 601 | { |
| 602 | namespace Error |
| 603 | { |
| 604 | struct InternalFailure; |
| 605 | } // namespace Error |
| 606 | } // namespace Common |
| 607 | } // namespace openbmc_project |
| 608 | } // namespace xyz |
| 609 | } // namespace sdbusplus |
| 610 | namespace sdbusplus |
| 611 | { |
| 612 | namespace xyz |
| 613 | { |
| 614 | namespace openbmc_project |
| 615 | { |
| 616 | namespace Common |
| 617 | { |
| 618 | namespace Error |
| 619 | { |
| 620 | struct InvalidArgument; |
| 621 | } // namespace Error |
| 622 | } // namespace Common |
| 623 | } // namespace openbmc_project |
| 624 | } // namespace xyz |
| 625 | } // namespace sdbusplus |
| 626 | namespace sdbusplus |
| 627 | { |
| 628 | namespace xyz |
| 629 | { |
| 630 | namespace openbmc_project |
| 631 | { |
| 632 | namespace Common |
| 633 | { |
| 634 | namespace Error |
| 635 | { |
| 636 | struct NoCACertificate; |
| 637 | } // namespace Error |
| 638 | } // namespace Common |
| 639 | } // namespace openbmc_project |
| 640 | } // namespace xyz |
| 641 | } // namespace sdbusplus |
| 642 | namespace sdbusplus |
| 643 | { |
| 644 | namespace xyz |
| 645 | { |
| 646 | namespace openbmc_project |
| 647 | { |
| 648 | namespace Common |
| 649 | { |
| 650 | namespace Error |
| 651 | { |
| 652 | struct NotAllowed; |
| 653 | } // namespace Error |
| 654 | } // namespace Common |
| 655 | } // namespace openbmc_project |
| 656 | } // namespace xyz |
| 657 | } // namespace sdbusplus |
| 658 | namespace sdbusplus |
| 659 | { |
| 660 | namespace xyz |
| 661 | { |
| 662 | namespace openbmc_project |
| 663 | { |
| 664 | namespace Common |
| 665 | { |
| 666 | namespace Error |
| 667 | { |
| 668 | struct ResourceNotFound; |
| 669 | } // namespace Error |
| 670 | } // namespace Common |
| 671 | } // namespace openbmc_project |
| 672 | } // namespace xyz |
| 673 | } // namespace sdbusplus |
| 674 | namespace sdbusplus |
| 675 | { |
| 676 | namespace xyz |
| 677 | { |
| 678 | namespace openbmc_project |
| 679 | { |
| 680 | namespace Common |
| 681 | { |
| 682 | namespace Error |
| 683 | { |
| 684 | struct Timeout; |
| 685 | } // namespace Error |
| 686 | } // namespace Common |
| 687 | } // namespace openbmc_project |
| 688 | } // namespace xyz |
| 689 | } // namespace sdbusplus |
| 690 | namespace sdbusplus |
| 691 | { |
| 692 | namespace xyz |
| 693 | { |
| 694 | namespace openbmc_project |
| 695 | { |
| 696 | namespace Common |
| 697 | { |
| 698 | namespace Error |
| 699 | { |
| 700 | struct TooManyResources; |
| 701 | } // namespace Error |
| 702 | } // namespace Common |
| 703 | } // namespace openbmc_project |
| 704 | } // namespace xyz |
| 705 | } // namespace sdbusplus |
| 706 | namespace sdbusplus |
| 707 | { |
| 708 | namespace xyz |
| 709 | { |
| 710 | namespace openbmc_project |
| 711 | { |
| 712 | namespace Common |
| 713 | { |
| 714 | namespace Error |
| 715 | { |
| 716 | struct Unavailable; |
| 717 | } // namespace Error |
| 718 | } // namespace Common |
| 719 | } // namespace openbmc_project |
| 720 | } // namespace xyz |
| 721 | } // namespace sdbusplus |
| 722 | namespace sdbusplus |
| 723 | { |
| 724 | namespace xyz |
| 725 | { |
| 726 | namespace openbmc_project |
| 727 | { |
| 728 | namespace Common |
| 729 | { |
| 730 | namespace Error |
| 731 | { |
| 732 | struct UnsupportedRequest; |
| 733 | } // namespace Error |
| 734 | } // namespace Common |
| 735 | } // namespace openbmc_project |
| 736 | } // namespace xyz |
| 737 | } // namespace sdbusplus |
| 738 | namespace sdbusplus |
| 739 | { |
| 740 | namespace xyz |
| 741 | { |
| 742 | namespace openbmc_project |
| 743 | { |
| 744 | namespace Common |
| 745 | { |
| 746 | namespace File |
| 747 | { |
| 748 | namespace Error |
| 749 | { |
| 750 | struct Open; |
| 751 | } // namespace Error |
| 752 | } // namespace File |
| 753 | } // namespace Common |
| 754 | } // namespace openbmc_project |
| 755 | } // namespace xyz |
| 756 | } // namespace sdbusplus |
| 757 | namespace sdbusplus |
| 758 | { |
| 759 | namespace xyz |
| 760 | { |
| 761 | namespace openbmc_project |
| 762 | { |
| 763 | namespace Common |
| 764 | { |
| 765 | namespace File |
| 766 | { |
| 767 | namespace Error |
| 768 | { |
| 769 | struct Read; |
| 770 | } // namespace Error |
| 771 | } // namespace File |
| 772 | } // namespace Common |
| 773 | } // namespace openbmc_project |
| 774 | } // namespace xyz |
| 775 | } // namespace sdbusplus |
| 776 | namespace sdbusplus |
| 777 | { |
| 778 | namespace xyz |
| 779 | { |
| 780 | namespace openbmc_project |
| 781 | { |
| 782 | namespace Common |
| 783 | { |
| 784 | namespace File |
| 785 | { |
| 786 | namespace Error |
| 787 | { |
| 788 | struct Seek; |
| 789 | } // namespace Error |
| 790 | } // namespace File |
| 791 | } // namespace Common |
| 792 | } // namespace openbmc_project |
| 793 | } // namespace xyz |
| 794 | } // namespace sdbusplus |
| 795 | namespace sdbusplus |
| 796 | { |
| 797 | namespace xyz |
| 798 | { |
| 799 | namespace openbmc_project |
| 800 | { |
| 801 | namespace Common |
| 802 | { |
| 803 | namespace File |
| 804 | { |
| 805 | namespace Error |
| 806 | { |
| 807 | struct Write; |
| 808 | } // namespace Error |
| 809 | } // namespace File |
| 810 | } // namespace Common |
| 811 | } // namespace openbmc_project |
| 812 | } // namespace xyz |
| 813 | } // namespace sdbusplus |
| 814 | namespace sdbusplus |
| 815 | { |
| 816 | namespace xyz |
| 817 | { |
| 818 | namespace openbmc_project |
| 819 | { |
| 820 | namespace Control |
| 821 | { |
| 822 | namespace Device |
| 823 | { |
| 824 | namespace Error |
| 825 | { |
| 826 | struct WriteFailure; |
| 827 | } // namespace Error |
| 828 | } // namespace Device |
| 829 | } // namespace Control |
| 830 | } // namespace openbmc_project |
| 831 | } // namespace xyz |
| 832 | } // namespace sdbusplus |
| 833 | namespace sdbusplus |
| 834 | { |
| 835 | namespace xyz |
| 836 | { |
| 837 | namespace openbmc_project |
| 838 | { |
| 839 | namespace Control |
| 840 | { |
| 841 | namespace Host |
| 842 | { |
| 843 | namespace Error |
| 844 | { |
| 845 | struct CommandNotSupported; |
| 846 | } // namespace Error |
| 847 | } // namespace Host |
| 848 | } // namespace Control |
| 849 | } // namespace openbmc_project |
| 850 | } // namespace xyz |
| 851 | } // namespace sdbusplus |
| 852 | namespace sdbusplus |
| 853 | { |
| 854 | namespace xyz |
| 855 | { |
| 856 | namespace openbmc_project |
| 857 | { |
| 858 | namespace Dump |
| 859 | { |
| 860 | namespace Create |
| 861 | { |
| 862 | namespace Error |
| 863 | { |
| 864 | struct Disabled; |
| 865 | } // namespace Error |
| 866 | } // namespace Create |
| 867 | } // namespace Dump |
| 868 | } // namespace openbmc_project |
| 869 | } // namespace xyz |
| 870 | } // namespace sdbusplus |
| 871 | namespace sdbusplus |
| 872 | { |
| 873 | namespace xyz |
| 874 | { |
| 875 | namespace openbmc_project |
| 876 | { |
| 877 | namespace Dump |
| 878 | { |
| 879 | namespace Create |
| 880 | { |
| 881 | namespace Error |
| 882 | { |
| 883 | struct QuotaExceeded; |
| 884 | } // namespace Error |
| 885 | } // namespace Create |
| 886 | } // namespace Dump |
| 887 | } // namespace openbmc_project |
| 888 | } // namespace xyz |
| 889 | } // namespace sdbusplus |
| 890 | namespace sdbusplus |
| 891 | { |
| 892 | namespace xyz |
| 893 | { |
| 894 | namespace openbmc_project |
| 895 | { |
| 896 | namespace HardwareIsolation |
| 897 | { |
| 898 | namespace Error |
| 899 | { |
| 900 | struct IsolatedAlready; |
| 901 | } // namespace Error |
| 902 | } // namespace HardwareIsolation |
| 903 | } // namespace openbmc_project |
| 904 | } // namespace xyz |
| 905 | } // namespace sdbusplus |
| 906 | namespace sdbusplus |
| 907 | { |
| 908 | namespace xyz |
| 909 | { |
| 910 | namespace openbmc_project |
| 911 | { |
| 912 | namespace Inventory |
| 913 | { |
| 914 | namespace Error |
| 915 | { |
| 916 | struct Nonfunctional; |
| 917 | } // namespace Error |
| 918 | } // namespace Inventory |
| 919 | } // namespace openbmc_project |
| 920 | } // namespace xyz |
| 921 | } // namespace sdbusplus |
| 922 | namespace sdbusplus |
| 923 | { |
| 924 | namespace xyz |
| 925 | { |
| 926 | namespace openbmc_project |
| 927 | { |
| 928 | namespace Inventory |
| 929 | { |
| 930 | namespace Error |
| 931 | { |
| 932 | struct NotPresent; |
| 933 | } // namespace Error |
| 934 | } // namespace Inventory |
| 935 | } // namespace openbmc_project |
| 936 | } // namespace xyz |
| 937 | } // namespace sdbusplus |
| 938 | namespace sdbusplus |
| 939 | { |
| 940 | namespace xyz |
| 941 | { |
| 942 | namespace openbmc_project |
| 943 | { |
| 944 | namespace Logging |
| 945 | { |
| 946 | namespace SEL |
| 947 | { |
| 948 | namespace Error |
| 949 | { |
| 950 | struct Created; |
| 951 | } // namespace Error |
| 952 | } // namespace SEL |
| 953 | } // namespace Logging |
| 954 | } // namespace openbmc_project |
| 955 | } // namespace xyz |
| 956 | } // namespace sdbusplus |
| 957 | namespace sdbusplus |
| 958 | { |
| 959 | namespace xyz |
| 960 | { |
| 961 | namespace openbmc_project |
| 962 | { |
| 963 | namespace Memory |
| 964 | { |
| 965 | namespace MemoryECC |
| 966 | { |
| 967 | namespace Error |
| 968 | { |
| 969 | struct ceCount; |
| 970 | } // namespace Error |
| 971 | } // namespace MemoryECC |
| 972 | } // namespace Memory |
| 973 | } // namespace openbmc_project |
| 974 | } // namespace xyz |
| 975 | } // namespace sdbusplus |
| 976 | namespace sdbusplus |
| 977 | { |
| 978 | namespace xyz |
| 979 | { |
| 980 | namespace openbmc_project |
| 981 | { |
| 982 | namespace Memory |
| 983 | { |
| 984 | namespace MemoryECC |
| 985 | { |
| 986 | namespace Error |
| 987 | { |
| 988 | struct isLoggingLimitReached; |
| 989 | } // namespace Error |
| 990 | } // namespace MemoryECC |
| 991 | } // namespace Memory |
| 992 | } // namespace openbmc_project |
| 993 | } // namespace xyz |
| 994 | } // namespace sdbusplus |
| 995 | namespace sdbusplus |
| 996 | { |
| 997 | namespace xyz |
| 998 | { |
| 999 | namespace openbmc_project |
| 1000 | { |
| 1001 | namespace Memory |
| 1002 | { |
| 1003 | namespace MemoryECC |
| 1004 | { |
| 1005 | namespace Error |
| 1006 | { |
| 1007 | struct ueCount; |
| 1008 | } // namespace Error |
| 1009 | } // namespace MemoryECC |
| 1010 | } // namespace Memory |
| 1011 | } // namespace openbmc_project |
| 1012 | } // namespace xyz |
| 1013 | } // namespace sdbusplus |
| 1014 | namespace sdbusplus |
| 1015 | { |
| 1016 | namespace xyz |
| 1017 | { |
| 1018 | namespace openbmc_project |
| 1019 | { |
| 1020 | namespace Nvme |
| 1021 | { |
| 1022 | namespace Status |
| 1023 | { |
| 1024 | namespace Error |
| 1025 | { |
| 1026 | struct BackupDeviceFault; |
| 1027 | } // namespace Error |
| 1028 | } // namespace Status |
| 1029 | } // namespace Nvme |
| 1030 | } // namespace openbmc_project |
| 1031 | } // namespace xyz |
| 1032 | } // namespace sdbusplus |
| 1033 | namespace sdbusplus |
| 1034 | { |
| 1035 | namespace xyz |
| 1036 | { |
| 1037 | namespace openbmc_project |
| 1038 | { |
| 1039 | namespace Nvme |
| 1040 | { |
| 1041 | namespace Status |
| 1042 | { |
| 1043 | namespace Error |
| 1044 | { |
| 1045 | struct CapacityFault; |
| 1046 | } // namespace Error |
| 1047 | } // namespace Status |
| 1048 | } // namespace Nvme |
| 1049 | } // namespace openbmc_project |
| 1050 | } // namespace xyz |
| 1051 | } // namespace sdbusplus |
| 1052 | namespace sdbusplus |
| 1053 | { |
| 1054 | namespace xyz |
| 1055 | { |
| 1056 | namespace openbmc_project |
| 1057 | { |
| 1058 | namespace Nvme |
| 1059 | { |
| 1060 | namespace Status |
| 1061 | { |
| 1062 | namespace Error |
| 1063 | { |
| 1064 | struct DegradesFault; |
| 1065 | } // namespace Error |
| 1066 | } // namespace Status |
| 1067 | } // namespace Nvme |
| 1068 | } // namespace openbmc_project |
| 1069 | } // namespace xyz |
| 1070 | } // namespace sdbusplus |
| 1071 | namespace sdbusplus |
| 1072 | { |
| 1073 | namespace xyz |
| 1074 | { |
| 1075 | namespace openbmc_project |
| 1076 | { |
| 1077 | namespace Nvme |
| 1078 | { |
| 1079 | namespace Status |
| 1080 | { |
| 1081 | namespace Error |
| 1082 | { |
| 1083 | struct MediaFault; |
| 1084 | } // namespace Error |
| 1085 | } // namespace Status |
| 1086 | } // namespace Nvme |
| 1087 | } // namespace openbmc_project |
| 1088 | } // namespace xyz |
| 1089 | } // namespace sdbusplus |
| 1090 | namespace sdbusplus |
| 1091 | { |
| 1092 | namespace xyz |
| 1093 | { |
| 1094 | namespace openbmc_project |
| 1095 | { |
| 1096 | namespace Nvme |
| 1097 | { |
| 1098 | namespace Status |
| 1099 | { |
| 1100 | namespace Error |
| 1101 | { |
| 1102 | struct TemperatureFault; |
| 1103 | } // namespace Error |
| 1104 | } // namespace Status |
| 1105 | } // namespace Nvme |
| 1106 | } // namespace openbmc_project |
| 1107 | } // namespace xyz |
| 1108 | } // namespace sdbusplus |
| 1109 | namespace sdbusplus |
| 1110 | { |
| 1111 | namespace xyz |
| 1112 | { |
| 1113 | namespace openbmc_project |
| 1114 | { |
| 1115 | namespace ScheduledTime |
| 1116 | { |
| 1117 | namespace Error |
| 1118 | { |
| 1119 | struct InvalidTime; |
| 1120 | } // namespace Error |
| 1121 | } // namespace ScheduledTime |
| 1122 | } // namespace openbmc_project |
| 1123 | } // namespace xyz |
| 1124 | } // namespace sdbusplus |
| 1125 | namespace sdbusplus |
| 1126 | { |
| 1127 | namespace xyz |
| 1128 | { |
| 1129 | namespace openbmc_project |
| 1130 | { |
| 1131 | namespace Sensor |
| 1132 | { |
| 1133 | namespace Device |
| 1134 | { |
| 1135 | namespace Error |
| 1136 | { |
| 1137 | struct ReadFailure; |
| 1138 | } // namespace Error |
| 1139 | } // namespace Device |
| 1140 | } // namespace Sensor |
| 1141 | } // namespace openbmc_project |
| 1142 | } // namespace xyz |
| 1143 | } // namespace sdbusplus |
| 1144 | namespace sdbusplus |
| 1145 | { |
| 1146 | namespace xyz |
| 1147 | { |
| 1148 | namespace openbmc_project |
| 1149 | { |
| 1150 | namespace Sensor |
| 1151 | { |
| 1152 | namespace Threshold |
| 1153 | { |
| 1154 | namespace Error |
| 1155 | { |
| 1156 | struct CriticalHigh; |
| 1157 | } // namespace Error |
| 1158 | } // namespace Threshold |
| 1159 | } // namespace Sensor |
| 1160 | } // namespace openbmc_project |
| 1161 | } // namespace xyz |
| 1162 | } // namespace sdbusplus |
| 1163 | namespace sdbusplus |
| 1164 | { |
| 1165 | namespace xyz |
| 1166 | { |
| 1167 | namespace openbmc_project |
| 1168 | { |
| 1169 | namespace Sensor |
| 1170 | { |
| 1171 | namespace Threshold |
| 1172 | { |
| 1173 | namespace Error |
| 1174 | { |
| 1175 | struct CriticalLow; |
| 1176 | } // namespace Error |
| 1177 | } // namespace Threshold |
| 1178 | } // namespace Sensor |
| 1179 | } // namespace openbmc_project |
| 1180 | } // namespace xyz |
| 1181 | } // namespace sdbusplus |
| 1182 | namespace sdbusplus |
| 1183 | { |
| 1184 | namespace xyz |
| 1185 | { |
| 1186 | namespace openbmc_project |
| 1187 | { |
| 1188 | namespace Smbios |
| 1189 | { |
| 1190 | namespace MDR_V2 |
| 1191 | { |
| 1192 | namespace Error |
| 1193 | { |
| 1194 | struct InvalidId; |
| 1195 | } // namespace Error |
| 1196 | } // namespace MDR_V2 |
| 1197 | } // namespace Smbios |
| 1198 | } // namespace openbmc_project |
| 1199 | } // namespace xyz |
| 1200 | } // namespace sdbusplus |
| 1201 | namespace sdbusplus |
| 1202 | { |
| 1203 | namespace xyz |
| 1204 | { |
| 1205 | namespace openbmc_project |
| 1206 | { |
| 1207 | namespace Smbios |
| 1208 | { |
| 1209 | namespace MDR_V2 |
| 1210 | { |
| 1211 | namespace Error |
| 1212 | { |
| 1213 | struct InvalidParameter; |
| 1214 | } // namespace Error |
| 1215 | } // namespace MDR_V2 |
| 1216 | } // namespace Smbios |
| 1217 | } // namespace openbmc_project |
| 1218 | } // namespace xyz |
| 1219 | } // namespace sdbusplus |
| 1220 | namespace sdbusplus |
| 1221 | { |
| 1222 | namespace xyz |
| 1223 | { |
| 1224 | namespace openbmc_project |
| 1225 | { |
| 1226 | namespace Smbios |
| 1227 | { |
| 1228 | namespace MDR_V2 |
| 1229 | { |
| 1230 | namespace Error |
| 1231 | { |
| 1232 | struct UpdateInProgress; |
| 1233 | } // namespace Error |
| 1234 | } // namespace MDR_V2 |
| 1235 | } // namespace Smbios |
| 1236 | } // namespace openbmc_project |
| 1237 | } // namespace xyz |
| 1238 | } // namespace sdbusplus |
| 1239 | namespace sdbusplus |
| 1240 | { |
| 1241 | namespace xyz |
| 1242 | { |
| 1243 | namespace openbmc_project |
| 1244 | { |
| 1245 | namespace Software |
| 1246 | { |
| 1247 | namespace Version |
| 1248 | { |
| 1249 | namespace Error |
| 1250 | { |
| 1251 | struct AlreadyExists; |
| 1252 | } // namespace Error |
| 1253 | } // namespace Version |
| 1254 | } // namespace Software |
| 1255 | } // namespace openbmc_project |
| 1256 | } // namespace xyz |
| 1257 | } // namespace sdbusplus |
| 1258 | namespace sdbusplus |
| 1259 | { |
| 1260 | namespace xyz |
| 1261 | { |
| 1262 | namespace openbmc_project |
| 1263 | { |
| 1264 | namespace Software |
| 1265 | { |
| 1266 | namespace Version |
| 1267 | { |
| 1268 | namespace Error |
| 1269 | { |
| 1270 | struct Incompatible; |
| 1271 | } // namespace Error |
| 1272 | } // namespace Version |
| 1273 | } // namespace Software |
| 1274 | } // namespace openbmc_project |
| 1275 | } // namespace xyz |
| 1276 | } // namespace sdbusplus |
| 1277 | namespace sdbusplus |
| 1278 | { |
| 1279 | namespace xyz |
| 1280 | { |
| 1281 | namespace openbmc_project |
| 1282 | { |
| 1283 | namespace State |
| 1284 | { |
| 1285 | namespace BMC |
| 1286 | { |
| 1287 | namespace Error |
| 1288 | { |
| 1289 | struct MultiUserTargetFailure; |
| 1290 | } // namespace Error |
| 1291 | } // namespace BMC |
| 1292 | } // namespace State |
| 1293 | } // namespace openbmc_project |
| 1294 | } // namespace xyz |
| 1295 | } // namespace sdbusplus |
| 1296 | namespace sdbusplus |
| 1297 | { |
| 1298 | namespace xyz |
| 1299 | { |
| 1300 | namespace openbmc_project |
| 1301 | { |
| 1302 | namespace State |
| 1303 | { |
| 1304 | namespace Chassis |
| 1305 | { |
| 1306 | namespace Error |
| 1307 | { |
| 1308 | struct PowerOffFailure; |
| 1309 | } // namespace Error |
| 1310 | } // namespace Chassis |
| 1311 | } // namespace State |
| 1312 | } // namespace openbmc_project |
| 1313 | } // namespace xyz |
| 1314 | } // namespace sdbusplus |
| 1315 | namespace sdbusplus |
| 1316 | { |
| 1317 | namespace xyz |
| 1318 | { |
| 1319 | namespace openbmc_project |
| 1320 | { |
| 1321 | namespace State |
| 1322 | { |
| 1323 | namespace Chassis |
| 1324 | { |
| 1325 | namespace Error |
| 1326 | { |
| 1327 | struct PowerOnFailure; |
| 1328 | } // namespace Error |
| 1329 | } // namespace Chassis |
| 1330 | } // namespace State |
| 1331 | } // namespace openbmc_project |
| 1332 | } // namespace xyz |
| 1333 | } // namespace sdbusplus |
| 1334 | namespace sdbusplus |
| 1335 | { |
| 1336 | namespace xyz |
| 1337 | { |
| 1338 | namespace openbmc_project |
| 1339 | { |
| 1340 | namespace State |
| 1341 | { |
| 1342 | namespace Host |
| 1343 | { |
| 1344 | namespace Error |
| 1345 | { |
| 1346 | struct HostMinStartFailure; |
| 1347 | } // namespace Error |
| 1348 | } // namespace Host |
| 1349 | } // namespace State |
| 1350 | } // namespace openbmc_project |
| 1351 | } // namespace xyz |
| 1352 | } // namespace sdbusplus |
| 1353 | namespace sdbusplus |
| 1354 | { |
| 1355 | namespace xyz |
| 1356 | { |
| 1357 | namespace openbmc_project |
| 1358 | { |
| 1359 | namespace State |
| 1360 | { |
| 1361 | namespace Host |
| 1362 | { |
| 1363 | namespace Error |
| 1364 | { |
| 1365 | struct HostRebootFailure; |
| 1366 | } // namespace Error |
| 1367 | } // namespace Host |
| 1368 | } // namespace State |
| 1369 | } // namespace openbmc_project |
| 1370 | } // namespace xyz |
| 1371 | } // namespace sdbusplus |
| 1372 | namespace sdbusplus |
| 1373 | { |
| 1374 | namespace xyz |
| 1375 | { |
| 1376 | namespace openbmc_project |
| 1377 | { |
| 1378 | namespace State |
| 1379 | { |
| 1380 | namespace Host |
| 1381 | { |
| 1382 | namespace Error |
| 1383 | { |
| 1384 | struct HostShutdownFailure; |
| 1385 | } // namespace Error |
| 1386 | } // namespace Host |
| 1387 | } // namespace State |
| 1388 | } // namespace openbmc_project |
| 1389 | } // namespace xyz |
| 1390 | } // namespace sdbusplus |
| 1391 | namespace sdbusplus |
| 1392 | { |
| 1393 | namespace xyz |
| 1394 | { |
| 1395 | namespace openbmc_project |
| 1396 | { |
| 1397 | namespace State |
| 1398 | { |
| 1399 | namespace Host |
| 1400 | { |
| 1401 | namespace Error |
| 1402 | { |
| 1403 | struct HostStartFailure; |
| 1404 | } // namespace Error |
| 1405 | } // namespace Host |
| 1406 | } // namespace State |
| 1407 | } // namespace openbmc_project |
| 1408 | } // namespace xyz |
| 1409 | } // namespace sdbusplus |
| 1410 | namespace sdbusplus |
| 1411 | { |
| 1412 | namespace xyz |
| 1413 | { |
| 1414 | namespace openbmc_project |
| 1415 | { |
| 1416 | namespace State |
| 1417 | { |
| 1418 | namespace Host |
| 1419 | { |
| 1420 | namespace Error |
| 1421 | { |
| 1422 | struct HostStopFailure; |
| 1423 | } // namespace Error |
| 1424 | } // namespace Host |
| 1425 | } // namespace State |
| 1426 | } // namespace openbmc_project |
| 1427 | } // namespace xyz |
| 1428 | } // namespace sdbusplus |
| 1429 | namespace sdbusplus |
| 1430 | { |
| 1431 | namespace xyz |
| 1432 | { |
| 1433 | namespace openbmc_project |
| 1434 | { |
| 1435 | namespace State |
| 1436 | { |
| 1437 | namespace Host |
| 1438 | { |
| 1439 | namespace Error |
| 1440 | { |
| 1441 | struct SoftOffTimeout; |
| 1442 | } // namespace Error |
| 1443 | } // namespace Host |
| 1444 | } // namespace State |
| 1445 | } // namespace openbmc_project |
| 1446 | } // namespace xyz |
| 1447 | } // namespace sdbusplus |
| 1448 | namespace sdbusplus |
| 1449 | { |
| 1450 | namespace xyz |
| 1451 | { |
| 1452 | namespace openbmc_project |
| 1453 | { |
| 1454 | namespace State |
| 1455 | { |
| 1456 | namespace Shutdown |
| 1457 | { |
| 1458 | namespace Inventory |
| 1459 | { |
| 1460 | namespace Error |
| 1461 | { |
| 1462 | struct Fan; |
| 1463 | } // namespace Error |
| 1464 | } // namespace Inventory |
| 1465 | } // namespace Shutdown |
| 1466 | } // namespace State |
| 1467 | } // namespace openbmc_project |
| 1468 | } // namespace xyz |
| 1469 | } // namespace sdbusplus |
| 1470 | namespace sdbusplus |
| 1471 | { |
| 1472 | namespace xyz |
| 1473 | { |
| 1474 | namespace openbmc_project |
| 1475 | { |
| 1476 | namespace State |
| 1477 | { |
| 1478 | namespace Shutdown |
| 1479 | { |
| 1480 | namespace Power |
| 1481 | { |
| 1482 | namespace Error |
| 1483 | { |
| 1484 | struct Blackout; |
| 1485 | } // namespace Error |
| 1486 | } // namespace Power |
| 1487 | } // namespace Shutdown |
| 1488 | } // namespace State |
| 1489 | } // namespace openbmc_project |
| 1490 | } // namespace xyz |
| 1491 | } // namespace sdbusplus |
| 1492 | namespace sdbusplus |
| 1493 | { |
| 1494 | namespace xyz |
| 1495 | { |
| 1496 | namespace openbmc_project |
| 1497 | { |
| 1498 | namespace State |
| 1499 | { |
| 1500 | namespace Shutdown |
| 1501 | { |
| 1502 | namespace Power |
| 1503 | { |
| 1504 | namespace Error |
| 1505 | { |
| 1506 | struct Fault; |
| 1507 | } // namespace Error |
| 1508 | } // namespace Power |
| 1509 | } // namespace Shutdown |
| 1510 | } // namespace State |
| 1511 | } // namespace openbmc_project |
| 1512 | } // namespace xyz |
| 1513 | } // namespace sdbusplus |
| 1514 | namespace sdbusplus |
| 1515 | { |
| 1516 | namespace xyz |
| 1517 | { |
| 1518 | namespace openbmc_project |
| 1519 | { |
| 1520 | namespace State |
| 1521 | { |
| 1522 | namespace Shutdown |
| 1523 | { |
| 1524 | namespace Power |
| 1525 | { |
| 1526 | namespace Error |
| 1527 | { |
| 1528 | struct Regulator; |
| 1529 | } // namespace Error |
| 1530 | } // namespace Power |
| 1531 | } // namespace Shutdown |
| 1532 | } // namespace State |
| 1533 | } // namespace openbmc_project |
| 1534 | } // namespace xyz |
| 1535 | } // namespace sdbusplus |
| 1536 | namespace sdbusplus |
| 1537 | { |
| 1538 | namespace xyz |
| 1539 | { |
| 1540 | namespace openbmc_project |
| 1541 | { |
| 1542 | namespace State |
| 1543 | { |
| 1544 | namespace Shutdown |
| 1545 | { |
| 1546 | namespace ThermalEvent |
| 1547 | { |
| 1548 | namespace Error |
| 1549 | { |
| 1550 | struct Ambient; |
| 1551 | } // namespace Error |
| 1552 | } // namespace ThermalEvent |
| 1553 | } // namespace Shutdown |
| 1554 | } // namespace State |
| 1555 | } // namespace openbmc_project |
| 1556 | } // namespace xyz |
| 1557 | } // namespace sdbusplus |
| 1558 | namespace sdbusplus |
| 1559 | { |
| 1560 | namespace xyz |
| 1561 | { |
| 1562 | namespace openbmc_project |
| 1563 | { |
| 1564 | namespace State |
| 1565 | { |
| 1566 | namespace Shutdown |
| 1567 | { |
| 1568 | namespace ThermalEvent |
| 1569 | { |
| 1570 | namespace Error |
| 1571 | { |
| 1572 | struct GPU; |
| 1573 | } // namespace Error |
| 1574 | } // namespace ThermalEvent |
| 1575 | } // namespace Shutdown |
| 1576 | } // namespace State |
| 1577 | } // namespace openbmc_project |
| 1578 | } // namespace xyz |
| 1579 | } // namespace sdbusplus |
| 1580 | namespace sdbusplus |
| 1581 | { |
| 1582 | namespace xyz |
| 1583 | { |
| 1584 | namespace openbmc_project |
| 1585 | { |
| 1586 | namespace State |
| 1587 | { |
| 1588 | namespace Shutdown |
| 1589 | { |
| 1590 | namespace ThermalEvent |
| 1591 | { |
| 1592 | namespace Error |
| 1593 | { |
| 1594 | struct Processor; |
| 1595 | } // namespace Error |
| 1596 | } // namespace ThermalEvent |
| 1597 | } // namespace Shutdown |
| 1598 | } // namespace State |
| 1599 | } // namespace openbmc_project |
| 1600 | } // namespace xyz |
| 1601 | } // namespace sdbusplus |
| 1602 | namespace sdbusplus |
| 1603 | { |
| 1604 | namespace xyz |
| 1605 | { |
| 1606 | namespace openbmc_project |
| 1607 | { |
| 1608 | namespace State |
| 1609 | { |
| 1610 | namespace SystemdTarget |
| 1611 | { |
| 1612 | namespace Error |
| 1613 | { |
| 1614 | struct Failure; |
| 1615 | } // namespace Error |
| 1616 | } // namespace SystemdTarget |
| 1617 | } // namespace State |
| 1618 | } // namespace openbmc_project |
| 1619 | } // namespace xyz |
| 1620 | } // namespace sdbusplus |
| 1621 | namespace sdbusplus |
| 1622 | { |
| 1623 | namespace xyz |
| 1624 | { |
| 1625 | namespace openbmc_project |
| 1626 | { |
| 1627 | namespace Time |
| 1628 | { |
| 1629 | namespace Error |
| 1630 | { |
| 1631 | struct Failed; |
| 1632 | } // namespace Error |
| 1633 | } // namespace Time |
| 1634 | } // namespace openbmc_project |
| 1635 | } // namespace xyz |
| 1636 | } // namespace sdbusplus |
| 1637 | namespace sdbusplus |
| 1638 | { |
| 1639 | namespace xyz |
| 1640 | { |
| 1641 | namespace openbmc_project |
| 1642 | { |
| 1643 | namespace Time |
| 1644 | { |
| 1645 | namespace Error |
| 1646 | { |
| 1647 | struct NotAllowed; |
| 1648 | } // namespace Error |
| 1649 | } // namespace Time |
| 1650 | } // namespace openbmc_project |
| 1651 | } // namespace xyz |
| 1652 | } // namespace sdbusplus |
| 1653 | namespace sdbusplus |
| 1654 | { |
| 1655 | namespace xyz |
| 1656 | { |
| 1657 | namespace openbmc_project |
| 1658 | { |
| 1659 | namespace User |
| 1660 | { |
| 1661 | namespace Common |
| 1662 | { |
| 1663 | namespace Error |
| 1664 | { |
| 1665 | struct NoResource; |
| 1666 | } // namespace Error |
| 1667 | } // namespace Common |
| 1668 | } // namespace User |
| 1669 | } // namespace openbmc_project |
| 1670 | } // namespace xyz |
| 1671 | } // namespace sdbusplus |
| 1672 | namespace sdbusplus |
| 1673 | { |
| 1674 | namespace xyz |
| 1675 | { |
| 1676 | namespace openbmc_project |
| 1677 | { |
| 1678 | namespace User |
| 1679 | { |
| 1680 | namespace Common |
| 1681 | { |
| 1682 | namespace Error |
| 1683 | { |
| 1684 | struct PrivilegeMappingExists; |
| 1685 | } // namespace Error |
| 1686 | } // namespace Common |
| 1687 | } // namespace User |
| 1688 | } // namespace openbmc_project |
| 1689 | } // namespace xyz |
| 1690 | } // namespace sdbusplus |
| 1691 | namespace sdbusplus |
| 1692 | { |
| 1693 | namespace xyz |
| 1694 | { |
| 1695 | namespace openbmc_project |
| 1696 | { |
| 1697 | namespace User |
| 1698 | { |
| 1699 | namespace Common |
| 1700 | { |
| 1701 | namespace Error |
| 1702 | { |
| 1703 | struct UserNameDoesNotExist; |
| 1704 | } // namespace Error |
| 1705 | } // namespace Common |
| 1706 | } // namespace User |
| 1707 | } // namespace openbmc_project |
| 1708 | } // namespace xyz |
| 1709 | } // namespace sdbusplus |
| 1710 | namespace sdbusplus |
| 1711 | { |
| 1712 | namespace xyz |
| 1713 | { |
| 1714 | namespace openbmc_project |
| 1715 | { |
| 1716 | namespace User |
| 1717 | { |
| 1718 | namespace Common |
| 1719 | { |
| 1720 | namespace Error |
| 1721 | { |
| 1722 | struct UserNameExists; |
| 1723 | } // namespace Error |
| 1724 | } // namespace Common |
| 1725 | } // namespace User |
| 1726 | } // namespace openbmc_project |
| 1727 | } // namespace xyz |
| 1728 | } // namespace sdbusplus |
| 1729 | namespace sdbusplus |
| 1730 | { |
| 1731 | namespace xyz |
| 1732 | { |
| 1733 | namespace openbmc_project |
| 1734 | { |
| 1735 | namespace User |
| 1736 | { |
| 1737 | namespace Common |
| 1738 | { |
| 1739 | namespace Error |
| 1740 | { |
| 1741 | struct UserNameGroupFail; |
| 1742 | } // namespace Error |
| 1743 | } // namespace Common |
| 1744 | } // namespace User |
| 1745 | } // namespace openbmc_project |
| 1746 | } // namespace xyz |
| 1747 | } // namespace sdbusplus |
| 1748 | namespace sdbusplus |
| 1749 | { |
| 1750 | namespace xyz |
| 1751 | { |
| 1752 | namespace openbmc_project |
| 1753 | { |
| 1754 | namespace User |
| 1755 | { |
| 1756 | namespace Common |
| 1757 | { |
| 1758 | namespace Error |
| 1759 | { |
| 1760 | struct UserNamePrivFail; |
| 1761 | } // namespace Error |
| 1762 | } // namespace Common |
| 1763 | } // namespace User |
| 1764 | } // namespace openbmc_project |
| 1765 | } // namespace xyz |
| 1766 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1767 | |
| 1768 | namespace phosphor |
| 1769 | { |
| 1770 | |
| 1771 | namespace logging |
| 1772 | { |
| 1773 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1774 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1775 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1776 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1777 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1778 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1779 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1780 | namespace _LocationNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1781 | { |
| 1782 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1783 | } // namespace _LocationNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1784 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1785 | struct LocationNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1786 | { |
| 1787 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1788 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1789 | }; |
| 1790 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1791 | } // namespace VPD |
| 1792 | } // namespace ibm |
| 1793 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1794 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1795 | namespace details |
| 1796 | { |
| 1797 | |
| 1798 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1799 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::LocationNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1800 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1801 | using type = com::ibm::VPD::LocationNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1802 | }; |
| 1803 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1804 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1805 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1806 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1807 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1808 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1809 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1810 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1811 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1812 | namespace _NodeNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1813 | { |
| 1814 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1815 | } // namespace _NodeNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1816 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1817 | struct NodeNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1818 | { |
| 1819 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1820 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1821 | }; |
| 1822 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1823 | } // namespace VPD |
| 1824 | } // namespace ibm |
| 1825 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1826 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1827 | namespace details |
| 1828 | { |
| 1829 | |
| 1830 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1831 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::NodeNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1832 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1833 | using type = com::ibm::VPD::NodeNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1834 | }; |
| 1835 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1836 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1837 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1838 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1839 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1840 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1841 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1842 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1843 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1844 | namespace _PathNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1845 | { |
| 1846 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1847 | } // namespace _PathNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1848 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1849 | struct PathNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1850 | { |
| 1851 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1852 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1853 | }; |
| 1854 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1855 | } // namespace VPD |
| 1856 | } // namespace ibm |
| 1857 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1858 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1859 | namespace details |
| 1860 | { |
| 1861 | |
| 1862 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1863 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::PathNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1864 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1865 | using type = com::ibm::VPD::PathNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1866 | }; |
| 1867 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1868 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1869 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1870 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1871 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1872 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1873 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1874 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1875 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1876 | namespace _RecordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1877 | { |
| 1878 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1879 | } // namespace _RecordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1880 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1881 | struct RecordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1882 | { |
| 1883 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1884 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1885 | }; |
| 1886 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1887 | } // namespace VPD |
| 1888 | } // namespace ibm |
| 1889 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1890 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1891 | namespace details |
| 1892 | { |
| 1893 | |
| 1894 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1895 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::RecordNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1896 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1897 | using type = com::ibm::VPD::RecordNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1898 | }; |
| 1899 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1900 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1901 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1902 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1903 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1904 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1905 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1906 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1907 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1908 | namespace _KeywordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1909 | { |
| 1910 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1911 | } // namespace _KeywordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1912 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1913 | struct KeywordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1914 | { |
| 1915 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1916 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1917 | }; |
| 1918 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1919 | } // namespace VPD |
| 1920 | } // namespace ibm |
| 1921 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1922 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1923 | namespace details |
| 1924 | { |
| 1925 | |
| 1926 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1927 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::KeywordNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1928 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1929 | using type = com::ibm::VPD::KeywordNotFound; |
| 1930 | }; |
| 1931 | |
| 1932 | } // namespace details |
| 1933 | |
| 1934 | namespace com |
| 1935 | { |
| 1936 | namespace ibm |
| 1937 | { |
| 1938 | namespace VPD |
| 1939 | { |
| 1940 | namespace _BlankSystemVPD |
| 1941 | { |
| 1942 | |
| 1943 | } // namespace _BlankSystemVPD |
| 1944 | |
| 1945 | struct BlankSystemVPD |
| 1946 | { |
| 1947 | static constexpr auto L = level::ERR; |
| 1948 | using metadata_types = std::tuple<>; |
| 1949 | }; |
| 1950 | |
| 1951 | } // namespace VPD |
| 1952 | } // namespace ibm |
| 1953 | } // namespace com |
| 1954 | |
| 1955 | namespace details |
| 1956 | { |
| 1957 | |
| 1958 | template <> |
| 1959 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::BlankSystemVPD> |
| 1960 | { |
| 1961 | using type = com::ibm::VPD::BlankSystemVPD; |
| 1962 | }; |
| 1963 | |
| 1964 | } // namespace details |
| 1965 | |
| 1966 | namespace com |
| 1967 | { |
| 1968 | namespace ibm |
| 1969 | { |
| 1970 | namespace VPD |
| 1971 | { |
| 1972 | namespace _InvalidEepromPath |
| 1973 | { |
| 1974 | |
| 1975 | } // namespace _InvalidEepromPath |
| 1976 | |
| 1977 | struct InvalidEepromPath |
| 1978 | { |
| 1979 | static constexpr auto L = level::ERR; |
| 1980 | using metadata_types = std::tuple<>; |
| 1981 | }; |
| 1982 | |
| 1983 | } // namespace VPD |
| 1984 | } // namespace ibm |
| 1985 | } // namespace com |
| 1986 | |
| 1987 | namespace details |
| 1988 | { |
| 1989 | |
| 1990 | template <> |
| 1991 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidEepromPath> |
| 1992 | { |
| 1993 | using type = com::ibm::VPD::InvalidEepromPath; |
| 1994 | }; |
| 1995 | |
| 1996 | } // namespace details |
| 1997 | |
| 1998 | namespace com |
| 1999 | { |
| 2000 | namespace ibm |
| 2001 | { |
| 2002 | namespace VPD |
| 2003 | { |
| 2004 | namespace _InvalidVPD |
| 2005 | { |
| 2006 | |
| 2007 | } // namespace _InvalidVPD |
| 2008 | |
| 2009 | struct InvalidVPD |
| 2010 | { |
| 2011 | static constexpr auto L = level::ERR; |
| 2012 | using metadata_types = std::tuple<>; |
| 2013 | }; |
| 2014 | |
| 2015 | } // namespace VPD |
| 2016 | } // namespace ibm |
| 2017 | } // namespace com |
| 2018 | |
| 2019 | namespace details |
| 2020 | { |
| 2021 | |
| 2022 | template <> |
| 2023 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidVPD> |
| 2024 | { |
| 2025 | using type = com::ibm::VPD::InvalidVPD; |
| 2026 | }; |
| 2027 | |
| 2028 | } // namespace details |
| 2029 | |
| 2030 | namespace com |
| 2031 | { |
| 2032 | namespace ibm |
| 2033 | { |
| 2034 | namespace VPD |
| 2035 | { |
| 2036 | namespace _EccCheckFailed |
| 2037 | { |
| 2038 | |
| 2039 | } // namespace _EccCheckFailed |
| 2040 | |
| 2041 | struct EccCheckFailed |
| 2042 | { |
| 2043 | static constexpr auto L = level::ERR; |
| 2044 | using metadata_types = std::tuple<>; |
| 2045 | }; |
| 2046 | |
| 2047 | } // namespace VPD |
| 2048 | } // namespace ibm |
| 2049 | } // namespace com |
| 2050 | |
| 2051 | namespace details |
| 2052 | { |
| 2053 | |
| 2054 | template <> |
| 2055 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::EccCheckFailed> |
| 2056 | { |
| 2057 | using type = com::ibm::VPD::EccCheckFailed; |
| 2058 | }; |
| 2059 | |
| 2060 | } // namespace details |
| 2061 | |
| 2062 | namespace com |
| 2063 | { |
| 2064 | namespace ibm |
| 2065 | { |
| 2066 | namespace VPD |
| 2067 | { |
| 2068 | namespace _InvalidJson |
| 2069 | { |
| 2070 | |
| 2071 | } // namespace _InvalidJson |
| 2072 | |
| 2073 | struct InvalidJson |
| 2074 | { |
| 2075 | static constexpr auto L = level::ERR; |
| 2076 | using metadata_types = std::tuple<>; |
| 2077 | }; |
| 2078 | |
| 2079 | } // namespace VPD |
| 2080 | } // namespace ibm |
| 2081 | } // namespace com |
| 2082 | |
| 2083 | namespace details |
| 2084 | { |
| 2085 | |
| 2086 | template <> |
| 2087 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidJson> |
| 2088 | { |
| 2089 | using type = com::ibm::VPD::InvalidJson; |
| 2090 | }; |
| 2091 | |
| 2092 | } // namespace details |
| 2093 | |
| 2094 | namespace com |
| 2095 | { |
| 2096 | namespace ibm |
| 2097 | { |
| 2098 | namespace VPD |
| 2099 | { |
| 2100 | namespace _DbusFailure |
| 2101 | { |
| 2102 | |
| 2103 | } // namespace _DbusFailure |
| 2104 | |
| 2105 | struct DbusFailure |
| 2106 | { |
| 2107 | static constexpr auto L = level::ERR; |
| 2108 | using metadata_types = std::tuple<>; |
| 2109 | }; |
| 2110 | |
| 2111 | } // namespace VPD |
| 2112 | } // namespace ibm |
| 2113 | } // namespace com |
| 2114 | |
| 2115 | namespace details |
| 2116 | { |
| 2117 | |
| 2118 | template <> |
| 2119 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::DbusFailure> |
| 2120 | { |
| 2121 | using type = com::ibm::VPD::DbusFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2122 | }; |
| 2123 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2124 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2125 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2126 | namespace org |
| 2127 | { |
| 2128 | namespace open_power |
| 2129 | { |
| 2130 | namespace Common |
| 2131 | { |
| 2132 | namespace Callout |
| 2133 | { |
| 2134 | namespace _Procedure |
| 2135 | { |
| 2136 | |
| 2137 | struct PROCEDURE |
| 2138 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2139 | /* |
| 2140 | * We can't use -fsanitize=undefined if we declare a |
| 2141 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2142 | * mako template lookups. |
| 2143 | */ |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2144 | static constexpr auto str_short = "PROCEDURE"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2145 | using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>; |
| 2146 | explicit constexpr PROCEDURE(uint32_t a) : |
| 2147 | _entry(entry("PROCEDURE=%u", a)){}; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2148 | type _entry; |
| 2149 | }; |
| 2150 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2151 | } // namespace _Procedure |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2152 | |
| 2153 | struct Procedure |
| 2154 | { |
| 2155 | static constexpr auto L = level::ERR; |
| 2156 | using PROCEDURE = _Procedure::PROCEDURE; |
| 2157 | using metadata_types = std::tuple<PROCEDURE>; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2158 | }; |
| 2159 | |
| 2160 | } // namespace Callout |
| 2161 | } // namespace Common |
| 2162 | } // namespace open_power |
| 2163 | } // namespace org |
| 2164 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2165 | namespace details |
| 2166 | { |
| 2167 | |
| 2168 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2169 | struct map_exception_type< |
| 2170 | sdbusplus::org::open_power::Common::Callout::Error::Procedure> |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2171 | { |
| 2172 | using type = org::open_power::Common::Callout::Procedure; |
| 2173 | }; |
| 2174 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2175 | } // namespace details |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2176 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2177 | namespace org |
| 2178 | { |
| 2179 | namespace open_power |
| 2180 | { |
| 2181 | namespace Proc |
| 2182 | { |
| 2183 | namespace FSI |
| 2184 | { |
| 2185 | namespace _SlaveDetectionFailure |
| 2186 | { |
| 2187 | |
| 2188 | struct ERRNO |
| 2189 | { |
| 2190 | /* |
| 2191 | * We can't use -fsanitize=undefined if we declare a |
| 2192 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2193 | * mako template lookups. |
| 2194 | */ |
| 2195 | static constexpr auto str_short = "ERRNO"; |
| 2196 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 2197 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 2198 | type _entry; |
| 2199 | }; |
| 2200 | |
| 2201 | } // namespace _SlaveDetectionFailure |
| 2202 | |
| 2203 | struct SlaveDetectionFailure |
| 2204 | { |
| 2205 | static constexpr auto L = level::ERR; |
| 2206 | using ERRNO = _SlaveDetectionFailure::ERRNO; |
| 2207 | using metadata_types = std::tuple<ERRNO>; |
| 2208 | }; |
| 2209 | |
| 2210 | } // namespace FSI |
| 2211 | } // namespace Proc |
| 2212 | } // namespace open_power |
| 2213 | } // namespace org |
| 2214 | |
| 2215 | namespace details |
| 2216 | { |
| 2217 | |
| 2218 | template <> |
| 2219 | struct map_exception_type< |
| 2220 | sdbusplus::org::open_power::Proc::FSI::Error::SlaveDetectionFailure> |
| 2221 | { |
| 2222 | using type = org::open_power::Proc::FSI::SlaveDetectionFailure; |
| 2223 | }; |
| 2224 | |
| 2225 | } // namespace details |
| 2226 | |
| 2227 | namespace xyz |
| 2228 | { |
| 2229 | namespace openbmc_project |
| 2230 | { |
| 2231 | namespace Certs |
| 2232 | { |
| 2233 | namespace _InvalidCertificate |
| 2234 | { |
| 2235 | |
| 2236 | struct REASON |
| 2237 | { |
| 2238 | /* |
| 2239 | * We can't use -fsanitize=undefined if we declare a |
| 2240 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2241 | * mako template lookups. |
| 2242 | */ |
| 2243 | static constexpr auto str_short = "REASON "; |
| 2244 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 2245 | explicit constexpr REASON(const char* a) : |
| 2246 | _entry(entry("REASON = %s", a)){}; |
| 2247 | type _entry; |
| 2248 | }; |
| 2249 | |
| 2250 | } // namespace _InvalidCertificate |
| 2251 | |
| 2252 | struct InvalidCertificate |
| 2253 | { |
| 2254 | static constexpr auto L = level::ERR; |
| 2255 | using REASON = _InvalidCertificate::REASON; |
| 2256 | using metadata_types = std::tuple<REASON>; |
| 2257 | }; |
| 2258 | |
| 2259 | } // namespace Certs |
| 2260 | } // namespace openbmc_project |
| 2261 | } // namespace xyz |
| 2262 | |
| 2263 | namespace details |
| 2264 | { |
| 2265 | |
| 2266 | template <> |
| 2267 | struct map_exception_type< |
| 2268 | sdbusplus::xyz::openbmc_project::Certs::Error::InvalidCertificate> |
| 2269 | { |
| 2270 | using type = xyz::openbmc_project::Certs::InvalidCertificate; |
| 2271 | }; |
| 2272 | |
| 2273 | } // namespace details |
| 2274 | |
| 2275 | namespace xyz |
| 2276 | { |
| 2277 | namespace openbmc_project |
| 2278 | { |
| 2279 | namespace ScheduledTime |
| 2280 | { |
| 2281 | namespace _InvalidTime |
| 2282 | { |
| 2283 | |
| 2284 | struct REASON |
| 2285 | { |
| 2286 | /* |
| 2287 | * We can't use -fsanitize=undefined if we declare a |
| 2288 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2289 | * mako template lookups. |
| 2290 | */ |
| 2291 | static constexpr auto str_short = "REASON"; |
| 2292 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2293 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2294 | type _entry; |
| 2295 | }; |
| 2296 | |
| 2297 | } // namespace _InvalidTime |
| 2298 | |
| 2299 | struct InvalidTime |
| 2300 | { |
| 2301 | static constexpr auto L = level::ERR; |
| 2302 | using REASON = _InvalidTime::REASON; |
| 2303 | using metadata_types = std::tuple<REASON>; |
| 2304 | }; |
| 2305 | |
| 2306 | } // namespace ScheduledTime |
| 2307 | } // namespace openbmc_project |
| 2308 | } // namespace xyz |
| 2309 | |
| 2310 | namespace details |
| 2311 | { |
| 2312 | |
| 2313 | template <> |
| 2314 | struct map_exception_type< |
| 2315 | sdbusplus::xyz::openbmc_project::ScheduledTime::Error::InvalidTime> |
| 2316 | { |
| 2317 | using type = xyz::openbmc_project::ScheduledTime::InvalidTime; |
| 2318 | }; |
| 2319 | |
| 2320 | } // namespace details |
| 2321 | |
| 2322 | namespace xyz |
| 2323 | { |
| 2324 | namespace openbmc_project |
| 2325 | { |
| 2326 | namespace HardwareIsolation |
| 2327 | { |
| 2328 | namespace _IsolatedAlready |
| 2329 | { |
| 2330 | |
| 2331 | } // namespace _IsolatedAlready |
| 2332 | |
| 2333 | struct IsolatedAlready |
| 2334 | { |
| 2335 | static constexpr auto L = level::ERR; |
| 2336 | using metadata_types = std::tuple<>; |
| 2337 | }; |
| 2338 | |
| 2339 | } // namespace HardwareIsolation |
| 2340 | } // namespace openbmc_project |
| 2341 | } // namespace xyz |
| 2342 | |
| 2343 | namespace details |
| 2344 | { |
| 2345 | |
| 2346 | template <> |
| 2347 | struct map_exception_type< |
| 2348 | sdbusplus::xyz::openbmc_project::HardwareIsolation::Error::IsolatedAlready> |
| 2349 | { |
| 2350 | using type = xyz::openbmc_project::HardwareIsolation::IsolatedAlready; |
| 2351 | }; |
| 2352 | |
| 2353 | } // namespace details |
| 2354 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2355 | namespace xyz |
| 2356 | { |
| 2357 | namespace openbmc_project |
| 2358 | { |
| 2359 | namespace Common |
| 2360 | { |
| 2361 | namespace _Timeout |
| 2362 | { |
| 2363 | |
| 2364 | struct TIMEOUT_IN_MSEC |
| 2365 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2366 | /* |
| 2367 | * We can't use -fsanitize=undefined if we declare a |
| 2368 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2369 | * mako template lookups. |
| 2370 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2371 | static constexpr auto str_short = "TIMEOUT_IN_MSEC"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2372 | using type = |
| 2373 | std::tuple<std::decay_t<decltype("TIMEOUT_IN_MSEC=%llu")>, uint64_t>; |
| 2374 | explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : |
| 2375 | _entry(entry("TIMEOUT_IN_MSEC=%llu", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2376 | type _entry; |
| 2377 | }; |
| 2378 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2379 | } // namespace _Timeout |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2380 | |
| 2381 | struct Timeout |
| 2382 | { |
| 2383 | static constexpr auto L = level::ERR; |
| 2384 | using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC; |
| 2385 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2386 | }; |
| 2387 | |
| 2388 | } // namespace Common |
| 2389 | } // namespace openbmc_project |
| 2390 | } // namespace xyz |
| 2391 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2392 | namespace details |
| 2393 | { |
| 2394 | |
| 2395 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2396 | struct map_exception_type< |
| 2397 | sdbusplus::xyz::openbmc_project::Common::Error::Timeout> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2398 | { |
| 2399 | using type = xyz::openbmc_project::Common::Timeout; |
| 2400 | }; |
| 2401 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2402 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2403 | |
| 2404 | namespace xyz |
| 2405 | { |
| 2406 | namespace openbmc_project |
| 2407 | { |
| 2408 | namespace Common |
| 2409 | { |
| 2410 | namespace _InternalFailure |
| 2411 | { |
| 2412 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2413 | } // namespace _InternalFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2414 | |
| 2415 | struct InternalFailure |
| 2416 | { |
| 2417 | static constexpr auto L = level::ERR; |
| 2418 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2419 | }; |
| 2420 | |
| 2421 | } // namespace Common |
| 2422 | } // namespace openbmc_project |
| 2423 | } // namespace xyz |
| 2424 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2425 | namespace details |
| 2426 | { |
| 2427 | |
| 2428 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2429 | struct map_exception_type< |
| 2430 | sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2431 | { |
| 2432 | using type = xyz::openbmc_project::Common::InternalFailure; |
| 2433 | }; |
| 2434 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2435 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2436 | |
| 2437 | namespace xyz |
| 2438 | { |
| 2439 | namespace openbmc_project |
| 2440 | { |
| 2441 | namespace Common |
| 2442 | { |
| 2443 | namespace _InvalidArgument |
| 2444 | { |
| 2445 | |
| 2446 | struct ARGUMENT_NAME |
| 2447 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2448 | /* |
| 2449 | * We can't use -fsanitize=undefined if we declare a |
| 2450 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2451 | * mako template lookups. |
| 2452 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2453 | static constexpr auto str_short = "ARGUMENT_NAME"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2454 | using type = |
| 2455 | std::tuple<std::decay_t<decltype("ARGUMENT_NAME=%s")>, const char*>; |
| 2456 | explicit constexpr ARGUMENT_NAME(const char* a) : |
| 2457 | _entry(entry("ARGUMENT_NAME=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2458 | type _entry; |
| 2459 | }; |
| 2460 | struct ARGUMENT_VALUE |
| 2461 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2462 | /* |
| 2463 | * We can't use -fsanitize=undefined if we declare a |
| 2464 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2465 | * mako template lookups. |
| 2466 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2467 | static constexpr auto str_short = "ARGUMENT_VALUE"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2468 | using type = |
| 2469 | std::tuple<std::decay_t<decltype("ARGUMENT_VALUE=%s")>, const char*>; |
| 2470 | explicit constexpr ARGUMENT_VALUE(const char* a) : |
| 2471 | _entry(entry("ARGUMENT_VALUE=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2472 | type _entry; |
| 2473 | }; |
| 2474 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2475 | } // namespace _InvalidArgument |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2476 | |
| 2477 | struct InvalidArgument |
| 2478 | { |
| 2479 | static constexpr auto L = level::ERR; |
| 2480 | using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME; |
| 2481 | using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE; |
| 2482 | using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2483 | }; |
| 2484 | |
| 2485 | } // namespace Common |
| 2486 | } // namespace openbmc_project |
| 2487 | } // namespace xyz |
| 2488 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2489 | namespace details |
| 2490 | { |
| 2491 | |
| 2492 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2493 | struct map_exception_type< |
| 2494 | sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2495 | { |
| 2496 | using type = xyz::openbmc_project::Common::InvalidArgument; |
| 2497 | }; |
| 2498 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2499 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2500 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2501 | namespace xyz |
| 2502 | { |
| 2503 | namespace openbmc_project |
| 2504 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2505 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2506 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2507 | namespace _InsufficientPermission |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2508 | { |
| 2509 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2510 | } // namespace _InsufficientPermission |
| 2511 | |
| 2512 | struct InsufficientPermission |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2513 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2514 | static constexpr auto L = level::INFO; |
| 2515 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2516 | }; |
| 2517 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2518 | } // namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2519 | } // namespace openbmc_project |
| 2520 | } // namespace xyz |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2521 | |
| 2522 | namespace details |
| 2523 | { |
| 2524 | |
| 2525 | template <> |
| 2526 | struct map_exception_type< |
| 2527 | sdbusplus::xyz::openbmc_project::Common::Error::InsufficientPermission> |
| 2528 | { |
| 2529 | using type = xyz::openbmc_project::Common::InsufficientPermission; |
| 2530 | }; |
| 2531 | |
| 2532 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2533 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2534 | namespace xyz |
| 2535 | { |
| 2536 | namespace openbmc_project |
| 2537 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2538 | namespace Common |
| 2539 | { |
| 2540 | namespace _NotAllowed |
| 2541 | { |
| 2542 | |
| 2543 | struct REASON |
| 2544 | { |
| 2545 | /* |
| 2546 | * We can't use -fsanitize=undefined if we declare a |
| 2547 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2548 | * mako template lookups. |
| 2549 | */ |
| 2550 | static constexpr auto str_short = "REASON"; |
| 2551 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2552 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2553 | type _entry; |
| 2554 | }; |
| 2555 | |
| 2556 | } // namespace _NotAllowed |
| 2557 | |
| 2558 | struct NotAllowed |
| 2559 | { |
| 2560 | static constexpr auto L = level::INFO; |
| 2561 | using REASON = _NotAllowed::REASON; |
| 2562 | using metadata_types = std::tuple<REASON>; |
| 2563 | }; |
| 2564 | |
| 2565 | } // namespace Common |
| 2566 | } // namespace openbmc_project |
| 2567 | } // namespace xyz |
| 2568 | |
| 2569 | namespace details |
| 2570 | { |
| 2571 | |
| 2572 | template <> |
| 2573 | struct map_exception_type< |
| 2574 | sdbusplus::xyz::openbmc_project::Common::Error::NotAllowed> |
| 2575 | { |
| 2576 | using type = xyz::openbmc_project::Common::NotAllowed; |
| 2577 | }; |
| 2578 | |
| 2579 | } // namespace details |
| 2580 | |
| 2581 | namespace xyz |
| 2582 | { |
| 2583 | namespace openbmc_project |
| 2584 | { |
| 2585 | namespace Common |
| 2586 | { |
| 2587 | namespace _NoCACertificate |
| 2588 | { |
| 2589 | |
| 2590 | } // namespace _NoCACertificate |
| 2591 | |
| 2592 | struct NoCACertificate |
| 2593 | { |
| 2594 | static constexpr auto L = level::ERR; |
| 2595 | using metadata_types = std::tuple<>; |
| 2596 | }; |
| 2597 | |
| 2598 | } // namespace Common |
| 2599 | } // namespace openbmc_project |
| 2600 | } // namespace xyz |
| 2601 | |
| 2602 | namespace details |
| 2603 | { |
| 2604 | |
| 2605 | template <> |
| 2606 | struct map_exception_type< |
| 2607 | sdbusplus::xyz::openbmc_project::Common::Error::NoCACertificate> |
| 2608 | { |
| 2609 | using type = xyz::openbmc_project::Common::NoCACertificate; |
| 2610 | }; |
| 2611 | |
| 2612 | } // namespace details |
| 2613 | |
| 2614 | namespace xyz |
| 2615 | { |
| 2616 | namespace openbmc_project |
| 2617 | { |
| 2618 | namespace Common |
| 2619 | { |
| 2620 | namespace _TooManyResources |
| 2621 | { |
| 2622 | |
| 2623 | } // namespace _TooManyResources |
| 2624 | |
| 2625 | struct TooManyResources |
| 2626 | { |
| 2627 | static constexpr auto L = level::INFO; |
| 2628 | using metadata_types = std::tuple<>; |
| 2629 | }; |
| 2630 | |
| 2631 | } // namespace Common |
| 2632 | } // namespace openbmc_project |
| 2633 | } // namespace xyz |
| 2634 | |
| 2635 | namespace details |
| 2636 | { |
| 2637 | |
| 2638 | template <> |
| 2639 | struct map_exception_type< |
| 2640 | sdbusplus::xyz::openbmc_project::Common::Error::TooManyResources> |
| 2641 | { |
| 2642 | using type = xyz::openbmc_project::Common::TooManyResources; |
| 2643 | }; |
| 2644 | |
| 2645 | } // namespace details |
| 2646 | |
| 2647 | namespace xyz |
| 2648 | { |
| 2649 | namespace openbmc_project |
| 2650 | { |
| 2651 | namespace Common |
| 2652 | { |
| 2653 | namespace _ResourceNotFound |
| 2654 | { |
| 2655 | |
| 2656 | } // namespace _ResourceNotFound |
| 2657 | |
| 2658 | struct ResourceNotFound |
| 2659 | { |
| 2660 | static constexpr auto L = level::INFO; |
| 2661 | using metadata_types = std::tuple<>; |
| 2662 | }; |
| 2663 | |
| 2664 | } // namespace Common |
| 2665 | } // namespace openbmc_project |
| 2666 | } // namespace xyz |
| 2667 | |
| 2668 | namespace details |
| 2669 | { |
| 2670 | |
| 2671 | template <> |
| 2672 | struct map_exception_type< |
| 2673 | sdbusplus::xyz::openbmc_project::Common::Error::ResourceNotFound> |
| 2674 | { |
| 2675 | using type = xyz::openbmc_project::Common::ResourceNotFound; |
| 2676 | }; |
| 2677 | |
| 2678 | } // namespace details |
| 2679 | |
| 2680 | namespace xyz |
| 2681 | { |
| 2682 | namespace openbmc_project |
| 2683 | { |
| 2684 | namespace Common |
| 2685 | { |
| 2686 | namespace _Unavailable |
| 2687 | { |
| 2688 | |
| 2689 | } // namespace _Unavailable |
| 2690 | |
| 2691 | struct Unavailable |
| 2692 | { |
| 2693 | static constexpr auto L = level::ERR; |
| 2694 | using metadata_types = std::tuple<>; |
| 2695 | }; |
| 2696 | |
| 2697 | } // namespace Common |
| 2698 | } // namespace openbmc_project |
| 2699 | } // namespace xyz |
| 2700 | |
| 2701 | namespace details |
| 2702 | { |
| 2703 | |
| 2704 | template <> |
| 2705 | struct map_exception_type< |
| 2706 | sdbusplus::xyz::openbmc_project::Common::Error::Unavailable> |
| 2707 | { |
| 2708 | using type = xyz::openbmc_project::Common::Unavailable; |
| 2709 | }; |
| 2710 | |
| 2711 | } // namespace details |
| 2712 | |
| 2713 | namespace xyz |
| 2714 | { |
| 2715 | namespace openbmc_project |
| 2716 | { |
| 2717 | namespace Common |
| 2718 | { |
| 2719 | namespace _UnsupportedRequest |
| 2720 | { |
| 2721 | |
| 2722 | struct REASON |
| 2723 | { |
| 2724 | /* |
| 2725 | * We can't use -fsanitize=undefined if we declare a |
| 2726 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2727 | * mako template lookups. |
| 2728 | */ |
| 2729 | static constexpr auto str_short = "REASON"; |
| 2730 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2731 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2732 | type _entry; |
| 2733 | }; |
| 2734 | |
| 2735 | } // namespace _UnsupportedRequest |
| 2736 | |
| 2737 | struct UnsupportedRequest |
| 2738 | { |
| 2739 | static constexpr auto L = level::INFO; |
| 2740 | using REASON = _UnsupportedRequest::REASON; |
| 2741 | using metadata_types = std::tuple<REASON>; |
| 2742 | }; |
| 2743 | |
| 2744 | } // namespace Common |
| 2745 | } // namespace openbmc_project |
| 2746 | } // namespace xyz |
| 2747 | |
| 2748 | namespace details |
| 2749 | { |
| 2750 | |
| 2751 | template <> |
| 2752 | struct map_exception_type< |
| 2753 | sdbusplus::xyz::openbmc_project::Common::Error::UnsupportedRequest> |
| 2754 | { |
| 2755 | using type = xyz::openbmc_project::Common::UnsupportedRequest; |
| 2756 | }; |
| 2757 | |
| 2758 | } // namespace details |
| 2759 | |
| 2760 | namespace xyz |
| 2761 | { |
| 2762 | namespace openbmc_project |
| 2763 | { |
| 2764 | namespace BIOSConfig |
| 2765 | { |
| 2766 | namespace Common |
| 2767 | { |
| 2768 | namespace _AttributeNotFound |
| 2769 | { |
| 2770 | |
| 2771 | } // namespace _AttributeNotFound |
| 2772 | |
| 2773 | struct AttributeNotFound |
| 2774 | { |
| 2775 | static constexpr auto L = level::ERR; |
| 2776 | using metadata_types = std::tuple<>; |
| 2777 | }; |
| 2778 | |
| 2779 | } // namespace Common |
| 2780 | } // namespace BIOSConfig |
| 2781 | } // namespace openbmc_project |
| 2782 | } // namespace xyz |
| 2783 | |
| 2784 | namespace details |
| 2785 | { |
| 2786 | |
| 2787 | template <> |
| 2788 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2789 | Error::AttributeNotFound> |
| 2790 | { |
| 2791 | using type = xyz::openbmc_project::BIOSConfig::Common::AttributeNotFound; |
| 2792 | }; |
| 2793 | |
| 2794 | } // namespace details |
| 2795 | |
| 2796 | namespace xyz |
| 2797 | { |
| 2798 | namespace openbmc_project |
| 2799 | { |
| 2800 | namespace BIOSConfig |
| 2801 | { |
| 2802 | namespace Common |
| 2803 | { |
| 2804 | namespace _AttributeReadOnly |
| 2805 | { |
| 2806 | |
| 2807 | struct REASON |
| 2808 | { |
| 2809 | /* |
| 2810 | * We can't use -fsanitize=undefined if we declare a |
| 2811 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2812 | * mako template lookups. |
| 2813 | */ |
| 2814 | static constexpr auto str_short = "REASON"; |
| 2815 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2816 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2817 | type _entry; |
| 2818 | }; |
| 2819 | |
| 2820 | } // namespace _AttributeReadOnly |
| 2821 | |
| 2822 | struct AttributeReadOnly |
| 2823 | { |
| 2824 | static constexpr auto L = level::ERR; |
| 2825 | using REASON = _AttributeReadOnly::REASON; |
| 2826 | using metadata_types = std::tuple<REASON>; |
| 2827 | }; |
| 2828 | |
| 2829 | } // namespace Common |
| 2830 | } // namespace BIOSConfig |
| 2831 | } // namespace openbmc_project |
| 2832 | } // namespace xyz |
| 2833 | |
| 2834 | namespace details |
| 2835 | { |
| 2836 | |
| 2837 | template <> |
| 2838 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2839 | Error::AttributeReadOnly> |
| 2840 | { |
| 2841 | using type = xyz::openbmc_project::BIOSConfig::Common::AttributeReadOnly; |
| 2842 | }; |
| 2843 | |
| 2844 | } // namespace details |
| 2845 | |
| 2846 | namespace xyz |
| 2847 | { |
| 2848 | namespace openbmc_project |
| 2849 | { |
| 2850 | namespace BIOSConfig |
| 2851 | { |
| 2852 | namespace Common |
| 2853 | { |
| 2854 | namespace _InvalidCurrentPassword |
| 2855 | { |
| 2856 | |
| 2857 | } // namespace _InvalidCurrentPassword |
| 2858 | |
| 2859 | struct InvalidCurrentPassword |
| 2860 | { |
| 2861 | static constexpr auto L = level::ERR; |
| 2862 | using metadata_types = std::tuple<>; |
| 2863 | }; |
| 2864 | |
| 2865 | } // namespace Common |
| 2866 | } // namespace BIOSConfig |
| 2867 | } // namespace openbmc_project |
| 2868 | } // namespace xyz |
| 2869 | |
| 2870 | namespace details |
| 2871 | { |
| 2872 | |
| 2873 | template <> |
| 2874 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2875 | Error::InvalidCurrentPassword> |
| 2876 | { |
| 2877 | using type = |
| 2878 | xyz::openbmc_project::BIOSConfig::Common::InvalidCurrentPassword; |
| 2879 | }; |
| 2880 | |
| 2881 | } // namespace details |
| 2882 | |
| 2883 | namespace xyz |
| 2884 | { |
| 2885 | namespace openbmc_project |
| 2886 | { |
| 2887 | namespace BIOSConfig |
| 2888 | { |
| 2889 | namespace Common |
| 2890 | { |
| 2891 | namespace _PasswordNotSettable |
| 2892 | { |
| 2893 | |
| 2894 | } // namespace _PasswordNotSettable |
| 2895 | |
| 2896 | struct PasswordNotSettable |
| 2897 | { |
| 2898 | static constexpr auto L = level::ERR; |
| 2899 | using metadata_types = std::tuple<>; |
| 2900 | }; |
| 2901 | |
| 2902 | } // namespace Common |
| 2903 | } // namespace BIOSConfig |
| 2904 | } // namespace openbmc_project |
| 2905 | } // namespace xyz |
| 2906 | |
| 2907 | namespace details |
| 2908 | { |
| 2909 | |
| 2910 | template <> |
| 2911 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2912 | Error::PasswordNotSettable> |
| 2913 | { |
| 2914 | using type = xyz::openbmc_project::BIOSConfig::Common::PasswordNotSettable; |
| 2915 | }; |
| 2916 | |
| 2917 | } // namespace details |
| 2918 | |
| 2919 | namespace xyz |
| 2920 | { |
| 2921 | namespace openbmc_project |
| 2922 | { |
| 2923 | namespace Chassis |
| 2924 | { |
| 2925 | namespace Common |
| 2926 | { |
| 2927 | namespace _UnsupportedCommand |
| 2928 | { |
| 2929 | |
| 2930 | } // namespace _UnsupportedCommand |
| 2931 | |
| 2932 | struct UnsupportedCommand |
| 2933 | { |
| 2934 | static constexpr auto L = level::ERR; |
| 2935 | using metadata_types = std::tuple<>; |
| 2936 | }; |
| 2937 | |
| 2938 | } // namespace Common |
| 2939 | } // namespace Chassis |
| 2940 | } // namespace openbmc_project |
| 2941 | } // namespace xyz |
| 2942 | |
| 2943 | namespace details |
| 2944 | { |
| 2945 | |
| 2946 | template <> |
| 2947 | struct map_exception_type< |
| 2948 | sdbusplus::xyz::openbmc_project::Chassis::Common::Error::UnsupportedCommand> |
| 2949 | { |
| 2950 | using type = xyz::openbmc_project::Chassis::Common::UnsupportedCommand; |
| 2951 | }; |
| 2952 | |
| 2953 | } // namespace details |
| 2954 | |
| 2955 | namespace xyz |
| 2956 | { |
| 2957 | namespace openbmc_project |
| 2958 | { |
| 2959 | namespace Chassis |
| 2960 | { |
| 2961 | namespace Common |
| 2962 | { |
| 2963 | namespace _IOError |
| 2964 | { |
| 2965 | |
| 2966 | } // namespace _IOError |
| 2967 | |
| 2968 | struct IOError |
| 2969 | { |
| 2970 | static constexpr auto L = level::ERR; |
| 2971 | using metadata_types = std::tuple<>; |
| 2972 | }; |
| 2973 | |
| 2974 | } // namespace Common |
| 2975 | } // namespace Chassis |
| 2976 | } // namespace openbmc_project |
| 2977 | } // namespace xyz |
| 2978 | |
| 2979 | namespace details |
| 2980 | { |
| 2981 | |
| 2982 | template <> |
| 2983 | struct map_exception_type< |
| 2984 | sdbusplus::xyz::openbmc_project::Chassis::Common::Error::IOError> |
| 2985 | { |
| 2986 | using type = xyz::openbmc_project::Chassis::Common::IOError; |
| 2987 | }; |
| 2988 | |
| 2989 | } // namespace details |
| 2990 | |
| 2991 | namespace xyz |
| 2992 | { |
| 2993 | namespace openbmc_project |
| 2994 | { |
| 2995 | namespace Common |
| 2996 | { |
| 2997 | namespace Callout |
| 2998 | { |
| 2999 | namespace _Device |
| 3000 | { |
| 3001 | |
| 3002 | struct CALLOUT_ERRNO |
| 3003 | { |
| 3004 | /* |
| 3005 | * We can't use -fsanitize=undefined if we declare a |
| 3006 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3007 | * mako template lookups. |
| 3008 | */ |
| 3009 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 3010 | using type = |
| 3011 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>; |
| 3012 | explicit constexpr CALLOUT_ERRNO(int32_t a) : |
| 3013 | _entry(entry("CALLOUT_ERRNO=%d", a)){}; |
| 3014 | type _entry; |
| 3015 | }; |
| 3016 | struct CALLOUT_DEVICE_PATH |
| 3017 | { |
| 3018 | /* |
| 3019 | * We can't use -fsanitize=undefined if we declare a |
| 3020 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3021 | * mako template lookups. |
| 3022 | */ |
| 3023 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 3024 | using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, |
| 3025 | const char*>; |
| 3026 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
| 3027 | _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){}; |
| 3028 | type _entry; |
| 3029 | }; |
| 3030 | |
| 3031 | } // namespace _Device |
| 3032 | |
| 3033 | struct Device |
| 3034 | { |
| 3035 | static constexpr auto L = level::ERR; |
| 3036 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 3037 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 3038 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 3039 | }; |
| 3040 | |
| 3041 | } // namespace Callout |
| 3042 | } // namespace Common |
| 3043 | } // namespace openbmc_project |
| 3044 | } // namespace xyz |
| 3045 | |
| 3046 | namespace details |
| 3047 | { |
| 3048 | |
| 3049 | template <> |
| 3050 | struct map_exception_type< |
| 3051 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 3052 | { |
| 3053 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 3054 | }; |
| 3055 | |
| 3056 | } // namespace details |
| 3057 | |
| 3058 | namespace xyz |
| 3059 | { |
| 3060 | namespace openbmc_project |
| 3061 | { |
| 3062 | namespace Common |
| 3063 | { |
| 3064 | namespace Callout |
| 3065 | { |
| 3066 | namespace _GPIO |
| 3067 | { |
| 3068 | |
| 3069 | struct CALLOUT_GPIO_NUM |
| 3070 | { |
| 3071 | /* |
| 3072 | * We can't use -fsanitize=undefined if we declare a |
| 3073 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3074 | * mako template lookups. |
| 3075 | */ |
| 3076 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 3077 | using type = |
| 3078 | std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>; |
| 3079 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : |
| 3080 | _entry(entry("CALLOUT_GPIO_NUM=%u", a)){}; |
| 3081 | type _entry; |
| 3082 | }; |
| 3083 | |
| 3084 | } // namespace _GPIO |
| 3085 | |
| 3086 | struct GPIO |
| 3087 | { |
| 3088 | static constexpr auto L = level::ERR; |
| 3089 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 3090 | using CALLOUT_ERRNO = |
| 3091 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3092 | using CALLOUT_DEVICE_PATH = |
| 3093 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 3094 | using metadata_types = |
| 3095 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 3096 | }; |
| 3097 | |
| 3098 | } // namespace Callout |
| 3099 | } // namespace Common |
| 3100 | } // namespace openbmc_project |
| 3101 | } // namespace xyz |
| 3102 | |
| 3103 | namespace details |
| 3104 | { |
| 3105 | |
| 3106 | template <> |
| 3107 | struct map_exception_type< |
| 3108 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 3109 | { |
| 3110 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 3111 | }; |
| 3112 | |
| 3113 | } // namespace details |
| 3114 | |
| 3115 | namespace xyz |
| 3116 | { |
| 3117 | namespace openbmc_project |
| 3118 | { |
| 3119 | namespace Common |
| 3120 | { |
| 3121 | namespace Callout |
| 3122 | { |
| 3123 | namespace _IIC |
| 3124 | { |
| 3125 | |
| 3126 | struct CALLOUT_IIC_BUS |
| 3127 | { |
| 3128 | /* |
| 3129 | * We can't use -fsanitize=undefined if we declare a |
| 3130 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3131 | * mako template lookups. |
| 3132 | */ |
| 3133 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 3134 | using type = |
| 3135 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>; |
| 3136 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : |
| 3137 | _entry(entry("CALLOUT_IIC_BUS=%s", a)){}; |
| 3138 | type _entry; |
| 3139 | }; |
| 3140 | struct CALLOUT_IIC_ADDR |
| 3141 | { |
| 3142 | /* |
| 3143 | * We can't use -fsanitize=undefined if we declare a |
| 3144 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3145 | * mako template lookups. |
| 3146 | */ |
| 3147 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 3148 | using type = |
| 3149 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>; |
| 3150 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : |
| 3151 | _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){}; |
| 3152 | type _entry; |
| 3153 | }; |
| 3154 | |
| 3155 | } // namespace _IIC |
| 3156 | |
| 3157 | struct IIC |
| 3158 | { |
| 3159 | static constexpr auto L = level::ERR; |
| 3160 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 3161 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 3162 | using CALLOUT_ERRNO = |
| 3163 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3164 | using CALLOUT_DEVICE_PATH = |
| 3165 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 3166 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 3167 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 3168 | }; |
| 3169 | |
| 3170 | } // namespace Callout |
| 3171 | } // namespace Common |
| 3172 | } // namespace openbmc_project |
| 3173 | } // namespace xyz |
| 3174 | |
| 3175 | namespace details |
| 3176 | { |
| 3177 | |
| 3178 | template <> |
| 3179 | struct map_exception_type< |
| 3180 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 3181 | { |
| 3182 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 3183 | }; |
| 3184 | |
| 3185 | } // namespace details |
| 3186 | |
| 3187 | namespace xyz |
| 3188 | { |
| 3189 | namespace openbmc_project |
| 3190 | { |
| 3191 | namespace Common |
| 3192 | { |
| 3193 | namespace Callout |
| 3194 | { |
| 3195 | namespace _Inventory |
| 3196 | { |
| 3197 | |
| 3198 | struct CALLOUT_INVENTORY_PATH |
| 3199 | { |
| 3200 | /* |
| 3201 | * We can't use -fsanitize=undefined if we declare a |
| 3202 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3203 | * mako template lookups. |
| 3204 | */ |
| 3205 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 3206 | using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, |
| 3207 | const char*>; |
| 3208 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
| 3209 | _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){}; |
| 3210 | type _entry; |
| 3211 | }; |
| 3212 | |
| 3213 | } // namespace _Inventory |
| 3214 | |
| 3215 | struct Inventory |
| 3216 | { |
| 3217 | static constexpr auto L = level::ERR; |
| 3218 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 3219 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 3220 | }; |
| 3221 | |
| 3222 | } // namespace Callout |
| 3223 | } // namespace Common |
| 3224 | } // namespace openbmc_project |
| 3225 | } // namespace xyz |
| 3226 | |
| 3227 | namespace details |
| 3228 | { |
| 3229 | |
| 3230 | template <> |
| 3231 | struct map_exception_type< |
| 3232 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 3233 | { |
| 3234 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 3235 | }; |
| 3236 | |
| 3237 | } // namespace details |
| 3238 | |
| 3239 | namespace xyz |
| 3240 | { |
| 3241 | namespace openbmc_project |
| 3242 | { |
| 3243 | namespace Common |
| 3244 | { |
| 3245 | namespace Callout |
| 3246 | { |
| 3247 | namespace _IPMISensor |
| 3248 | { |
| 3249 | |
| 3250 | struct CALLOUT_IPMI_SENSOR_NUM |
| 3251 | { |
| 3252 | /* |
| 3253 | * We can't use -fsanitize=undefined if we declare a |
| 3254 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3255 | * mako template lookups. |
| 3256 | */ |
| 3257 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 3258 | using type = |
| 3259 | std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, |
| 3260 | uint32_t>; |
| 3261 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
| 3262 | _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){}; |
| 3263 | type _entry; |
| 3264 | }; |
| 3265 | |
| 3266 | } // namespace _IPMISensor |
| 3267 | |
| 3268 | struct IPMISensor |
| 3269 | { |
| 3270 | static constexpr auto L = level::ERR; |
| 3271 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 3272 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 3273 | }; |
| 3274 | |
| 3275 | } // namespace Callout |
| 3276 | } // namespace Common |
| 3277 | } // namespace openbmc_project |
| 3278 | } // namespace xyz |
| 3279 | |
| 3280 | namespace details |
| 3281 | { |
| 3282 | |
| 3283 | template <> |
| 3284 | struct map_exception_type< |
| 3285 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 3286 | { |
| 3287 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 3288 | }; |
| 3289 | |
| 3290 | } // namespace details |
| 3291 | |
| 3292 | namespace xyz |
| 3293 | { |
| 3294 | namespace openbmc_project |
| 3295 | { |
| 3296 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3297 | { |
| 3298 | namespace Device |
| 3299 | { |
| 3300 | namespace _ReadFailure |
| 3301 | { |
| 3302 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3303 | } // namespace _ReadFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3304 | |
| 3305 | struct ReadFailure |
| 3306 | { |
| 3307 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3308 | using CALLOUT_ERRNO = |
| 3309 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3310 | using CALLOUT_DEVICE_PATH = |
| 3311 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3312 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3313 | }; |
| 3314 | |
| 3315 | } // namespace Device |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3316 | } // namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3317 | } // namespace openbmc_project |
| 3318 | } // namespace xyz |
| 3319 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3320 | namespace details |
| 3321 | { |
| 3322 | |
| 3323 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3324 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3325 | sdbusplus::xyz::openbmc_project::Common::Device::Error::ReadFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3326 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3327 | using type = xyz::openbmc_project::Common::Device::ReadFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3328 | }; |
| 3329 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3330 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3331 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3332 | namespace xyz |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3333 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3334 | namespace openbmc_project |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3335 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3336 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3337 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3338 | namespace Device |
| 3339 | { |
| 3340 | namespace _WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3341 | { |
| 3342 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3343 | } // namespace _WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3344 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3345 | struct WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3346 | { |
| 3347 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3348 | using CALLOUT_ERRNO = |
| 3349 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3350 | using CALLOUT_DEVICE_PATH = |
| 3351 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 3352 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3353 | }; |
| 3354 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3355 | } // namespace Device |
| 3356 | } // namespace Common |
| 3357 | } // namespace openbmc_project |
| 3358 | } // namespace xyz |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3359 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3360 | namespace details |
| 3361 | { |
| 3362 | |
| 3363 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3364 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3365 | sdbusplus::xyz::openbmc_project::Common::Device::Error::WriteFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3366 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3367 | using type = xyz::openbmc_project::Common::Device::WriteFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3368 | }; |
| 3369 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3370 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3371 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3372 | namespace xyz |
| 3373 | { |
| 3374 | namespace openbmc_project |
| 3375 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3376 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3377 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3378 | namespace File |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3379 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3380 | namespace _Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3381 | { |
| 3382 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3383 | struct ERRNO |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3384 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3385 | /* |
| 3386 | * We can't use -fsanitize=undefined if we declare a |
| 3387 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3388 | * mako template lookups. |
| 3389 | */ |
| 3390 | static constexpr auto str_short = "ERRNO"; |
| 3391 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3392 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3393 | type _entry; |
| 3394 | }; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3395 | struct PATH |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3396 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3397 | /* |
| 3398 | * We can't use -fsanitize=undefined if we declare a |
| 3399 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3400 | * mako template lookups. |
| 3401 | */ |
| 3402 | static constexpr auto str_short = "PATH"; |
| 3403 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3404 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3405 | type _entry; |
| 3406 | }; |
| 3407 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3408 | } // namespace _Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3409 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3410 | struct Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3411 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3412 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3413 | using ERRNO = _Open::ERRNO; |
| 3414 | using PATH = _Open::PATH; |
| 3415 | using metadata_types = std::tuple<ERRNO, PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3416 | }; |
| 3417 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3418 | } // namespace File |
| 3419 | } // namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3420 | } // namespace openbmc_project |
| 3421 | } // namespace xyz |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3422 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3423 | namespace details |
| 3424 | { |
| 3425 | |
| 3426 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3427 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3428 | sdbusplus::xyz::openbmc_project::Common::File::Error::Open> |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3429 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3430 | using type = xyz::openbmc_project::Common::File::Open; |
| 3431 | }; |
| 3432 | |
| 3433 | } // namespace details |
| 3434 | |
| 3435 | namespace xyz |
| 3436 | { |
| 3437 | namespace openbmc_project |
| 3438 | { |
| 3439 | namespace Common |
| 3440 | { |
| 3441 | namespace File |
| 3442 | { |
| 3443 | namespace _Seek |
| 3444 | { |
| 3445 | |
| 3446 | struct OFFSET |
| 3447 | { |
| 3448 | /* |
| 3449 | * We can't use -fsanitize=undefined if we declare a |
| 3450 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3451 | * mako template lookups. |
| 3452 | */ |
| 3453 | static constexpr auto str_short = "OFFSET"; |
| 3454 | using type = std::tuple<std::decay_t<decltype("OFFSET=%ll")>, int64_t>; |
| 3455 | explicit constexpr OFFSET(int64_t a) : _entry(entry("OFFSET=%ll", a)){}; |
| 3456 | type _entry; |
| 3457 | }; |
| 3458 | struct WHENCE |
| 3459 | { |
| 3460 | /* |
| 3461 | * We can't use -fsanitize=undefined if we declare a |
| 3462 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3463 | * mako template lookups. |
| 3464 | */ |
| 3465 | static constexpr auto str_short = "WHENCE"; |
| 3466 | using type = std::tuple<std::decay_t<decltype("WHENCE=%d")>, int32_t>; |
| 3467 | explicit constexpr WHENCE(int32_t a) : _entry(entry("WHENCE=%d", a)){}; |
| 3468 | type _entry; |
| 3469 | }; |
| 3470 | struct ERRNO |
| 3471 | { |
| 3472 | /* |
| 3473 | * We can't use -fsanitize=undefined if we declare a |
| 3474 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3475 | * mako template lookups. |
| 3476 | */ |
| 3477 | static constexpr auto str_short = "ERRNO"; |
| 3478 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3479 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 3480 | type _entry; |
| 3481 | }; |
| 3482 | struct PATH |
| 3483 | { |
| 3484 | /* |
| 3485 | * We can't use -fsanitize=undefined if we declare a |
| 3486 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3487 | * mako template lookups. |
| 3488 | */ |
| 3489 | static constexpr auto str_short = "PATH"; |
| 3490 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3491 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 3492 | type _entry; |
| 3493 | }; |
| 3494 | |
| 3495 | } // namespace _Seek |
| 3496 | |
| 3497 | struct Seek |
| 3498 | { |
| 3499 | static constexpr auto L = level::ERR; |
| 3500 | using OFFSET = _Seek::OFFSET; |
| 3501 | using WHENCE = _Seek::WHENCE; |
| 3502 | using ERRNO = _Seek::ERRNO; |
| 3503 | using PATH = _Seek::PATH; |
| 3504 | using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>; |
| 3505 | }; |
| 3506 | |
| 3507 | } // namespace File |
| 3508 | } // namespace Common |
| 3509 | } // namespace openbmc_project |
| 3510 | } // namespace xyz |
| 3511 | |
| 3512 | namespace details |
| 3513 | { |
| 3514 | |
| 3515 | template <> |
| 3516 | struct map_exception_type< |
| 3517 | sdbusplus::xyz::openbmc_project::Common::File::Error::Seek> |
| 3518 | { |
| 3519 | using type = xyz::openbmc_project::Common::File::Seek; |
| 3520 | }; |
| 3521 | |
| 3522 | } // namespace details |
| 3523 | |
| 3524 | namespace xyz |
| 3525 | { |
| 3526 | namespace openbmc_project |
| 3527 | { |
| 3528 | namespace Common |
| 3529 | { |
| 3530 | namespace File |
| 3531 | { |
| 3532 | namespace _Write |
| 3533 | { |
| 3534 | |
| 3535 | struct ERRNO |
| 3536 | { |
| 3537 | /* |
| 3538 | * We can't use -fsanitize=undefined if we declare a |
| 3539 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3540 | * mako template lookups. |
| 3541 | */ |
| 3542 | static constexpr auto str_short = "ERRNO"; |
| 3543 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3544 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 3545 | type _entry; |
| 3546 | }; |
| 3547 | struct PATH |
| 3548 | { |
| 3549 | /* |
| 3550 | * We can't use -fsanitize=undefined if we declare a |
| 3551 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3552 | * mako template lookups. |
| 3553 | */ |
| 3554 | static constexpr auto str_short = "PATH"; |
| 3555 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3556 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 3557 | type _entry; |
| 3558 | }; |
| 3559 | |
| 3560 | } // namespace _Write |
| 3561 | |
| 3562 | struct Write |
| 3563 | { |
| 3564 | static constexpr auto L = level::ERR; |
| 3565 | using ERRNO = _Write::ERRNO; |
| 3566 | using PATH = _Write::PATH; |
| 3567 | using metadata_types = std::tuple<ERRNO, PATH>; |
| 3568 | }; |
| 3569 | |
| 3570 | } // namespace File |
| 3571 | } // namespace Common |
| 3572 | } // namespace openbmc_project |
| 3573 | } // namespace xyz |
| 3574 | |
| 3575 | namespace details |
| 3576 | { |
| 3577 | |
| 3578 | template <> |
| 3579 | struct map_exception_type< |
| 3580 | sdbusplus::xyz::openbmc_project::Common::File::Error::Write> |
| 3581 | { |
| 3582 | using type = xyz::openbmc_project::Common::File::Write; |
| 3583 | }; |
| 3584 | |
| 3585 | } // namespace details |
| 3586 | |
| 3587 | namespace xyz |
| 3588 | { |
| 3589 | namespace openbmc_project |
| 3590 | { |
| 3591 | namespace Common |
| 3592 | { |
| 3593 | namespace File |
| 3594 | { |
| 3595 | namespace _Read |
| 3596 | { |
| 3597 | |
| 3598 | struct ERRNO |
| 3599 | { |
| 3600 | /* |
| 3601 | * We can't use -fsanitize=undefined if we declare a |
| 3602 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3603 | * mako template lookups. |
| 3604 | */ |
| 3605 | static constexpr auto str_short = "ERRNO"; |
| 3606 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3607 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 3608 | type _entry; |
| 3609 | }; |
| 3610 | struct PATH |
| 3611 | { |
| 3612 | /* |
| 3613 | * We can't use -fsanitize=undefined if we declare a |
| 3614 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3615 | * mako template lookups. |
| 3616 | */ |
| 3617 | static constexpr auto str_short = "PATH"; |
| 3618 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3619 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 3620 | type _entry; |
| 3621 | }; |
| 3622 | |
| 3623 | } // namespace _Read |
| 3624 | |
| 3625 | struct Read |
| 3626 | { |
| 3627 | static constexpr auto L = level::ERR; |
| 3628 | using ERRNO = _Read::ERRNO; |
| 3629 | using PATH = _Read::PATH; |
| 3630 | using metadata_types = std::tuple<ERRNO, PATH>; |
| 3631 | }; |
| 3632 | |
| 3633 | } // namespace File |
| 3634 | } // namespace Common |
| 3635 | } // namespace openbmc_project |
| 3636 | } // namespace xyz |
| 3637 | |
| 3638 | namespace details |
| 3639 | { |
| 3640 | |
| 3641 | template <> |
| 3642 | struct map_exception_type< |
| 3643 | sdbusplus::xyz::openbmc_project::Common::File::Error::Read> |
| 3644 | { |
| 3645 | using type = xyz::openbmc_project::Common::File::Read; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3646 | }; |
| 3647 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3648 | } // namespace details |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3649 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3650 | namespace xyz |
| 3651 | { |
| 3652 | namespace openbmc_project |
| 3653 | { |
| 3654 | namespace Control |
| 3655 | { |
| 3656 | namespace Device |
| 3657 | { |
| 3658 | namespace _WriteFailure |
| 3659 | { |
| 3660 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3661 | } // namespace _WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3662 | |
| 3663 | struct WriteFailure |
| 3664 | { |
| 3665 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3666 | using CALLOUT_ERRNO = |
| 3667 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3668 | using CALLOUT_DEVICE_PATH = |
| 3669 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3670 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3671 | }; |
| 3672 | |
| 3673 | } // namespace Device |
| 3674 | } // namespace Control |
| 3675 | } // namespace openbmc_project |
| 3676 | } // namespace xyz |
| 3677 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3678 | namespace details |
| 3679 | { |
| 3680 | |
| 3681 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3682 | struct map_exception_type< |
| 3683 | sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3684 | { |
| 3685 | using type = xyz::openbmc_project::Control::Device::WriteFailure; |
| 3686 | }; |
| 3687 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3688 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3689 | |
| 3690 | namespace xyz |
| 3691 | { |
| 3692 | namespace openbmc_project |
| 3693 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3694 | namespace Control |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3695 | { |
| 3696 | namespace Host |
| 3697 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3698 | namespace _CommandNotSupported |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3699 | { |
| 3700 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3701 | } // namespace _CommandNotSupported |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3702 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3703 | struct CommandNotSupported |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3704 | { |
| 3705 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3706 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3707 | }; |
| 3708 | |
| 3709 | } // namespace Host |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3710 | } // namespace Control |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3711 | } // namespace openbmc_project |
| 3712 | } // namespace xyz |
| 3713 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3714 | namespace details |
| 3715 | { |
| 3716 | |
| 3717 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3718 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3719 | sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3720 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3721 | using type = xyz::openbmc_project::Control::Host::CommandNotSupported; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3722 | }; |
| 3723 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3724 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3725 | |
| 3726 | namespace xyz |
| 3727 | { |
| 3728 | namespace openbmc_project |
| 3729 | { |
| 3730 | namespace Dump |
| 3731 | { |
| 3732 | namespace Create |
| 3733 | { |
| 3734 | namespace _Disabled |
| 3735 | { |
| 3736 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3737 | } // namespace _Disabled |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3738 | |
| 3739 | struct Disabled |
| 3740 | { |
| 3741 | static constexpr auto L = level::ERR; |
| 3742 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3743 | }; |
| 3744 | |
| 3745 | } // namespace Create |
| 3746 | } // namespace Dump |
| 3747 | } // namespace openbmc_project |
| 3748 | } // namespace xyz |
| 3749 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3750 | namespace details |
| 3751 | { |
| 3752 | |
| 3753 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3754 | struct map_exception_type< |
| 3755 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3756 | { |
| 3757 | using type = xyz::openbmc_project::Dump::Create::Disabled; |
| 3758 | }; |
| 3759 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3760 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3761 | |
| 3762 | namespace xyz |
| 3763 | { |
| 3764 | namespace openbmc_project |
| 3765 | { |
| 3766 | namespace Dump |
| 3767 | { |
| 3768 | namespace Create |
| 3769 | { |
| 3770 | namespace _QuotaExceeded |
| 3771 | { |
| 3772 | |
Gunnar Mills | d8249ee | 2018-04-12 16:33:53 -0500 | [diff] [blame] | 3773 | struct REASON |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3774 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3775 | /* |
| 3776 | * We can't use -fsanitize=undefined if we declare a |
| 3777 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3778 | * mako template lookups. |
| 3779 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3780 | static constexpr auto str_short = "REASON "; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3781 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 3782 | explicit constexpr REASON(const char* a) : |
| 3783 | _entry(entry("REASON = %s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3784 | type _entry; |
| 3785 | }; |
| 3786 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3787 | } // namespace _QuotaExceeded |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3788 | |
| 3789 | struct QuotaExceeded |
| 3790 | { |
| 3791 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3792 | using REASON = _QuotaExceeded::REASON; |
| 3793 | using metadata_types = std::tuple<REASON>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3794 | }; |
| 3795 | |
| 3796 | } // namespace Create |
| 3797 | } // namespace Dump |
| 3798 | } // namespace openbmc_project |
| 3799 | } // namespace xyz |
| 3800 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3801 | namespace details |
| 3802 | { |
| 3803 | |
| 3804 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3805 | struct map_exception_type< |
| 3806 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3807 | { |
| 3808 | using type = xyz::openbmc_project::Dump::Create::QuotaExceeded; |
| 3809 | }; |
| 3810 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3811 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3812 | |
| 3813 | namespace xyz |
| 3814 | { |
| 3815 | namespace openbmc_project |
| 3816 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3817 | namespace Logging |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3818 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3819 | namespace SEL |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3820 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3821 | namespace _Created |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3822 | { |
| 3823 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3824 | struct RECORD_TYPE |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3825 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3826 | /* |
| 3827 | * We can't use -fsanitize=undefined if we declare a |
| 3828 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3829 | * mako template lookups. |
| 3830 | */ |
| 3831 | static constexpr auto str_short = "RECORD_TYPE"; |
| 3832 | using type = std::tuple<std::decay_t<decltype("RECORD_TYPE=%u")>, uint8_t>; |
| 3833 | explicit constexpr RECORD_TYPE(uint8_t a) : |
| 3834 | _entry(entry("RECORD_TYPE=%u", a)){}; |
| 3835 | type _entry; |
| 3836 | }; |
| 3837 | struct GENERATOR_ID |
| 3838 | { |
| 3839 | /* |
| 3840 | * We can't use -fsanitize=undefined if we declare a |
| 3841 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3842 | * mako template lookups. |
| 3843 | */ |
| 3844 | static constexpr auto str_short = "GENERATOR_ID"; |
| 3845 | using type = |
| 3846 | std::tuple<std::decay_t<decltype("GENERATOR_ID=%u")>, uint16_t>; |
| 3847 | explicit constexpr GENERATOR_ID(uint16_t a) : |
| 3848 | _entry(entry("GENERATOR_ID=%u", a)){}; |
| 3849 | type _entry; |
| 3850 | }; |
| 3851 | struct SENSOR_DATA |
| 3852 | { |
| 3853 | /* |
| 3854 | * We can't use -fsanitize=undefined if we declare a |
| 3855 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3856 | * mako template lookups. |
| 3857 | */ |
| 3858 | static constexpr auto str_short = "SENSOR_DATA"; |
| 3859 | using type = |
| 3860 | std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>; |
| 3861 | explicit constexpr SENSOR_DATA(const char* a) : |
| 3862 | _entry(entry("SENSOR_DATA=%s", a)){}; |
| 3863 | type _entry; |
| 3864 | }; |
| 3865 | struct EVENT_DIR |
| 3866 | { |
| 3867 | /* |
| 3868 | * We can't use -fsanitize=undefined if we declare a |
| 3869 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3870 | * mako template lookups. |
| 3871 | */ |
| 3872 | static constexpr auto str_short = "EVENT_DIR"; |
| 3873 | using type = std::tuple<std::decay_t<decltype("EVENT_DIR=%u")>, uint8_t>; |
| 3874 | explicit constexpr EVENT_DIR(uint8_t a) : |
| 3875 | _entry(entry("EVENT_DIR=%u", a)){}; |
| 3876 | type _entry; |
| 3877 | }; |
| 3878 | struct SENSOR_PATH |
| 3879 | { |
| 3880 | /* |
| 3881 | * We can't use -fsanitize=undefined if we declare a |
| 3882 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3883 | * mako template lookups. |
| 3884 | */ |
| 3885 | static constexpr auto str_short = "SENSOR_PATH"; |
| 3886 | using type = |
| 3887 | std::tuple<std::decay_t<decltype("SENSOR_PATH=%s")>, const char*>; |
| 3888 | explicit constexpr SENSOR_PATH(const char* a) : |
| 3889 | _entry(entry("SENSOR_PATH=%s", a)){}; |
| 3890 | type _entry; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3891 | }; |
| 3892 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3893 | } // namespace _Created |
| 3894 | |
| 3895 | struct Created |
| 3896 | { |
| 3897 | static constexpr auto L = level::INFO; |
| 3898 | using RECORD_TYPE = _Created::RECORD_TYPE; |
| 3899 | using GENERATOR_ID = _Created::GENERATOR_ID; |
| 3900 | using SENSOR_DATA = _Created::SENSOR_DATA; |
| 3901 | using EVENT_DIR = _Created::EVENT_DIR; |
| 3902 | using SENSOR_PATH = _Created::SENSOR_PATH; |
| 3903 | using metadata_types = std::tuple<RECORD_TYPE, GENERATOR_ID, SENSOR_DATA, |
| 3904 | EVENT_DIR, SENSOR_PATH>; |
| 3905 | }; |
| 3906 | |
| 3907 | } // namespace SEL |
| 3908 | } // namespace Logging |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3909 | } // namespace openbmc_project |
| 3910 | } // namespace xyz |
| 3911 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3912 | namespace details |
| 3913 | { |
| 3914 | |
| 3915 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3916 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3917 | sdbusplus::xyz::openbmc_project::Logging::SEL::Error::Created> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3918 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3919 | using type = xyz::openbmc_project::Logging::SEL::Created; |
| 3920 | }; |
| 3921 | |
| 3922 | } // namespace details |
| 3923 | |
| 3924 | namespace xyz |
| 3925 | { |
| 3926 | namespace openbmc_project |
| 3927 | { |
| 3928 | namespace Memory |
| 3929 | { |
| 3930 | namespace MemoryECC |
| 3931 | { |
| 3932 | namespace _isLoggingLimitReached |
| 3933 | { |
| 3934 | |
| 3935 | } // namespace _isLoggingLimitReached |
| 3936 | |
| 3937 | struct isLoggingLimitReached |
| 3938 | { |
| 3939 | static constexpr auto L = level::ERR; |
| 3940 | using metadata_types = std::tuple<>; |
| 3941 | }; |
| 3942 | |
| 3943 | } // namespace MemoryECC |
| 3944 | } // namespace Memory |
| 3945 | } // namespace openbmc_project |
| 3946 | } // namespace xyz |
| 3947 | |
| 3948 | namespace details |
| 3949 | { |
| 3950 | |
| 3951 | template <> |
| 3952 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Memory::MemoryECC:: |
| 3953 | Error::isLoggingLimitReached> |
| 3954 | { |
| 3955 | using type = xyz::openbmc_project::Memory::MemoryECC::isLoggingLimitReached; |
| 3956 | }; |
| 3957 | |
| 3958 | } // namespace details |
| 3959 | |
| 3960 | namespace xyz |
| 3961 | { |
| 3962 | namespace openbmc_project |
| 3963 | { |
| 3964 | namespace Memory |
| 3965 | { |
| 3966 | namespace MemoryECC |
| 3967 | { |
| 3968 | namespace _ceCount |
| 3969 | { |
| 3970 | |
| 3971 | } // namespace _ceCount |
| 3972 | |
| 3973 | struct ceCount |
| 3974 | { |
| 3975 | static constexpr auto L = level::ERR; |
| 3976 | using metadata_types = std::tuple<>; |
| 3977 | }; |
| 3978 | |
| 3979 | } // namespace MemoryECC |
| 3980 | } // namespace Memory |
| 3981 | } // namespace openbmc_project |
| 3982 | } // namespace xyz |
| 3983 | |
| 3984 | namespace details |
| 3985 | { |
| 3986 | |
| 3987 | template <> |
| 3988 | struct map_exception_type< |
| 3989 | sdbusplus::xyz::openbmc_project::Memory::MemoryECC::Error::ceCount> |
| 3990 | { |
| 3991 | using type = xyz::openbmc_project::Memory::MemoryECC::ceCount; |
| 3992 | }; |
| 3993 | |
| 3994 | } // namespace details |
| 3995 | |
| 3996 | namespace xyz |
| 3997 | { |
| 3998 | namespace openbmc_project |
| 3999 | { |
| 4000 | namespace Memory |
| 4001 | { |
| 4002 | namespace MemoryECC |
| 4003 | { |
| 4004 | namespace _ueCount |
| 4005 | { |
| 4006 | |
| 4007 | } // namespace _ueCount |
| 4008 | |
| 4009 | struct ueCount |
| 4010 | { |
| 4011 | static constexpr auto L = level::ERR; |
| 4012 | using metadata_types = std::tuple<>; |
| 4013 | }; |
| 4014 | |
| 4015 | } // namespace MemoryECC |
| 4016 | } // namespace Memory |
| 4017 | } // namespace openbmc_project |
| 4018 | } // namespace xyz |
| 4019 | |
| 4020 | namespace details |
| 4021 | { |
| 4022 | |
| 4023 | template <> |
| 4024 | struct map_exception_type< |
| 4025 | sdbusplus::xyz::openbmc_project::Memory::MemoryECC::Error::ueCount> |
| 4026 | { |
| 4027 | using type = xyz::openbmc_project::Memory::MemoryECC::ueCount; |
| 4028 | }; |
| 4029 | |
| 4030 | } // namespace details |
| 4031 | |
| 4032 | namespace xyz |
| 4033 | { |
| 4034 | namespace openbmc_project |
| 4035 | { |
| 4036 | namespace Nvme |
| 4037 | { |
| 4038 | namespace Status |
| 4039 | { |
| 4040 | namespace _CapacityFault |
| 4041 | { |
| 4042 | |
| 4043 | } // namespace _CapacityFault |
| 4044 | |
| 4045 | struct CapacityFault |
| 4046 | { |
| 4047 | static constexpr auto L = level::ERR; |
| 4048 | using metadata_types = std::tuple<>; |
| 4049 | }; |
| 4050 | |
| 4051 | } // namespace Status |
| 4052 | } // namespace Nvme |
| 4053 | } // namespace openbmc_project |
| 4054 | } // namespace xyz |
| 4055 | |
| 4056 | namespace details |
| 4057 | { |
| 4058 | |
| 4059 | template <> |
| 4060 | struct map_exception_type< |
| 4061 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::CapacityFault> |
| 4062 | { |
| 4063 | using type = xyz::openbmc_project::Nvme::Status::CapacityFault; |
| 4064 | }; |
| 4065 | |
| 4066 | } // namespace details |
| 4067 | |
| 4068 | namespace xyz |
| 4069 | { |
| 4070 | namespace openbmc_project |
| 4071 | { |
| 4072 | namespace Nvme |
| 4073 | { |
| 4074 | namespace Status |
| 4075 | { |
| 4076 | namespace _TemperatureFault |
| 4077 | { |
| 4078 | |
| 4079 | } // namespace _TemperatureFault |
| 4080 | |
| 4081 | struct TemperatureFault |
| 4082 | { |
| 4083 | static constexpr auto L = level::ERR; |
| 4084 | using metadata_types = std::tuple<>; |
| 4085 | }; |
| 4086 | |
| 4087 | } // namespace Status |
| 4088 | } // namespace Nvme |
| 4089 | } // namespace openbmc_project |
| 4090 | } // namespace xyz |
| 4091 | |
| 4092 | namespace details |
| 4093 | { |
| 4094 | |
| 4095 | template <> |
| 4096 | struct map_exception_type< |
| 4097 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::TemperatureFault> |
| 4098 | { |
| 4099 | using type = xyz::openbmc_project::Nvme::Status::TemperatureFault; |
| 4100 | }; |
| 4101 | |
| 4102 | } // namespace details |
| 4103 | |
| 4104 | namespace xyz |
| 4105 | { |
| 4106 | namespace openbmc_project |
| 4107 | { |
| 4108 | namespace Nvme |
| 4109 | { |
| 4110 | namespace Status |
| 4111 | { |
| 4112 | namespace _DegradesFault |
| 4113 | { |
| 4114 | |
| 4115 | } // namespace _DegradesFault |
| 4116 | |
| 4117 | struct DegradesFault |
| 4118 | { |
| 4119 | static constexpr auto L = level::ERR; |
| 4120 | using metadata_types = std::tuple<>; |
| 4121 | }; |
| 4122 | |
| 4123 | } // namespace Status |
| 4124 | } // namespace Nvme |
| 4125 | } // namespace openbmc_project |
| 4126 | } // namespace xyz |
| 4127 | |
| 4128 | namespace details |
| 4129 | { |
| 4130 | |
| 4131 | template <> |
| 4132 | struct map_exception_type< |
| 4133 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::DegradesFault> |
| 4134 | { |
| 4135 | using type = xyz::openbmc_project::Nvme::Status::DegradesFault; |
| 4136 | }; |
| 4137 | |
| 4138 | } // namespace details |
| 4139 | |
| 4140 | namespace xyz |
| 4141 | { |
| 4142 | namespace openbmc_project |
| 4143 | { |
| 4144 | namespace Nvme |
| 4145 | { |
| 4146 | namespace Status |
| 4147 | { |
| 4148 | namespace _MediaFault |
| 4149 | { |
| 4150 | |
| 4151 | } // namespace _MediaFault |
| 4152 | |
| 4153 | struct MediaFault |
| 4154 | { |
| 4155 | static constexpr auto L = level::ERR; |
| 4156 | using metadata_types = std::tuple<>; |
| 4157 | }; |
| 4158 | |
| 4159 | } // namespace Status |
| 4160 | } // namespace Nvme |
| 4161 | } // namespace openbmc_project |
| 4162 | } // namespace xyz |
| 4163 | |
| 4164 | namespace details |
| 4165 | { |
| 4166 | |
| 4167 | template <> |
| 4168 | struct map_exception_type< |
| 4169 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::MediaFault> |
| 4170 | { |
| 4171 | using type = xyz::openbmc_project::Nvme::Status::MediaFault; |
| 4172 | }; |
| 4173 | |
| 4174 | } // namespace details |
| 4175 | |
| 4176 | namespace xyz |
| 4177 | { |
| 4178 | namespace openbmc_project |
| 4179 | { |
| 4180 | namespace Nvme |
| 4181 | { |
| 4182 | namespace Status |
| 4183 | { |
| 4184 | namespace _BackupDeviceFault |
| 4185 | { |
| 4186 | |
| 4187 | } // namespace _BackupDeviceFault |
| 4188 | |
| 4189 | struct BackupDeviceFault |
| 4190 | { |
| 4191 | static constexpr auto L = level::ERR; |
| 4192 | using metadata_types = std::tuple<>; |
| 4193 | }; |
| 4194 | |
| 4195 | } // namespace Status |
| 4196 | } // namespace Nvme |
| 4197 | } // namespace openbmc_project |
| 4198 | } // namespace xyz |
| 4199 | |
| 4200 | namespace details |
| 4201 | { |
| 4202 | |
| 4203 | template <> |
| 4204 | struct map_exception_type< |
| 4205 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::BackupDeviceFault> |
| 4206 | { |
| 4207 | using type = xyz::openbmc_project::Nvme::Status::BackupDeviceFault; |
| 4208 | }; |
| 4209 | |
| 4210 | } // namespace details |
| 4211 | |
| 4212 | namespace xyz |
| 4213 | { |
| 4214 | namespace openbmc_project |
| 4215 | { |
| 4216 | namespace Sensor |
| 4217 | { |
| 4218 | namespace Device |
| 4219 | { |
| 4220 | namespace _ReadFailure |
| 4221 | { |
| 4222 | |
| 4223 | } // namespace _ReadFailure |
| 4224 | |
| 4225 | struct ReadFailure |
| 4226 | { |
| 4227 | static constexpr auto L = level::ERR; |
| 4228 | using CALLOUT_ERRNO = |
| 4229 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 4230 | using CALLOUT_DEVICE_PATH = |
| 4231 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 4232 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 4233 | }; |
| 4234 | |
| 4235 | } // namespace Device |
| 4236 | } // namespace Sensor |
| 4237 | } // namespace openbmc_project |
| 4238 | } // namespace xyz |
| 4239 | |
| 4240 | namespace details |
| 4241 | { |
| 4242 | |
| 4243 | template <> |
| 4244 | struct map_exception_type< |
| 4245 | sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure> |
| 4246 | { |
| 4247 | using type = xyz::openbmc_project::Sensor::Device::ReadFailure; |
| 4248 | }; |
| 4249 | |
| 4250 | } // namespace details |
| 4251 | |
| 4252 | namespace xyz |
| 4253 | { |
| 4254 | namespace openbmc_project |
| 4255 | { |
| 4256 | namespace Sensor |
| 4257 | { |
| 4258 | namespace Threshold |
| 4259 | { |
| 4260 | namespace _CriticalHigh |
| 4261 | { |
| 4262 | |
| 4263 | struct SENSOR_DATA |
| 4264 | { |
| 4265 | /* |
| 4266 | * We can't use -fsanitize=undefined if we declare a |
| 4267 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4268 | * mako template lookups. |
| 4269 | */ |
| 4270 | static constexpr auto str_short = "SENSOR_DATA"; |
| 4271 | using type = |
| 4272 | std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>; |
| 4273 | explicit constexpr SENSOR_DATA(const char* a) : |
| 4274 | _entry(entry("SENSOR_DATA=%s", a)){}; |
| 4275 | type _entry; |
| 4276 | }; |
| 4277 | |
| 4278 | } // namespace _CriticalHigh |
| 4279 | |
| 4280 | struct CriticalHigh |
| 4281 | { |
| 4282 | static constexpr auto L = level::ERR; |
| 4283 | using SENSOR_DATA = _CriticalHigh::SENSOR_DATA; |
| 4284 | using metadata_types = std::tuple<SENSOR_DATA>; |
| 4285 | }; |
| 4286 | |
| 4287 | } // namespace Threshold |
| 4288 | } // namespace Sensor |
| 4289 | } // namespace openbmc_project |
| 4290 | } // namespace xyz |
| 4291 | |
| 4292 | namespace details |
| 4293 | { |
| 4294 | |
| 4295 | template <> |
| 4296 | struct map_exception_type< |
| 4297 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh> |
| 4298 | { |
| 4299 | using type = xyz::openbmc_project::Sensor::Threshold::CriticalHigh; |
| 4300 | }; |
| 4301 | |
| 4302 | } // namespace details |
| 4303 | |
| 4304 | namespace xyz |
| 4305 | { |
| 4306 | namespace openbmc_project |
| 4307 | { |
| 4308 | namespace Sensor |
| 4309 | { |
| 4310 | namespace Threshold |
| 4311 | { |
| 4312 | namespace _CriticalLow |
| 4313 | { |
| 4314 | |
| 4315 | struct SENSOR_DATA |
| 4316 | { |
| 4317 | /* |
| 4318 | * We can't use -fsanitize=undefined if we declare a |
| 4319 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4320 | * mako template lookups. |
| 4321 | */ |
| 4322 | static constexpr auto str_short = "SENSOR_DATA"; |
| 4323 | using type = |
| 4324 | std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>; |
| 4325 | explicit constexpr SENSOR_DATA(const char* a) : |
| 4326 | _entry(entry("SENSOR_DATA=%s", a)){}; |
| 4327 | type _entry; |
| 4328 | }; |
| 4329 | |
| 4330 | } // namespace _CriticalLow |
| 4331 | |
| 4332 | struct CriticalLow |
| 4333 | { |
| 4334 | static constexpr auto L = level::ERR; |
| 4335 | using SENSOR_DATA = _CriticalLow::SENSOR_DATA; |
| 4336 | using metadata_types = std::tuple<SENSOR_DATA>; |
| 4337 | }; |
| 4338 | |
| 4339 | } // namespace Threshold |
| 4340 | } // namespace Sensor |
| 4341 | } // namespace openbmc_project |
| 4342 | } // namespace xyz |
| 4343 | |
| 4344 | namespace details |
| 4345 | { |
| 4346 | |
| 4347 | template <> |
| 4348 | struct map_exception_type< |
| 4349 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalLow> |
| 4350 | { |
| 4351 | using type = xyz::openbmc_project::Sensor::Threshold::CriticalLow; |
| 4352 | }; |
| 4353 | |
| 4354 | } // namespace details |
| 4355 | |
| 4356 | namespace xyz |
| 4357 | { |
| 4358 | namespace openbmc_project |
| 4359 | { |
| 4360 | namespace Smbios |
| 4361 | { |
| 4362 | namespace MDR_V2 |
| 4363 | { |
| 4364 | namespace _InvalidParameter |
| 4365 | { |
| 4366 | |
| 4367 | } // namespace _InvalidParameter |
| 4368 | |
| 4369 | struct InvalidParameter |
| 4370 | { |
| 4371 | static constexpr auto L = level::ERR; |
| 4372 | using metadata_types = std::tuple<>; |
| 4373 | }; |
| 4374 | |
| 4375 | } // namespace MDR_V2 |
| 4376 | } // namespace Smbios |
| 4377 | } // namespace openbmc_project |
| 4378 | } // namespace xyz |
| 4379 | |
| 4380 | namespace details |
| 4381 | { |
| 4382 | |
| 4383 | template <> |
| 4384 | struct map_exception_type< |
| 4385 | sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::InvalidParameter> |
| 4386 | { |
| 4387 | using type = xyz::openbmc_project::Smbios::MDR_V2::InvalidParameter; |
| 4388 | }; |
| 4389 | |
| 4390 | } // namespace details |
| 4391 | |
| 4392 | namespace xyz |
| 4393 | { |
| 4394 | namespace openbmc_project |
| 4395 | { |
| 4396 | namespace Smbios |
| 4397 | { |
| 4398 | namespace MDR_V2 |
| 4399 | { |
| 4400 | namespace _UpdateInProgress |
| 4401 | { |
| 4402 | |
| 4403 | } // namespace _UpdateInProgress |
| 4404 | |
| 4405 | struct UpdateInProgress |
| 4406 | { |
| 4407 | static constexpr auto L = level::ERR; |
| 4408 | using metadata_types = std::tuple<>; |
| 4409 | }; |
| 4410 | |
| 4411 | } // namespace MDR_V2 |
| 4412 | } // namespace Smbios |
| 4413 | } // namespace openbmc_project |
| 4414 | } // namespace xyz |
| 4415 | |
| 4416 | namespace details |
| 4417 | { |
| 4418 | |
| 4419 | template <> |
| 4420 | struct map_exception_type< |
| 4421 | sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::UpdateInProgress> |
| 4422 | { |
| 4423 | using type = xyz::openbmc_project::Smbios::MDR_V2::UpdateInProgress; |
| 4424 | }; |
| 4425 | |
| 4426 | } // namespace details |
| 4427 | |
| 4428 | namespace xyz |
| 4429 | { |
| 4430 | namespace openbmc_project |
| 4431 | { |
| 4432 | namespace Smbios |
| 4433 | { |
| 4434 | namespace MDR_V2 |
| 4435 | { |
| 4436 | namespace _InvalidId |
| 4437 | { |
| 4438 | |
| 4439 | } // namespace _InvalidId |
| 4440 | |
| 4441 | struct InvalidId |
| 4442 | { |
| 4443 | static constexpr auto L = level::ERR; |
| 4444 | using metadata_types = std::tuple<>; |
| 4445 | }; |
| 4446 | |
| 4447 | } // namespace MDR_V2 |
| 4448 | } // namespace Smbios |
| 4449 | } // namespace openbmc_project |
| 4450 | } // namespace xyz |
| 4451 | |
| 4452 | namespace details |
| 4453 | { |
| 4454 | |
| 4455 | template <> |
| 4456 | struct map_exception_type< |
| 4457 | sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::InvalidId> |
| 4458 | { |
| 4459 | using type = xyz::openbmc_project::Smbios::MDR_V2::InvalidId; |
| 4460 | }; |
| 4461 | |
| 4462 | } // namespace details |
| 4463 | |
| 4464 | namespace xyz |
| 4465 | { |
| 4466 | namespace openbmc_project |
| 4467 | { |
| 4468 | namespace Software |
| 4469 | { |
| 4470 | namespace Version |
| 4471 | { |
| 4472 | namespace _Incompatible |
| 4473 | { |
| 4474 | |
| 4475 | struct MIN_VERSION |
| 4476 | { |
| 4477 | /* |
| 4478 | * We can't use -fsanitize=undefined if we declare a |
| 4479 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4480 | * mako template lookups. |
| 4481 | */ |
| 4482 | static constexpr auto str_short = "MIN_VERSION"; |
| 4483 | using type = |
| 4484 | std::tuple<std::decay_t<decltype("MIN_VERSION=%s")>, const char*>; |
| 4485 | explicit constexpr MIN_VERSION(const char* a) : |
| 4486 | _entry(entry("MIN_VERSION=%s", a)){}; |
| 4487 | type _entry; |
| 4488 | }; |
| 4489 | struct ACTUAL_VERSION |
| 4490 | { |
| 4491 | /* |
| 4492 | * We can't use -fsanitize=undefined if we declare a |
| 4493 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4494 | * mako template lookups. |
| 4495 | */ |
| 4496 | static constexpr auto str_short = "ACTUAL_VERSION"; |
| 4497 | using type = |
| 4498 | std::tuple<std::decay_t<decltype("ACTUAL_VERSION=%s")>, const char*>; |
| 4499 | explicit constexpr ACTUAL_VERSION(const char* a) : |
| 4500 | _entry(entry("ACTUAL_VERSION=%s", a)){}; |
| 4501 | type _entry; |
| 4502 | }; |
| 4503 | struct VERSION_PURPOSE |
| 4504 | { |
| 4505 | /* |
| 4506 | * We can't use -fsanitize=undefined if we declare a |
| 4507 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4508 | * mako template lookups. |
| 4509 | */ |
| 4510 | static constexpr auto str_short = "VERSION_PURPOSE"; |
| 4511 | using type = |
| 4512 | std::tuple<std::decay_t<decltype("VERSION_PURPOSE=%s")>, const char*>; |
| 4513 | explicit constexpr VERSION_PURPOSE(const char* a) : |
| 4514 | _entry(entry("VERSION_PURPOSE=%s", a)){}; |
| 4515 | type _entry; |
| 4516 | }; |
| 4517 | |
| 4518 | } // namespace _Incompatible |
| 4519 | |
| 4520 | struct Incompatible |
| 4521 | { |
| 4522 | static constexpr auto L = level::ERR; |
| 4523 | using MIN_VERSION = _Incompatible::MIN_VERSION; |
| 4524 | using ACTUAL_VERSION = _Incompatible::ACTUAL_VERSION; |
| 4525 | using VERSION_PURPOSE = _Incompatible::VERSION_PURPOSE; |
| 4526 | using metadata_types = |
| 4527 | std::tuple<MIN_VERSION, ACTUAL_VERSION, VERSION_PURPOSE>; |
| 4528 | }; |
| 4529 | |
| 4530 | } // namespace Version |
| 4531 | } // namespace Software |
| 4532 | } // namespace openbmc_project |
| 4533 | } // namespace xyz |
| 4534 | |
| 4535 | namespace details |
| 4536 | { |
| 4537 | |
| 4538 | template <> |
| 4539 | struct map_exception_type< |
| 4540 | sdbusplus::xyz::openbmc_project::Software::Version::Error::Incompatible> |
| 4541 | { |
| 4542 | using type = xyz::openbmc_project::Software::Version::Incompatible; |
| 4543 | }; |
| 4544 | |
| 4545 | } // namespace details |
| 4546 | |
| 4547 | namespace xyz |
| 4548 | { |
| 4549 | namespace openbmc_project |
| 4550 | { |
| 4551 | namespace Software |
| 4552 | { |
| 4553 | namespace Version |
| 4554 | { |
| 4555 | namespace _AlreadyExists |
| 4556 | { |
| 4557 | |
| 4558 | struct IMAGE_VERSION |
| 4559 | { |
| 4560 | /* |
| 4561 | * We can't use -fsanitize=undefined if we declare a |
| 4562 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4563 | * mako template lookups. |
| 4564 | */ |
| 4565 | static constexpr auto str_short = "IMAGE_VERSION"; |
| 4566 | using type = |
| 4567 | std::tuple<std::decay_t<decltype("IMAGE_VERSION=%s")>, const char*>; |
| 4568 | explicit constexpr IMAGE_VERSION(const char* a) : |
| 4569 | _entry(entry("IMAGE_VERSION=%s", a)){}; |
| 4570 | type _entry; |
| 4571 | }; |
| 4572 | |
| 4573 | } // namespace _AlreadyExists |
| 4574 | |
| 4575 | struct AlreadyExists |
| 4576 | { |
| 4577 | static constexpr auto L = level::ERR; |
| 4578 | using IMAGE_VERSION = _AlreadyExists::IMAGE_VERSION; |
| 4579 | using metadata_types = std::tuple<IMAGE_VERSION>; |
| 4580 | }; |
| 4581 | |
| 4582 | } // namespace Version |
| 4583 | } // namespace Software |
| 4584 | } // namespace openbmc_project |
| 4585 | } // namespace xyz |
| 4586 | |
| 4587 | namespace details |
| 4588 | { |
| 4589 | |
| 4590 | template <> |
| 4591 | struct map_exception_type< |
| 4592 | sdbusplus::xyz::openbmc_project::Software::Version::Error::AlreadyExists> |
| 4593 | { |
| 4594 | using type = xyz::openbmc_project::Software::Version::AlreadyExists; |
| 4595 | }; |
| 4596 | |
| 4597 | } // namespace details |
| 4598 | |
| 4599 | namespace xyz |
| 4600 | { |
| 4601 | namespace openbmc_project |
| 4602 | { |
| 4603 | namespace State |
| 4604 | { |
| 4605 | namespace Host |
| 4606 | { |
| 4607 | namespace _SoftOffTimeout |
| 4608 | { |
| 4609 | |
| 4610 | } // namespace _SoftOffTimeout |
| 4611 | |
| 4612 | struct SoftOffTimeout |
| 4613 | { |
| 4614 | static constexpr auto L = level::ERR; |
| 4615 | using TIMEOUT_IN_MSEC = |
| 4616 | xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC; |
| 4617 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
| 4618 | }; |
| 4619 | |
| 4620 | } // namespace Host |
| 4621 | } // namespace State |
| 4622 | } // namespace openbmc_project |
| 4623 | } // namespace xyz |
| 4624 | |
| 4625 | namespace details |
| 4626 | { |
| 4627 | |
| 4628 | template <> |
| 4629 | struct map_exception_type< |
| 4630 | sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout> |
| 4631 | { |
| 4632 | using type = xyz::openbmc_project::State::Host::SoftOffTimeout; |
| 4633 | }; |
| 4634 | |
| 4635 | } // namespace details |
| 4636 | |
| 4637 | namespace xyz |
| 4638 | { |
| 4639 | namespace openbmc_project |
| 4640 | { |
| 4641 | namespace State |
| 4642 | { |
| 4643 | namespace SystemdTarget |
| 4644 | { |
| 4645 | namespace _Failure |
| 4646 | { |
| 4647 | |
| 4648 | struct SYSTEMD_RESULT |
| 4649 | { |
| 4650 | /* |
| 4651 | * We can't use -fsanitize=undefined if we declare a |
| 4652 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4653 | * mako template lookups. |
| 4654 | */ |
| 4655 | static constexpr auto str_short = "SYSTEMD_RESULT"; |
| 4656 | using type = |
| 4657 | std::tuple<std::decay_t<decltype("SYSTEMD_RESULT=%s")>, const char*>; |
| 4658 | explicit constexpr SYSTEMD_RESULT(const char* a) : |
| 4659 | _entry(entry("SYSTEMD_RESULT=%s", a)){}; |
| 4660 | type _entry; |
| 4661 | }; |
| 4662 | |
| 4663 | } // namespace _Failure |
| 4664 | |
| 4665 | struct Failure |
| 4666 | { |
| 4667 | static constexpr auto L = level::ERR; |
| 4668 | using SYSTEMD_RESULT = _Failure::SYSTEMD_RESULT; |
| 4669 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 4670 | }; |
| 4671 | |
| 4672 | } // namespace SystemdTarget |
| 4673 | } // namespace State |
| 4674 | } // namespace openbmc_project |
| 4675 | } // namespace xyz |
| 4676 | |
| 4677 | namespace details |
| 4678 | { |
| 4679 | |
| 4680 | template <> |
| 4681 | struct map_exception_type< |
| 4682 | sdbusplus::xyz::openbmc_project::State::SystemdTarget::Error::Failure> |
| 4683 | { |
| 4684 | using type = xyz::openbmc_project::State::SystemdTarget::Failure; |
| 4685 | }; |
| 4686 | |
| 4687 | } // namespace details |
| 4688 | |
| 4689 | namespace xyz |
| 4690 | { |
| 4691 | namespace openbmc_project |
| 4692 | { |
| 4693 | namespace State |
| 4694 | { |
| 4695 | namespace Shutdown |
| 4696 | { |
| 4697 | namespace Inventory |
| 4698 | { |
| 4699 | namespace _Fan |
| 4700 | { |
| 4701 | |
| 4702 | } // namespace _Fan |
| 4703 | |
| 4704 | struct Fan |
| 4705 | { |
| 4706 | static constexpr auto L = level::ERR; |
| 4707 | using metadata_types = std::tuple<>; |
| 4708 | }; |
| 4709 | |
| 4710 | } // namespace Inventory |
| 4711 | } // namespace Shutdown |
| 4712 | } // namespace State |
| 4713 | } // namespace openbmc_project |
| 4714 | } // namespace xyz |
| 4715 | |
| 4716 | namespace details |
| 4717 | { |
| 4718 | |
| 4719 | template <> |
| 4720 | struct map_exception_type< |
| 4721 | sdbusplus::xyz::openbmc_project::State::Shutdown::Inventory::Error::Fan> |
| 4722 | { |
| 4723 | using type = xyz::openbmc_project::State::Shutdown::Inventory::Fan; |
| 4724 | }; |
| 4725 | |
| 4726 | } // namespace details |
| 4727 | |
| 4728 | namespace xyz |
| 4729 | { |
| 4730 | namespace openbmc_project |
| 4731 | { |
| 4732 | namespace State |
| 4733 | { |
| 4734 | namespace Shutdown |
| 4735 | { |
| 4736 | namespace ThermalEvent |
| 4737 | { |
| 4738 | namespace _Processor |
| 4739 | { |
| 4740 | |
| 4741 | } // namespace _Processor |
| 4742 | |
| 4743 | struct Processor |
| 4744 | { |
| 4745 | static constexpr auto L = level::ERR; |
| 4746 | using metadata_types = std::tuple<>; |
| 4747 | }; |
| 4748 | |
| 4749 | } // namespace ThermalEvent |
| 4750 | } // namespace Shutdown |
| 4751 | } // namespace State |
| 4752 | } // namespace openbmc_project |
| 4753 | } // namespace xyz |
| 4754 | |
| 4755 | namespace details |
| 4756 | { |
| 4757 | |
| 4758 | template <> |
| 4759 | struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown:: |
| 4760 | ThermalEvent::Error::Processor> |
| 4761 | { |
| 4762 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Processor; |
| 4763 | }; |
| 4764 | |
| 4765 | } // namespace details |
| 4766 | |
| 4767 | namespace xyz |
| 4768 | { |
| 4769 | namespace openbmc_project |
| 4770 | { |
| 4771 | namespace State |
| 4772 | { |
| 4773 | namespace Shutdown |
| 4774 | { |
| 4775 | namespace ThermalEvent |
| 4776 | { |
| 4777 | namespace _GPU |
| 4778 | { |
| 4779 | |
| 4780 | } // namespace _GPU |
| 4781 | |
| 4782 | struct GPU |
| 4783 | { |
| 4784 | static constexpr auto L = level::ERR; |
| 4785 | using metadata_types = std::tuple<>; |
| 4786 | }; |
| 4787 | |
| 4788 | } // namespace ThermalEvent |
| 4789 | } // namespace Shutdown |
| 4790 | } // namespace State |
| 4791 | } // namespace openbmc_project |
| 4792 | } // namespace xyz |
| 4793 | |
| 4794 | namespace details |
| 4795 | { |
| 4796 | |
| 4797 | template <> |
| 4798 | struct map_exception_type< |
| 4799 | sdbusplus::xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::GPU> |
| 4800 | { |
| 4801 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::GPU; |
| 4802 | }; |
| 4803 | |
| 4804 | } // namespace details |
| 4805 | |
| 4806 | namespace xyz |
| 4807 | { |
| 4808 | namespace openbmc_project |
| 4809 | { |
| 4810 | namespace State |
| 4811 | { |
| 4812 | namespace Shutdown |
| 4813 | { |
| 4814 | namespace ThermalEvent |
| 4815 | { |
| 4816 | namespace _Ambient |
| 4817 | { |
| 4818 | |
| 4819 | } // namespace _Ambient |
| 4820 | |
| 4821 | struct Ambient |
| 4822 | { |
| 4823 | static constexpr auto L = level::ERR; |
| 4824 | using metadata_types = std::tuple<>; |
| 4825 | }; |
| 4826 | |
| 4827 | } // namespace ThermalEvent |
| 4828 | } // namespace Shutdown |
| 4829 | } // namespace State |
| 4830 | } // namespace openbmc_project |
| 4831 | } // namespace xyz |
| 4832 | |
| 4833 | namespace details |
| 4834 | { |
| 4835 | |
| 4836 | template <> |
| 4837 | struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown:: |
| 4838 | ThermalEvent::Error::Ambient> |
| 4839 | { |
| 4840 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Ambient; |
| 4841 | }; |
| 4842 | |
| 4843 | } // namespace details |
| 4844 | |
| 4845 | namespace xyz |
| 4846 | { |
| 4847 | namespace openbmc_project |
| 4848 | { |
| 4849 | namespace State |
| 4850 | { |
| 4851 | namespace Shutdown |
| 4852 | { |
| 4853 | namespace Power |
| 4854 | { |
| 4855 | namespace _Fault |
| 4856 | { |
| 4857 | |
| 4858 | } // namespace _Fault |
| 4859 | |
| 4860 | struct Fault |
| 4861 | { |
| 4862 | static constexpr auto L = level::ERR; |
| 4863 | using metadata_types = std::tuple<>; |
| 4864 | }; |
| 4865 | |
| 4866 | } // namespace Power |
| 4867 | } // namespace Shutdown |
| 4868 | } // namespace State |
| 4869 | } // namespace openbmc_project |
| 4870 | } // namespace xyz |
| 4871 | |
| 4872 | namespace details |
| 4873 | { |
| 4874 | |
| 4875 | template <> |
| 4876 | struct map_exception_type< |
| 4877 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Fault> |
| 4878 | { |
| 4879 | using type = xyz::openbmc_project::State::Shutdown::Power::Fault; |
| 4880 | }; |
| 4881 | |
| 4882 | } // namespace details |
| 4883 | |
| 4884 | namespace xyz |
| 4885 | { |
| 4886 | namespace openbmc_project |
| 4887 | { |
| 4888 | namespace State |
| 4889 | { |
| 4890 | namespace Shutdown |
| 4891 | { |
| 4892 | namespace Power |
| 4893 | { |
| 4894 | namespace _Blackout |
| 4895 | { |
| 4896 | |
| 4897 | } // namespace _Blackout |
| 4898 | |
| 4899 | struct Blackout |
| 4900 | { |
| 4901 | static constexpr auto L = level::ERR; |
| 4902 | using metadata_types = std::tuple<>; |
| 4903 | }; |
| 4904 | |
| 4905 | } // namespace Power |
| 4906 | } // namespace Shutdown |
| 4907 | } // namespace State |
| 4908 | } // namespace openbmc_project |
| 4909 | } // namespace xyz |
| 4910 | |
| 4911 | namespace details |
| 4912 | { |
| 4913 | |
| 4914 | template <> |
| 4915 | struct map_exception_type< |
| 4916 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Blackout> |
| 4917 | { |
| 4918 | using type = xyz::openbmc_project::State::Shutdown::Power::Blackout; |
| 4919 | }; |
| 4920 | |
| 4921 | } // namespace details |
| 4922 | |
| 4923 | namespace xyz |
| 4924 | { |
| 4925 | namespace openbmc_project |
| 4926 | { |
| 4927 | namespace State |
| 4928 | { |
| 4929 | namespace Shutdown |
| 4930 | { |
| 4931 | namespace Power |
| 4932 | { |
| 4933 | namespace _Regulator |
| 4934 | { |
| 4935 | |
| 4936 | } // namespace _Regulator |
| 4937 | |
| 4938 | struct Regulator |
| 4939 | { |
| 4940 | static constexpr auto L = level::ERR; |
| 4941 | using metadata_types = std::tuple<>; |
| 4942 | }; |
| 4943 | |
| 4944 | } // namespace Power |
| 4945 | } // namespace Shutdown |
| 4946 | } // namespace State |
| 4947 | } // namespace openbmc_project |
| 4948 | } // namespace xyz |
| 4949 | |
| 4950 | namespace details |
| 4951 | { |
| 4952 | |
| 4953 | template <> |
| 4954 | struct map_exception_type< |
| 4955 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Regulator> |
| 4956 | { |
| 4957 | using type = xyz::openbmc_project::State::Shutdown::Power::Regulator; |
| 4958 | }; |
| 4959 | |
| 4960 | } // namespace details |
| 4961 | |
| 4962 | namespace xyz |
| 4963 | { |
| 4964 | namespace openbmc_project |
| 4965 | { |
| 4966 | namespace User |
| 4967 | { |
| 4968 | namespace Common |
| 4969 | { |
| 4970 | namespace _UserNameExists |
| 4971 | { |
| 4972 | |
| 4973 | } // namespace _UserNameExists |
| 4974 | |
| 4975 | struct UserNameExists |
| 4976 | { |
| 4977 | static constexpr auto L = level::ERR; |
| 4978 | using metadata_types = std::tuple<>; |
| 4979 | }; |
| 4980 | |
| 4981 | } // namespace Common |
| 4982 | } // namespace User |
| 4983 | } // namespace openbmc_project |
| 4984 | } // namespace xyz |
| 4985 | |
| 4986 | namespace details |
| 4987 | { |
| 4988 | |
| 4989 | template <> |
| 4990 | struct map_exception_type< |
| 4991 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameExists> |
| 4992 | { |
| 4993 | using type = xyz::openbmc_project::User::Common::UserNameExists; |
| 4994 | }; |
| 4995 | |
| 4996 | } // namespace details |
| 4997 | |
| 4998 | namespace xyz |
| 4999 | { |
| 5000 | namespace openbmc_project |
| 5001 | { |
| 5002 | namespace User |
| 5003 | { |
| 5004 | namespace Common |
| 5005 | { |
| 5006 | namespace _UserNameDoesNotExist |
| 5007 | { |
| 5008 | |
| 5009 | } // namespace _UserNameDoesNotExist |
| 5010 | |
| 5011 | struct UserNameDoesNotExist |
| 5012 | { |
| 5013 | static constexpr auto L = level::ERR; |
| 5014 | using metadata_types = std::tuple<>; |
| 5015 | }; |
| 5016 | |
| 5017 | } // namespace Common |
| 5018 | } // namespace User |
| 5019 | } // namespace openbmc_project |
| 5020 | } // namespace xyz |
| 5021 | |
| 5022 | namespace details |
| 5023 | { |
| 5024 | |
| 5025 | template <> |
| 5026 | struct map_exception_type< |
| 5027 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameDoesNotExist> |
| 5028 | { |
| 5029 | using type = xyz::openbmc_project::User::Common::UserNameDoesNotExist; |
| 5030 | }; |
| 5031 | |
| 5032 | } // namespace details |
| 5033 | |
| 5034 | namespace xyz |
| 5035 | { |
| 5036 | namespace openbmc_project |
| 5037 | { |
| 5038 | namespace User |
| 5039 | { |
| 5040 | namespace Common |
| 5041 | { |
| 5042 | namespace _UserNameGroupFail |
| 5043 | { |
| 5044 | |
| 5045 | struct REASON |
| 5046 | { |
| 5047 | /* |
| 5048 | * We can't use -fsanitize=undefined if we declare a |
| 5049 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5050 | * mako template lookups. |
| 5051 | */ |
| 5052 | static constexpr auto str_short = "REASON "; |
| 5053 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 5054 | explicit constexpr REASON(const char* a) : |
| 5055 | _entry(entry("REASON = %s", a)){}; |
| 5056 | type _entry; |
| 5057 | }; |
| 5058 | |
| 5059 | } // namespace _UserNameGroupFail |
| 5060 | |
| 5061 | struct UserNameGroupFail |
| 5062 | { |
| 5063 | static constexpr auto L = level::ERR; |
| 5064 | using REASON = _UserNameGroupFail::REASON; |
| 5065 | using metadata_types = std::tuple<REASON>; |
| 5066 | }; |
| 5067 | |
| 5068 | } // namespace Common |
| 5069 | } // namespace User |
| 5070 | } // namespace openbmc_project |
| 5071 | } // namespace xyz |
| 5072 | |
| 5073 | namespace details |
| 5074 | { |
| 5075 | |
| 5076 | template <> |
| 5077 | struct map_exception_type< |
| 5078 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameGroupFail> |
| 5079 | { |
| 5080 | using type = xyz::openbmc_project::User::Common::UserNameGroupFail; |
| 5081 | }; |
| 5082 | |
| 5083 | } // namespace details |
| 5084 | |
| 5085 | namespace xyz |
| 5086 | { |
| 5087 | namespace openbmc_project |
| 5088 | { |
| 5089 | namespace User |
| 5090 | { |
| 5091 | namespace Common |
| 5092 | { |
| 5093 | namespace _UserNamePrivFail |
| 5094 | { |
| 5095 | |
| 5096 | struct REASON |
| 5097 | { |
| 5098 | /* |
| 5099 | * We can't use -fsanitize=undefined if we declare a |
| 5100 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5101 | * mako template lookups. |
| 5102 | */ |
| 5103 | static constexpr auto str_short = "REASON "; |
| 5104 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 5105 | explicit constexpr REASON(const char* a) : |
| 5106 | _entry(entry("REASON = %s", a)){}; |
| 5107 | type _entry; |
| 5108 | }; |
| 5109 | |
| 5110 | } // namespace _UserNamePrivFail |
| 5111 | |
| 5112 | struct UserNamePrivFail |
| 5113 | { |
| 5114 | static constexpr auto L = level::ERR; |
| 5115 | using REASON = _UserNamePrivFail::REASON; |
| 5116 | using metadata_types = std::tuple<REASON>; |
| 5117 | }; |
| 5118 | |
| 5119 | } // namespace Common |
| 5120 | } // namespace User |
| 5121 | } // namespace openbmc_project |
| 5122 | } // namespace xyz |
| 5123 | |
| 5124 | namespace details |
| 5125 | { |
| 5126 | |
| 5127 | template <> |
| 5128 | struct map_exception_type< |
| 5129 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNamePrivFail> |
| 5130 | { |
| 5131 | using type = xyz::openbmc_project::User::Common::UserNamePrivFail; |
| 5132 | }; |
| 5133 | |
| 5134 | } // namespace details |
| 5135 | |
| 5136 | namespace xyz |
| 5137 | { |
| 5138 | namespace openbmc_project |
| 5139 | { |
| 5140 | namespace User |
| 5141 | { |
| 5142 | namespace Common |
| 5143 | { |
| 5144 | namespace _NoResource |
| 5145 | { |
| 5146 | |
| 5147 | struct REASON |
| 5148 | { |
| 5149 | /* |
| 5150 | * We can't use -fsanitize=undefined if we declare a |
| 5151 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5152 | * mako template lookups. |
| 5153 | */ |
| 5154 | static constexpr auto str_short = "REASON "; |
| 5155 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 5156 | explicit constexpr REASON(const char* a) : |
| 5157 | _entry(entry("REASON = %s", a)){}; |
| 5158 | type _entry; |
| 5159 | }; |
| 5160 | |
| 5161 | } // namespace _NoResource |
| 5162 | |
| 5163 | struct NoResource |
| 5164 | { |
| 5165 | static constexpr auto L = level::ERR; |
| 5166 | using REASON = _NoResource::REASON; |
| 5167 | using metadata_types = std::tuple<REASON>; |
| 5168 | }; |
| 5169 | |
| 5170 | } // namespace Common |
| 5171 | } // namespace User |
| 5172 | } // namespace openbmc_project |
| 5173 | } // namespace xyz |
| 5174 | |
| 5175 | namespace details |
| 5176 | { |
| 5177 | |
| 5178 | template <> |
| 5179 | struct map_exception_type< |
| 5180 | sdbusplus::xyz::openbmc_project::User::Common::Error::NoResource> |
| 5181 | { |
| 5182 | using type = xyz::openbmc_project::User::Common::NoResource; |
| 5183 | }; |
| 5184 | |
| 5185 | } // namespace details |
| 5186 | |
| 5187 | namespace xyz |
| 5188 | { |
| 5189 | namespace openbmc_project |
| 5190 | { |
| 5191 | namespace User |
| 5192 | { |
| 5193 | namespace Common |
| 5194 | { |
| 5195 | namespace _PrivilegeMappingExists |
| 5196 | { |
| 5197 | |
| 5198 | } // namespace _PrivilegeMappingExists |
| 5199 | |
| 5200 | struct PrivilegeMappingExists |
| 5201 | { |
| 5202 | static constexpr auto L = level::ERR; |
| 5203 | using metadata_types = std::tuple<>; |
| 5204 | }; |
| 5205 | |
| 5206 | } // namespace Common |
| 5207 | } // namespace User |
| 5208 | } // namespace openbmc_project |
| 5209 | } // namespace xyz |
| 5210 | |
| 5211 | namespace details |
| 5212 | { |
| 5213 | |
| 5214 | template <> |
| 5215 | struct map_exception_type<sdbusplus::xyz::openbmc_project::User::Common::Error:: |
| 5216 | PrivilegeMappingExists> |
| 5217 | { |
| 5218 | using type = xyz::openbmc_project::User::Common::PrivilegeMappingExists; |
| 5219 | }; |
| 5220 | |
| 5221 | } // namespace details |
| 5222 | |
| 5223 | namespace example |
| 5224 | { |
| 5225 | namespace xyz |
| 5226 | { |
| 5227 | namespace openbmc_project |
| 5228 | { |
| 5229 | namespace Example |
| 5230 | { |
| 5231 | namespace Device |
| 5232 | { |
| 5233 | namespace _Callout |
| 5234 | { |
| 5235 | |
| 5236 | struct CALLOUT_ERRNO_TEST |
| 5237 | { |
| 5238 | /* |
| 5239 | * We can't use -fsanitize=undefined if we declare a |
| 5240 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5241 | * mako template lookups. |
| 5242 | */ |
| 5243 | static constexpr auto str_short = "CALLOUT_ERRNO_TEST"; |
| 5244 | using type = |
| 5245 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO_TEST=%d")>, int32_t>; |
| 5246 | explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : |
| 5247 | _entry(entry("CALLOUT_ERRNO_TEST=%d", a)){}; |
| 5248 | type _entry; |
| 5249 | }; |
| 5250 | struct CALLOUT_DEVICE_PATH_TEST |
| 5251 | { |
| 5252 | /* |
| 5253 | * We can't use -fsanitize=undefined if we declare a |
| 5254 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5255 | * mako template lookups. |
| 5256 | */ |
| 5257 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST"; |
| 5258 | using type = |
| 5259 | std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH_TEST=%s")>, |
| 5260 | const char*>; |
| 5261 | explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : |
| 5262 | _entry(entry("CALLOUT_DEVICE_PATH_TEST=%s", a)){}; |
| 5263 | type _entry; |
| 5264 | }; |
| 5265 | |
| 5266 | } // namespace _Callout |
| 5267 | |
| 5268 | struct Callout : public sdbusplus::exception_t |
| 5269 | { |
| 5270 | static constexpr auto errName = |
| 5271 | "example.xyz.openbmc_project.Example.Device.Callout"; |
| 5272 | static constexpr auto errDesc = "Generic device callout"; |
| 5273 | static constexpr auto L = level::ERR; |
| 5274 | using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST; |
| 5275 | using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST; |
| 5276 | using metadata_types = |
| 5277 | std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 5278 | |
| 5279 | const char* name() const noexcept override |
| 5280 | { |
| 5281 | return errName; |
| 5282 | } |
| 5283 | |
| 5284 | const char* description() const noexcept override |
| 5285 | { |
| 5286 | return errDesc; |
| 5287 | } |
| 5288 | |
| 5289 | const char* what() const noexcept override |
| 5290 | { |
| 5291 | return errName; |
| 5292 | } |
| 5293 | |
| 5294 | int get_errno() const noexcept override |
| 5295 | { |
| 5296 | return EIO; |
| 5297 | } |
| 5298 | }; |
| 5299 | |
| 5300 | } // namespace Device |
| 5301 | } // namespace Example |
| 5302 | } // namespace openbmc_project |
| 5303 | } // namespace xyz |
| 5304 | } // namespace example |
| 5305 | |
| 5306 | namespace example |
| 5307 | { |
| 5308 | namespace xyz |
| 5309 | { |
| 5310 | namespace openbmc_project |
| 5311 | { |
| 5312 | namespace Example |
| 5313 | { |
| 5314 | namespace Elog |
| 5315 | { |
| 5316 | namespace _TestErrorTwo |
| 5317 | { |
| 5318 | |
| 5319 | struct DEV_ADDR |
| 5320 | { |
| 5321 | /* |
| 5322 | * We can't use -fsanitize=undefined if we declare a |
| 5323 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5324 | * mako template lookups. |
| 5325 | */ |
| 5326 | static constexpr auto str_short = "DEV_ADDR"; |
| 5327 | using type = |
| 5328 | std::tuple<std::decay_t<decltype("DEV_ADDR=0x%.8X")>, uint32_t>; |
| 5329 | explicit constexpr DEV_ADDR(uint32_t a) : |
| 5330 | _entry(entry("DEV_ADDR=0x%.8X", a)){}; |
| 5331 | type _entry; |
| 5332 | }; |
| 5333 | struct DEV_ID |
| 5334 | { |
| 5335 | /* |
| 5336 | * We can't use -fsanitize=undefined if we declare a |
| 5337 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5338 | * mako template lookups. |
| 5339 | */ |
| 5340 | static constexpr auto str_short = "DEV_ID"; |
| 5341 | using type = std::tuple<std::decay_t<decltype("DEV_ID=%u")>, uint32_t>; |
| 5342 | explicit constexpr DEV_ID(uint32_t a) : _entry(entry("DEV_ID=%u", a)){}; |
| 5343 | type _entry; |
| 5344 | }; |
| 5345 | struct DEV_NAME |
| 5346 | { |
| 5347 | /* |
| 5348 | * We can't use -fsanitize=undefined if we declare a |
| 5349 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5350 | * mako template lookups. |
| 5351 | */ |
| 5352 | static constexpr auto str_short = "DEV_NAME"; |
| 5353 | using type = std::tuple<std::decay_t<decltype("DEV_NAME=%s")>, const char*>; |
| 5354 | explicit constexpr DEV_NAME(const char* a) : |
| 5355 | _entry(entry("DEV_NAME=%s", a)){}; |
| 5356 | type _entry; |
| 5357 | }; |
| 5358 | |
| 5359 | } // namespace _TestErrorTwo |
| 5360 | |
| 5361 | struct TestErrorTwo : public sdbusplus::exception_t |
| 5362 | { |
| 5363 | static constexpr auto errName = |
| 5364 | "example.xyz.openbmc_project.Example.Elog.TestErrorTwo"; |
| 5365 | static constexpr auto errDesc = "This is test error two"; |
| 5366 | static constexpr auto L = level::ERR; |
| 5367 | using DEV_ADDR = _TestErrorTwo::DEV_ADDR; |
| 5368 | using DEV_ID = _TestErrorTwo::DEV_ID; |
| 5369 | using DEV_NAME = _TestErrorTwo::DEV_NAME; |
| 5370 | using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>; |
| 5371 | |
| 5372 | const char* name() const noexcept override |
| 5373 | { |
| 5374 | return errName; |
| 5375 | } |
| 5376 | |
| 5377 | const char* description() const noexcept override |
| 5378 | { |
| 5379 | return errDesc; |
| 5380 | } |
| 5381 | |
| 5382 | const char* what() const noexcept override |
| 5383 | { |
| 5384 | return errName; |
| 5385 | } |
| 5386 | |
| 5387 | int get_errno() const noexcept override |
| 5388 | { |
| 5389 | return EIO; |
| 5390 | } |
| 5391 | }; |
| 5392 | |
| 5393 | } // namespace Elog |
| 5394 | } // namespace Example |
| 5395 | } // namespace openbmc_project |
| 5396 | } // namespace xyz |
| 5397 | } // namespace example |
| 5398 | |
| 5399 | namespace example |
| 5400 | { |
| 5401 | namespace xyz |
| 5402 | { |
| 5403 | namespace openbmc_project |
| 5404 | { |
| 5405 | namespace Example |
| 5406 | { |
| 5407 | namespace Elog |
| 5408 | { |
| 5409 | namespace _AutoTestSimple |
| 5410 | { |
| 5411 | |
| 5412 | struct STRING |
| 5413 | { |
| 5414 | /* |
| 5415 | * We can't use -fsanitize=undefined if we declare a |
| 5416 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5417 | * mako template lookups. |
| 5418 | */ |
| 5419 | static constexpr auto str_short = "STRING"; |
| 5420 | using type = std::tuple<std::decay_t<decltype("STRING=%s")>, const char*>; |
| 5421 | explicit constexpr STRING(const char* a) : _entry(entry("STRING=%s", a)){}; |
| 5422 | type _entry; |
| 5423 | }; |
| 5424 | |
| 5425 | } // namespace _AutoTestSimple |
| 5426 | |
| 5427 | struct AutoTestSimple : public sdbusplus::exception_t |
| 5428 | { |
| 5429 | static constexpr auto errName = |
| 5430 | "example.xyz.openbmc_project.Example.Elog.AutoTestSimple"; |
| 5431 | static constexpr auto errDesc = "This is a simple test error."; |
| 5432 | static constexpr auto L = level::ERR; |
| 5433 | using STRING = _AutoTestSimple::STRING; |
| 5434 | using metadata_types = std::tuple<STRING>; |
| 5435 | |
| 5436 | const char* name() const noexcept override |
| 5437 | { |
| 5438 | return errName; |
| 5439 | } |
| 5440 | |
| 5441 | const char* description() const noexcept override |
| 5442 | { |
| 5443 | return errDesc; |
| 5444 | } |
| 5445 | |
| 5446 | const char* what() const noexcept override |
| 5447 | { |
| 5448 | return errName; |
| 5449 | } |
| 5450 | |
| 5451 | int get_errno() const noexcept override |
| 5452 | { |
| 5453 | return EIO; |
| 5454 | } |
| 5455 | }; |
| 5456 | |
| 5457 | } // namespace Elog |
| 5458 | } // namespace Example |
| 5459 | } // namespace openbmc_project |
| 5460 | } // namespace xyz |
| 5461 | } // namespace example |
| 5462 | |
| 5463 | namespace example |
| 5464 | { |
| 5465 | namespace xyz |
| 5466 | { |
| 5467 | namespace openbmc_project |
| 5468 | { |
| 5469 | namespace Example |
| 5470 | { |
| 5471 | namespace Elog |
| 5472 | { |
| 5473 | namespace _TestCallout |
| 5474 | { |
| 5475 | |
| 5476 | struct DEV_ADDR |
| 5477 | { |
| 5478 | /* |
| 5479 | * We can't use -fsanitize=undefined if we declare a |
| 5480 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5481 | * mako template lookups. |
| 5482 | */ |
| 5483 | static constexpr auto str_short = "DEV_ADDR"; |
| 5484 | using type = |
| 5485 | std::tuple<std::decay_t<decltype("DEV_ADDR=0x%.8X")>, uint32_t>; |
| 5486 | explicit constexpr DEV_ADDR(uint32_t a) : |
| 5487 | _entry(entry("DEV_ADDR=0x%.8X", a)){}; |
| 5488 | type _entry; |
| 5489 | }; |
| 5490 | |
| 5491 | } // namespace _TestCallout |
| 5492 | |
| 5493 | struct TestCallout : public sdbusplus::exception_t |
| 5494 | { |
| 5495 | static constexpr auto errName = |
| 5496 | "example.xyz.openbmc_project.Example.Elog.TestCallout"; |
| 5497 | static constexpr auto errDesc = "This is test error TestCallout"; |
| 5498 | static constexpr auto L = level::ERR; |
| 5499 | using DEV_ADDR = _TestCallout::DEV_ADDR; |
| 5500 | using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device:: |
| 5501 | Callout::CALLOUT_ERRNO_TEST; |
| 5502 | using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example:: |
| 5503 | Device::Callout::CALLOUT_DEVICE_PATH_TEST; |
| 5504 | using metadata_types = |
| 5505 | std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 5506 | |
| 5507 | const char* name() const noexcept override |
| 5508 | { |
| 5509 | return errName; |
| 5510 | } |
| 5511 | |
| 5512 | const char* description() const noexcept override |
| 5513 | { |
| 5514 | return errDesc; |
| 5515 | } |
| 5516 | |
| 5517 | const char* what() const noexcept override |
| 5518 | { |
| 5519 | return errName; |
| 5520 | } |
| 5521 | |
| 5522 | int get_errno() const noexcept override |
| 5523 | { |
| 5524 | return EIO; |
| 5525 | } |
| 5526 | }; |
| 5527 | |
| 5528 | } // namespace Elog |
| 5529 | } // namespace Example |
| 5530 | } // namespace openbmc_project |
| 5531 | } // namespace xyz |
| 5532 | } // namespace example |
| 5533 | |
| 5534 | namespace org |
| 5535 | { |
| 5536 | namespace open_power |
| 5537 | { |
| 5538 | namespace Host |
| 5539 | { |
| 5540 | namespace _Event |
| 5541 | { |
| 5542 | |
| 5543 | struct ESEL |
| 5544 | { |
| 5545 | /* |
| 5546 | * We can't use -fsanitize=undefined if we declare a |
| 5547 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5548 | * mako template lookups. |
| 5549 | */ |
| 5550 | static constexpr auto str_short = "ESEL"; |
| 5551 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 5552 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
| 5553 | type _entry; |
| 5554 | }; |
| 5555 | |
| 5556 | } // namespace _Event |
| 5557 | |
| 5558 | struct Event |
| 5559 | { |
| 5560 | static constexpr auto L = level::ERR; |
| 5561 | using ESEL = _Event::ESEL; |
| 5562 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 5563 | Inventory::CALLOUT_INVENTORY_PATH; |
| 5564 | using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>; |
| 5565 | }; |
| 5566 | |
| 5567 | } // namespace Host |
| 5568 | } // namespace open_power |
| 5569 | } // namespace org |
| 5570 | |
| 5571 | namespace details |
| 5572 | { |
| 5573 | |
| 5574 | template <> |
| 5575 | struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event> |
| 5576 | { |
| 5577 | using type = org::open_power::Host::Event; |
| 5578 | }; |
| 5579 | |
| 5580 | } // namespace details |
| 5581 | |
| 5582 | namespace org |
| 5583 | { |
| 5584 | namespace open_power |
| 5585 | { |
| 5586 | namespace Host |
| 5587 | { |
| 5588 | namespace _MaintenanceProcedure |
| 5589 | { |
| 5590 | |
| 5591 | struct ESEL |
| 5592 | { |
| 5593 | /* |
| 5594 | * We can't use -fsanitize=undefined if we declare a |
| 5595 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5596 | * mako template lookups. |
| 5597 | */ |
| 5598 | static constexpr auto str_short = "ESEL"; |
| 5599 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 5600 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
| 5601 | type _entry; |
| 5602 | }; |
| 5603 | |
| 5604 | } // namespace _MaintenanceProcedure |
| 5605 | |
| 5606 | struct MaintenanceProcedure |
| 5607 | { |
| 5608 | static constexpr auto L = level::ERR; |
| 5609 | using ESEL = _MaintenanceProcedure::ESEL; |
| 5610 | using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE; |
| 5611 | using metadata_types = std::tuple<ESEL, PROCEDURE>; |
| 5612 | }; |
| 5613 | |
| 5614 | } // namespace Host |
| 5615 | } // namespace open_power |
| 5616 | } // namespace org |
| 5617 | |
| 5618 | namespace details |
| 5619 | { |
| 5620 | |
| 5621 | template <> |
| 5622 | struct map_exception_type< |
| 5623 | sdbusplus::org::open_power::Host::Error::MaintenanceProcedure> |
| 5624 | { |
| 5625 | using type = org::open_power::Host::MaintenanceProcedure; |
| 5626 | }; |
| 5627 | |
| 5628 | } // namespace details |
| 5629 | |
| 5630 | namespace org |
| 5631 | { |
| 5632 | namespace open_power |
| 5633 | { |
| 5634 | namespace Host |
| 5635 | { |
| 5636 | namespace Access |
| 5637 | { |
| 5638 | namespace _WriteCFAM |
| 5639 | { |
| 5640 | |
| 5641 | struct ADDRESS |
| 5642 | { |
| 5643 | /* |
| 5644 | * We can't use -fsanitize=undefined if we declare a |
| 5645 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5646 | * mako template lookups. |
| 5647 | */ |
| 5648 | static constexpr auto str_short = "ADDRESS"; |
| 5649 | using type = std::tuple<std::decay_t<decltype("ADDRESS=0x%X")>, uint32_t>; |
| 5650 | explicit constexpr ADDRESS(uint32_t a) : _entry(entry("ADDRESS=0x%X", a)){}; |
| 5651 | type _entry; |
| 5652 | }; |
| 5653 | |
| 5654 | } // namespace _WriteCFAM |
| 5655 | |
| 5656 | struct WriteCFAM |
| 5657 | { |
| 5658 | static constexpr auto L = level::ERR; |
| 5659 | using ADDRESS = _WriteCFAM::ADDRESS; |
| 5660 | using CALLOUT_ERRNO = |
| 5661 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 5662 | using CALLOUT_DEVICE_PATH = |
| 5663 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 5664 | using metadata_types = |
| 5665 | std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 5666 | }; |
| 5667 | |
| 5668 | } // namespace Access |
| 5669 | } // namespace Host |
| 5670 | } // namespace open_power |
| 5671 | } // namespace org |
| 5672 | |
| 5673 | namespace details |
| 5674 | { |
| 5675 | |
| 5676 | template <> |
| 5677 | struct map_exception_type< |
| 5678 | sdbusplus::org::open_power::Host::Access::Error::WriteCFAM> |
| 5679 | { |
| 5680 | using type = org::open_power::Host::Access::WriteCFAM; |
| 5681 | }; |
| 5682 | |
| 5683 | } // namespace details |
| 5684 | |
| 5685 | namespace org |
| 5686 | { |
| 5687 | namespace open_power |
| 5688 | { |
| 5689 | namespace Host |
| 5690 | { |
| 5691 | namespace Access |
| 5692 | { |
| 5693 | namespace _ReadCFAM |
| 5694 | { |
| 5695 | |
| 5696 | struct ADDRESS |
| 5697 | { |
| 5698 | /* |
| 5699 | * We can't use -fsanitize=undefined if we declare a |
| 5700 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5701 | * mako template lookups. |
| 5702 | */ |
| 5703 | static constexpr auto str_short = "ADDRESS"; |
| 5704 | using type = std::tuple<std::decay_t<decltype("ADDRESS=0x%X")>, uint32_t>; |
| 5705 | explicit constexpr ADDRESS(uint32_t a) : _entry(entry("ADDRESS=0x%X", a)){}; |
| 5706 | type _entry; |
| 5707 | }; |
| 5708 | |
| 5709 | } // namespace _ReadCFAM |
| 5710 | |
| 5711 | struct ReadCFAM |
| 5712 | { |
| 5713 | static constexpr auto L = level::ERR; |
| 5714 | using ADDRESS = _ReadCFAM::ADDRESS; |
| 5715 | using CALLOUT_ERRNO = |
| 5716 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 5717 | using CALLOUT_DEVICE_PATH = |
| 5718 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 5719 | using metadata_types = |
| 5720 | std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 5721 | }; |
| 5722 | |
| 5723 | } // namespace Access |
| 5724 | } // namespace Host |
| 5725 | } // namespace open_power |
| 5726 | } // namespace org |
| 5727 | |
| 5728 | namespace details |
| 5729 | { |
| 5730 | |
| 5731 | template <> |
| 5732 | struct map_exception_type< |
| 5733 | sdbusplus::org::open_power::Host::Access::Error::ReadCFAM> |
| 5734 | { |
| 5735 | using type = org::open_power::Host::Access::ReadCFAM; |
| 5736 | }; |
| 5737 | |
| 5738 | } // namespace details |
| 5739 | |
| 5740 | namespace org |
| 5741 | { |
| 5742 | namespace open_power |
| 5743 | { |
| 5744 | namespace Proc |
| 5745 | { |
| 5746 | namespace FSI |
| 5747 | { |
| 5748 | namespace _MasterDetectionFailure |
| 5749 | { |
| 5750 | |
| 5751 | } // namespace _MasterDetectionFailure |
| 5752 | |
| 5753 | struct MasterDetectionFailure |
| 5754 | { |
| 5755 | static constexpr auto L = level::ERR; |
| 5756 | using CALLOUT_ERRNO = |
| 5757 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 5758 | using CALLOUT_DEVICE_PATH = |
| 5759 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 5760 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 5761 | }; |
| 5762 | |
| 5763 | } // namespace FSI |
| 5764 | } // namespace Proc |
| 5765 | } // namespace open_power |
| 5766 | } // namespace org |
| 5767 | |
| 5768 | namespace details |
| 5769 | { |
| 5770 | |
| 5771 | template <> |
| 5772 | struct map_exception_type< |
| 5773 | sdbusplus::org::open_power::Proc::FSI::Error::MasterDetectionFailure> |
| 5774 | { |
| 5775 | using type = org::open_power::Proc::FSI::MasterDetectionFailure; |
| 5776 | }; |
| 5777 | |
| 5778 | } // namespace details |
| 5779 | |
| 5780 | namespace xyz |
| 5781 | { |
| 5782 | namespace openbmc_project |
| 5783 | { |
| 5784 | namespace Inventory |
| 5785 | { |
| 5786 | namespace _NotPresent |
| 5787 | { |
| 5788 | |
| 5789 | } // namespace _NotPresent |
| 5790 | |
| 5791 | struct NotPresent |
| 5792 | { |
| 5793 | static constexpr auto L = level::ERR; |
| 5794 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 5795 | Inventory::CALLOUT_INVENTORY_PATH; |
| 5796 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 5797 | }; |
| 5798 | |
| 5799 | } // namespace Inventory |
| 5800 | } // namespace openbmc_project |
| 5801 | } // namespace xyz |
| 5802 | |
| 5803 | namespace details |
| 5804 | { |
| 5805 | |
| 5806 | template <> |
| 5807 | struct map_exception_type< |
| 5808 | sdbusplus::xyz::openbmc_project::Inventory::Error::NotPresent> |
| 5809 | { |
| 5810 | using type = xyz::openbmc_project::Inventory::NotPresent; |
| 5811 | }; |
| 5812 | |
| 5813 | } // namespace details |
| 5814 | |
| 5815 | namespace xyz |
| 5816 | { |
| 5817 | namespace openbmc_project |
| 5818 | { |
| 5819 | namespace Inventory |
| 5820 | { |
| 5821 | namespace _Nonfunctional |
| 5822 | { |
| 5823 | |
| 5824 | } // namespace _Nonfunctional |
| 5825 | |
| 5826 | struct Nonfunctional |
| 5827 | { |
| 5828 | static constexpr auto L = level::ERR; |
| 5829 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 5830 | Inventory::CALLOUT_INVENTORY_PATH; |
| 5831 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 5832 | }; |
| 5833 | |
| 5834 | } // namespace Inventory |
| 5835 | } // namespace openbmc_project |
| 5836 | } // namespace xyz |
| 5837 | |
| 5838 | namespace details |
| 5839 | { |
| 5840 | |
| 5841 | template <> |
| 5842 | struct map_exception_type< |
| 5843 | sdbusplus::xyz::openbmc_project::Inventory::Error::Nonfunctional> |
| 5844 | { |
| 5845 | using type = xyz::openbmc_project::Inventory::Nonfunctional; |
| 5846 | }; |
| 5847 | |
| 5848 | } // namespace details |
| 5849 | |
| 5850 | namespace xyz |
| 5851 | { |
| 5852 | namespace openbmc_project |
| 5853 | { |
| 5854 | namespace Time |
| 5855 | { |
| 5856 | namespace _NotAllowed |
| 5857 | { |
| 5858 | |
| 5859 | struct OWNER |
| 5860 | { |
| 5861 | /* |
| 5862 | * We can't use -fsanitize=undefined if we declare a |
| 5863 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5864 | * mako template lookups. |
| 5865 | */ |
| 5866 | static constexpr auto str_short = "OWNER"; |
| 5867 | using type = std::tuple<std::decay_t<decltype("OWNER=%s")>, const char*>; |
| 5868 | explicit constexpr OWNER(const char* a) : _entry(entry("OWNER=%s", a)){}; |
| 5869 | type _entry; |
| 5870 | }; |
| 5871 | struct SYNC_METHOD |
| 5872 | { |
| 5873 | /* |
| 5874 | * We can't use -fsanitize=undefined if we declare a |
| 5875 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5876 | * mako template lookups. |
| 5877 | */ |
| 5878 | static constexpr auto str_short = "SYNC_METHOD"; |
| 5879 | using type = |
| 5880 | std::tuple<std::decay_t<decltype("SYNC_METHOD=%s")>, const char*>; |
| 5881 | explicit constexpr SYNC_METHOD(const char* a) : |
| 5882 | _entry(entry("SYNC_METHOD=%s", a)){}; |
| 5883 | type _entry; |
| 5884 | }; |
| 5885 | |
| 5886 | } // namespace _NotAllowed |
| 5887 | |
| 5888 | struct NotAllowed |
| 5889 | { |
| 5890 | static constexpr auto L = level::ERR; |
| 5891 | using OWNER = _NotAllowed::OWNER; |
| 5892 | using SYNC_METHOD = _NotAllowed::SYNC_METHOD; |
| 5893 | using REASON = xyz::openbmc_project::Common::NotAllowed::REASON; |
| 5894 | using metadata_types = std::tuple<OWNER, SYNC_METHOD, REASON>; |
| 5895 | }; |
| 5896 | |
| 5897 | } // namespace Time |
| 5898 | } // namespace openbmc_project |
| 5899 | } // namespace xyz |
| 5900 | |
| 5901 | namespace details |
| 5902 | { |
| 5903 | |
| 5904 | template <> |
| 5905 | struct map_exception_type< |
| 5906 | sdbusplus::xyz::openbmc_project::Time::Error::NotAllowed> |
| 5907 | { |
| 5908 | using type = xyz::openbmc_project::Time::NotAllowed; |
| 5909 | }; |
| 5910 | |
| 5911 | } // namespace details |
| 5912 | |
| 5913 | namespace xyz |
| 5914 | { |
| 5915 | namespace openbmc_project |
| 5916 | { |
| 5917 | namespace Time |
| 5918 | { |
| 5919 | namespace _Failed |
| 5920 | { |
| 5921 | |
| 5922 | struct REASON |
| 5923 | { |
| 5924 | /* |
| 5925 | * We can't use -fsanitize=undefined if we declare a |
| 5926 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5927 | * mako template lookups. |
| 5928 | */ |
| 5929 | static constexpr auto str_short = "REASON"; |
| 5930 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 5931 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 5932 | type _entry; |
| 5933 | }; |
| 5934 | |
| 5935 | } // namespace _Failed |
| 5936 | |
| 5937 | struct Failed |
| 5938 | { |
| 5939 | static constexpr auto L = level::ERR; |
| 5940 | using REASON = _Failed::REASON; |
| 5941 | using metadata_types = std::tuple<REASON>; |
| 5942 | }; |
| 5943 | |
| 5944 | } // namespace Time |
| 5945 | } // namespace openbmc_project |
| 5946 | } // namespace xyz |
| 5947 | |
| 5948 | namespace details |
| 5949 | { |
| 5950 | |
| 5951 | template <> |
| 5952 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Time::Error::Failed> |
| 5953 | { |
| 5954 | using type = xyz::openbmc_project::Time::Failed; |
| 5955 | }; |
| 5956 | |
| 5957 | } // namespace details |
| 5958 | |
| 5959 | namespace xyz |
| 5960 | { |
| 5961 | namespace openbmc_project |
| 5962 | { |
| 5963 | namespace State |
| 5964 | { |
| 5965 | namespace BMC |
| 5966 | { |
| 5967 | namespace _MultiUserTargetFailure |
| 5968 | { |
| 5969 | |
| 5970 | } // namespace _MultiUserTargetFailure |
| 5971 | |
| 5972 | struct MultiUserTargetFailure |
| 5973 | { |
| 5974 | static constexpr auto L = level::ERR; |
| 5975 | using SYSTEMD_RESULT = |
| 5976 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 5977 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 5978 | }; |
| 5979 | |
| 5980 | } // namespace BMC |
| 5981 | } // namespace State |
| 5982 | } // namespace openbmc_project |
| 5983 | } // namespace xyz |
| 5984 | |
| 5985 | namespace details |
| 5986 | { |
| 5987 | |
| 5988 | template <> |
| 5989 | struct map_exception_type< |
| 5990 | sdbusplus::xyz::openbmc_project::State::BMC::Error::MultiUserTargetFailure> |
| 5991 | { |
| 5992 | using type = xyz::openbmc_project::State::BMC::MultiUserTargetFailure; |
| 5993 | }; |
| 5994 | |
| 5995 | } // namespace details |
| 5996 | |
| 5997 | namespace xyz |
| 5998 | { |
| 5999 | namespace openbmc_project |
| 6000 | { |
| 6001 | namespace State |
| 6002 | { |
| 6003 | namespace Chassis |
| 6004 | { |
| 6005 | namespace _PowerOnFailure |
| 6006 | { |
| 6007 | |
| 6008 | } // namespace _PowerOnFailure |
| 6009 | |
| 6010 | struct PowerOnFailure |
| 6011 | { |
| 6012 | static constexpr auto L = level::ERR; |
| 6013 | using SYSTEMD_RESULT = |
| 6014 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6015 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6016 | }; |
| 6017 | |
| 6018 | } // namespace Chassis |
| 6019 | } // namespace State |
| 6020 | } // namespace openbmc_project |
| 6021 | } // namespace xyz |
| 6022 | |
| 6023 | namespace details |
| 6024 | { |
| 6025 | |
| 6026 | template <> |
| 6027 | struct map_exception_type< |
| 6028 | sdbusplus::xyz::openbmc_project::State::Chassis::Error::PowerOnFailure> |
| 6029 | { |
| 6030 | using type = xyz::openbmc_project::State::Chassis::PowerOnFailure; |
| 6031 | }; |
| 6032 | |
| 6033 | } // namespace details |
| 6034 | |
| 6035 | namespace xyz |
| 6036 | { |
| 6037 | namespace openbmc_project |
| 6038 | { |
| 6039 | namespace State |
| 6040 | { |
| 6041 | namespace Chassis |
| 6042 | { |
| 6043 | namespace _PowerOffFailure |
| 6044 | { |
| 6045 | |
| 6046 | } // namespace _PowerOffFailure |
| 6047 | |
| 6048 | struct PowerOffFailure |
| 6049 | { |
| 6050 | static constexpr auto L = level::ERR; |
| 6051 | using SYSTEMD_RESULT = |
| 6052 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6053 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6054 | }; |
| 6055 | |
| 6056 | } // namespace Chassis |
| 6057 | } // namespace State |
| 6058 | } // namespace openbmc_project |
| 6059 | } // namespace xyz |
| 6060 | |
| 6061 | namespace details |
| 6062 | { |
| 6063 | |
| 6064 | template <> |
| 6065 | struct map_exception_type< |
| 6066 | sdbusplus::xyz::openbmc_project::State::Chassis::Error::PowerOffFailure> |
| 6067 | { |
| 6068 | using type = xyz::openbmc_project::State::Chassis::PowerOffFailure; |
| 6069 | }; |
| 6070 | |
| 6071 | } // namespace details |
| 6072 | |
| 6073 | namespace xyz |
| 6074 | { |
| 6075 | namespace openbmc_project |
| 6076 | { |
| 6077 | namespace State |
| 6078 | { |
| 6079 | namespace Host |
| 6080 | { |
| 6081 | namespace _HostStartFailure |
| 6082 | { |
| 6083 | |
| 6084 | } // namespace _HostStartFailure |
| 6085 | |
| 6086 | struct HostStartFailure |
| 6087 | { |
| 6088 | static constexpr auto L = level::ERR; |
| 6089 | using SYSTEMD_RESULT = |
| 6090 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6091 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6092 | }; |
| 6093 | |
| 6094 | } // namespace Host |
| 6095 | } // namespace State |
| 6096 | } // namespace openbmc_project |
| 6097 | } // namespace xyz |
| 6098 | |
| 6099 | namespace details |
| 6100 | { |
| 6101 | |
| 6102 | template <> |
| 6103 | struct map_exception_type< |
| 6104 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostStartFailure> |
| 6105 | { |
| 6106 | using type = xyz::openbmc_project::State::Host::HostStartFailure; |
| 6107 | }; |
| 6108 | |
| 6109 | } // namespace details |
| 6110 | |
| 6111 | namespace xyz |
| 6112 | { |
| 6113 | namespace openbmc_project |
| 6114 | { |
| 6115 | namespace State |
| 6116 | { |
| 6117 | namespace Host |
| 6118 | { |
| 6119 | namespace _HostMinStartFailure |
| 6120 | { |
| 6121 | |
| 6122 | } // namespace _HostMinStartFailure |
| 6123 | |
| 6124 | struct HostMinStartFailure |
| 6125 | { |
| 6126 | static constexpr auto L = level::ERR; |
| 6127 | using SYSTEMD_RESULT = |
| 6128 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6129 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6130 | }; |
| 6131 | |
| 6132 | } // namespace Host |
| 6133 | } // namespace State |
| 6134 | } // namespace openbmc_project |
| 6135 | } // namespace xyz |
| 6136 | |
| 6137 | namespace details |
| 6138 | { |
| 6139 | |
| 6140 | template <> |
| 6141 | struct map_exception_type< |
| 6142 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostMinStartFailure> |
| 6143 | { |
| 6144 | using type = xyz::openbmc_project::State::Host::HostMinStartFailure; |
| 6145 | }; |
| 6146 | |
| 6147 | } // namespace details |
| 6148 | |
| 6149 | namespace xyz |
| 6150 | { |
| 6151 | namespace openbmc_project |
| 6152 | { |
| 6153 | namespace State |
| 6154 | { |
| 6155 | namespace Host |
| 6156 | { |
| 6157 | namespace _HostShutdownFailure |
| 6158 | { |
| 6159 | |
| 6160 | } // namespace _HostShutdownFailure |
| 6161 | |
| 6162 | struct HostShutdownFailure |
| 6163 | { |
| 6164 | static constexpr auto L = level::ERR; |
| 6165 | using SYSTEMD_RESULT = |
| 6166 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6167 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6168 | }; |
| 6169 | |
| 6170 | } // namespace Host |
| 6171 | } // namespace State |
| 6172 | } // namespace openbmc_project |
| 6173 | } // namespace xyz |
| 6174 | |
| 6175 | namespace details |
| 6176 | { |
| 6177 | |
| 6178 | template <> |
| 6179 | struct map_exception_type< |
| 6180 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostShutdownFailure> |
| 6181 | { |
| 6182 | using type = xyz::openbmc_project::State::Host::HostShutdownFailure; |
| 6183 | }; |
| 6184 | |
| 6185 | } // namespace details |
| 6186 | |
| 6187 | namespace xyz |
| 6188 | { |
| 6189 | namespace openbmc_project |
| 6190 | { |
| 6191 | namespace State |
| 6192 | { |
| 6193 | namespace Host |
| 6194 | { |
| 6195 | namespace _HostStopFailure |
| 6196 | { |
| 6197 | |
| 6198 | } // namespace _HostStopFailure |
| 6199 | |
| 6200 | struct HostStopFailure |
| 6201 | { |
| 6202 | static constexpr auto L = level::ERR; |
| 6203 | using SYSTEMD_RESULT = |
| 6204 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6205 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6206 | }; |
| 6207 | |
| 6208 | } // namespace Host |
| 6209 | } // namespace State |
| 6210 | } // namespace openbmc_project |
| 6211 | } // namespace xyz |
| 6212 | |
| 6213 | namespace details |
| 6214 | { |
| 6215 | |
| 6216 | template <> |
| 6217 | struct map_exception_type< |
| 6218 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostStopFailure> |
| 6219 | { |
| 6220 | using type = xyz::openbmc_project::State::Host::HostStopFailure; |
| 6221 | }; |
| 6222 | |
| 6223 | } // namespace details |
| 6224 | |
| 6225 | namespace xyz |
| 6226 | { |
| 6227 | namespace openbmc_project |
| 6228 | { |
| 6229 | namespace State |
| 6230 | { |
| 6231 | namespace Host |
| 6232 | { |
| 6233 | namespace _HostRebootFailure |
| 6234 | { |
| 6235 | |
| 6236 | } // namespace _HostRebootFailure |
| 6237 | |
| 6238 | struct HostRebootFailure |
| 6239 | { |
| 6240 | static constexpr auto L = level::ERR; |
| 6241 | using SYSTEMD_RESULT = |
| 6242 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6243 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6244 | }; |
| 6245 | |
| 6246 | } // namespace Host |
| 6247 | } // namespace State |
| 6248 | } // namespace openbmc_project |
| 6249 | } // namespace xyz |
| 6250 | |
| 6251 | namespace details |
| 6252 | { |
| 6253 | |
| 6254 | template <> |
| 6255 | struct map_exception_type< |
| 6256 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostRebootFailure> |
| 6257 | { |
| 6258 | using type = xyz::openbmc_project::State::Host::HostRebootFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6259 | }; |
| 6260 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6261 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6262 | |
| 6263 | namespace example |
| 6264 | { |
| 6265 | namespace xyz |
| 6266 | { |
| 6267 | namespace openbmc_project |
| 6268 | { |
| 6269 | namespace Example |
| 6270 | { |
| 6271 | namespace Elog |
| 6272 | { |
| 6273 | namespace _TestErrorOne |
| 6274 | { |
| 6275 | |
| 6276 | struct ERRNUM |
| 6277 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6278 | /* |
| 6279 | * We can't use -fsanitize=undefined if we declare a |
| 6280 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6281 | * mako template lookups. |
| 6282 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6283 | static constexpr auto str_short = "ERRNUM"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6284 | using type = std::tuple<std::decay_t<decltype("ERRNUM=0x%.4X")>, uint16_t>; |
| 6285 | explicit constexpr ERRNUM(uint16_t a) : _entry(entry("ERRNUM=0x%.4X", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6286 | type _entry; |
| 6287 | }; |
| 6288 | struct FILE_PATH |
| 6289 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6290 | /* |
| 6291 | * We can't use -fsanitize=undefined if we declare a |
| 6292 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6293 | * mako template lookups. |
| 6294 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6295 | static constexpr auto str_short = "FILE_PATH"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6296 | using type = |
| 6297 | std::tuple<std::decay_t<decltype("FILE_PATH=%s")>, const char*>; |
| 6298 | explicit constexpr FILE_PATH(const char* a) : |
| 6299 | _entry(entry("FILE_PATH=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6300 | type _entry; |
| 6301 | }; |
| 6302 | struct FILE_NAME |
| 6303 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6304 | /* |
| 6305 | * We can't use -fsanitize=undefined if we declare a |
| 6306 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6307 | * mako template lookups. |
| 6308 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6309 | static constexpr auto str_short = "FILE_NAME"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6310 | using type = |
| 6311 | std::tuple<std::decay_t<decltype("FILE_NAME=%s")>, const char*>; |
| 6312 | explicit constexpr FILE_NAME(const char* a) : |
| 6313 | _entry(entry("FILE_NAME=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6314 | type _entry; |
| 6315 | }; |
| 6316 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6317 | } // namespace _TestErrorOne |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6318 | |
| 6319 | struct TestErrorOne : public sdbusplus::exception_t |
| 6320 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6321 | static constexpr auto errName = |
| 6322 | "example.xyz.openbmc_project.Example.Elog.TestErrorOne"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6323 | static constexpr auto errDesc = "this is test error one"; |
| 6324 | static constexpr auto L = level::INFO; |
| 6325 | using ERRNUM = _TestErrorOne::ERRNUM; |
| 6326 | using FILE_PATH = _TestErrorOne::FILE_PATH; |
| 6327 | using FILE_NAME = _TestErrorOne::FILE_NAME; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6328 | using DEV_ADDR = |
| 6329 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 6330 | using DEV_ID = |
| 6331 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 6332 | using DEV_NAME = |
| 6333 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 6334 | using metadata_types = |
| 6335 | std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6336 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6337 | const char* name() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6338 | { |
| 6339 | return errName; |
| 6340 | } |
| 6341 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6342 | const char* description() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6343 | { |
| 6344 | return errDesc; |
| 6345 | } |
| 6346 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6347 | const char* what() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6348 | { |
| 6349 | return errName; |
| 6350 | } |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6351 | |
| 6352 | int get_errno() const noexcept override |
| 6353 | { |
| 6354 | return EIO; |
| 6355 | } |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6356 | }; |
| 6357 | |
| 6358 | } // namespace Elog |
| 6359 | } // namespace Example |
| 6360 | } // namespace openbmc_project |
| 6361 | } // namespace xyz |
| 6362 | } // namespace example |
| 6363 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6364 | namespace example |
| 6365 | { |
| 6366 | namespace xyz |
| 6367 | { |
| 6368 | namespace openbmc_project |
| 6369 | { |
| 6370 | namespace Example |
| 6371 | { |
| 6372 | namespace Foo |
| 6373 | { |
| 6374 | namespace _Foo |
| 6375 | { |
| 6376 | |
| 6377 | struct FOO_DATA |
| 6378 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6379 | /* |
| 6380 | * We can't use -fsanitize=undefined if we declare a |
| 6381 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6382 | * mako template lookups. |
| 6383 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6384 | static constexpr auto str_short = "FOO_DATA"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6385 | using type = std::tuple<std::decay_t<decltype("FOO_DATA=%s")>, const char*>; |
| 6386 | explicit constexpr FOO_DATA(const char* a) : |
| 6387 | _entry(entry("FOO_DATA=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6388 | type _entry; |
| 6389 | }; |
| 6390 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6391 | } // namespace _Foo |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6392 | |
| 6393 | struct Foo : public sdbusplus::exception_t |
| 6394 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6395 | static constexpr auto errName = |
| 6396 | "example.xyz.openbmc_project.Example.Foo.Foo"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6397 | static constexpr auto errDesc = "this is test error Foo"; |
| 6398 | static constexpr auto L = level::INFO; |
| 6399 | using FOO_DATA = _Foo::FOO_DATA; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6400 | using ERRNUM = |
| 6401 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 6402 | using FILE_PATH = |
| 6403 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 6404 | using FILE_NAME = |
| 6405 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 6406 | using DEV_ADDR = |
| 6407 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 6408 | using DEV_ID = |
| 6409 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 6410 | using DEV_NAME = |
| 6411 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 6412 | using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, |
| 6413 | DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6414 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6415 | const char* name() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6416 | { |
| 6417 | return errName; |
| 6418 | } |
| 6419 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6420 | const char* description() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6421 | { |
| 6422 | return errDesc; |
| 6423 | } |
| 6424 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6425 | const char* what() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6426 | { |
| 6427 | return errName; |
| 6428 | } |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6429 | |
| 6430 | int get_errno() const noexcept override |
| 6431 | { |
| 6432 | return EIO; |
| 6433 | } |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6434 | }; |
| 6435 | |
| 6436 | } // namespace Foo |
| 6437 | } // namespace Example |
| 6438 | } // namespace openbmc_project |
| 6439 | } // namespace xyz |
| 6440 | } // namespace example |
| 6441 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6442 | namespace example |
| 6443 | { |
| 6444 | namespace xyz |
| 6445 | { |
| 6446 | namespace openbmc_project |
| 6447 | { |
| 6448 | namespace Example |
| 6449 | { |
| 6450 | namespace Bar |
| 6451 | { |
| 6452 | namespace _Bar |
| 6453 | { |
| 6454 | |
| 6455 | struct BAR_DATA |
| 6456 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6457 | /* |
| 6458 | * We can't use -fsanitize=undefined if we declare a |
| 6459 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6460 | * mako template lookups. |
| 6461 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6462 | static constexpr auto str_short = "BAR_DATA"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6463 | using type = std::tuple<std::decay_t<decltype("BAR_DATA=%s")>, const char*>; |
| 6464 | explicit constexpr BAR_DATA(const char* a) : |
| 6465 | _entry(entry("BAR_DATA=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6466 | type _entry; |
| 6467 | }; |
| 6468 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6469 | } // namespace _Bar |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6470 | |
| 6471 | struct Bar : public sdbusplus::exception_t |
| 6472 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6473 | static constexpr auto errName = |
| 6474 | "example.xyz.openbmc_project.Example.Bar.Bar"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6475 | static constexpr auto errDesc = "this is test error Bar"; |
| 6476 | static constexpr auto L = level::INFO; |
| 6477 | using BAR_DATA = _Bar::BAR_DATA; |
| 6478 | using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6479 | using ERRNUM = |
| 6480 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 6481 | using FILE_PATH = |
| 6482 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 6483 | using FILE_NAME = |
| 6484 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 6485 | using DEV_ADDR = |
| 6486 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 6487 | using DEV_ID = |
| 6488 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 6489 | using DEV_NAME = |
| 6490 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 6491 | using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, |
| 6492 | FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6493 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6494 | const char* name() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6495 | { |
| 6496 | return errName; |
| 6497 | } |
| 6498 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6499 | const char* description() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6500 | { |
| 6501 | return errDesc; |
| 6502 | } |
| 6503 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6504 | const char* what() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6505 | { |
| 6506 | return errName; |
| 6507 | } |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6508 | |
| 6509 | int get_errno() const noexcept override |
| 6510 | { |
| 6511 | return EIO; |
| 6512 | } |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6513 | }; |
| 6514 | |
| 6515 | } // namespace Bar |
| 6516 | } // namespace Example |
| 6517 | } // namespace openbmc_project |
| 6518 | } // namespace xyz |
| 6519 | } // namespace example |
| 6520 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6521 | } // namespace logging |
| 6522 | |
| 6523 | } // namespace phosphor |