Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 1 | #include "elog_entry.hpp" |
Deepak Kodihalli | 36db46c | 2017-03-31 06:28:44 -0500 | [diff] [blame] | 2 | #include "log_manager.hpp" |
Deepak Kodihalli | 9743189 | 2017-06-12 09:14:57 -0500 | [diff] [blame] | 3 | #include "elog_serialize.hpp" |
Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace logging |
| 8 | { |
| 9 | |
Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 10 | // TODO Add interfaces to handle the error log id numbering |
| 11 | |
Deepak Kodihalli | 36db46c | 2017-03-31 06:28:44 -0500 | [diff] [blame] | 12 | void Entry::delete_() |
| 13 | { |
| 14 | parent.erase(id()); |
| 15 | } |
| 16 | |
Deepak Kodihalli | 9743189 | 2017-06-12 09:14:57 -0500 | [diff] [blame] | 17 | bool Entry::resolved(bool value) |
| 18 | { |
| 19 | auto current = sdbusplus::xyz::openbmc_project:: |
| 20 | Logging::server::Entry::resolved(); |
| 21 | if (value != current) |
| 22 | { |
| 23 | value ? |
| 24 | associations({}) : |
| 25 | associations(assocs); |
| 26 | current = sdbusplus::xyz::openbmc_project:: |
| 27 | Logging::server::Entry::resolved(value); |
| 28 | serialize(*this); |
| 29 | } |
| 30 | |
| 31 | return current; |
| 32 | } |
| 33 | |
Adriana Kobylak | 88d7cf8 | 2017-01-24 12:30:15 -0600 | [diff] [blame] | 34 | } // namespace logging |
| 35 | } // namepsace phosphor |