summaryrefslogtreecommitdiffstats
path: root/serialize.hpp
Commit message (Collapse)AuthorAgeFilesLines
* serialization: adapt to filesystem API changesHEADmasterBrad Bishop2019-04-151-8/+16
| | | | | | | | | | The behavior of std::filesystem::path::append changed on its journey from experimental:: to std:: Add a testcase and adapt to the behavior change. Fixes: e6b21c74581c30ea635aabbbc08d0a56f8e27063 Change-Id: I4bdb43ea9b85933ec12ae0f4b609ec3a33d77d01 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* cleanup: Use filesystem instead of experimentalKun Yi2019-04-101-2/+2
| | | | | | | | With Thud(Yocto 2.6) bumping gcc version, std::filesystem is available. Change-Id: I1837df14e52be3e2007b941c3f9c0d3efc687027 Signed-off-by: Kun Yi <kunyi731@gmail.com>
* serialize: add concept APIBrad Bishop2019-01-071-60/+71
| | | | | | | | Wrap serialization methods in a struct to match a yet to be consumed serialization template concept API. Change-Id: I4be1749f693ea5fe116bbac581428972e7670791 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* formatter: update clang-format and fix-up file(s)Patrick Venture2018-10-141-2/+2
| | | | | | | | clang-format-6.0 introduced new changes, also then updates to .clang-format introduce more new changes. Change-Id: Iec9f84e3a7a5bf254d66eee46cdc9b3070e06687 Signed-off-by: Patrick Venture <venture@google.com>
* Enable clang-formatBrad Bishop2018-03-291-3/+2
| | | | | | | Fix up problems and enable clang-format during CI builds. Change-Id: Ia5c88281f7090c0aa09ba586d968f1fcd8aba4f1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add support for type-only interfacesMarri Devender Rao2017-09-291-0/+15
| | | | | | | | | | Modify Maker template for type-only interfaces that do not have properties. Resolves openbmc/openbmc#1786 Change-Id: I2c48b37cf273943a0c696f6b92db0bc901a1c9b4 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* phosphor-inventory: Fix for deserialize cereal exceptionJayanth Othayoth2017-09-191-4/+15
| | | | | | | | | This commit provides a fix for an issue in which the cereal deserialize() would crash the phosphor-inventory, incase persistence file is empty in restore path. Change-Id: Id1d40a0e401af8acea92775d1f3337c8a897a7ec Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* inventory: implement deserializationDeepak Kodihalli2017-08-231-0/+21
| | | | | | | | | Use Cereal to deserialize inventory information persisted in the filesystem and restore that to create inventory d-bus objects. Perform the restore when the app starts. Change-Id: I0f36a9cbdde223e4bfd9e178e33f5677217ba881 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* inventory: implement serializationDeepak Kodihalli2017-08-231-0/+34
Use Cereal to serialize and persist inventory items to the filesystem. Serialize inventory objects as and when they're created/updated via the notify() API. Create a template API to perform serialization on the sdbusplus inventory interface type. An inventory item path /foo/bar/baz implementing interfaces iface1 and iface2 would be stored in paths /foo/bar/baz/iface1 and /foo/bar/baz/iface2. Change-Id: I9a175185eac1740d6f2ca86a3ee13457edfc8ea9 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud