1 #include "elog_entry.hpp"
2 
3 #include "elog_serialize.hpp"
4 #include "log_manager.hpp"
5 
6 namespace phosphor
7 {
8 namespace logging
9 {
10 
11 // TODO Add interfaces to handle the error log id numbering
12 
13 void Entry::delete_()
14 {
15     parent.erase(id());
16 }
17 
18 bool Entry::resolved(bool value)
19 {
20     auto current =
21         sdbusplus::xyz::openbmc_project::Logging::server::Entry::resolved();
22     if (value != current)
23     {
24         value ? associations({}) : associations(assocs);
25         current =
26             sdbusplus::xyz::openbmc_project::Logging::server::Entry::resolved(
27                 value);
28         serialize(*this);
29     }
30 
31     return current;
32 }
33 
34 } // namespace logging
35 } // namespace phosphor
36