diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-04-12 19:17:11 +0000 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-04-12 19:58:30 +0000 |
commit | 1f4c70a8607f332a505002992825b66ce84a1cfd (patch) | |
tree | 7a28c91e63705ed06eb307f13dd261c2232bcb6a | |
parent | 3864659ed532ade6b06fa3e833a2bebb177e5d5f (diff) | |
download | phosphor-inventory-manager-1f4c70a8607f332a505002992825b66ce84a1cfd.tar.gz phosphor-inventory-manager-1f4c70a8607f332a505002992825b66ce84a1cfd.zip |
serialization: Add cereal support for tuples
Add cereal/types/tuple.hpp to our pimgen generated serialization code so
we can serialize xyz.openbmc_project.Association.Definitions
Change-Id: I0fff8eb7c07cbc427aeb6dd65c557b773a9592c2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml | 5 | ||||
-rw-r--r-- | gen_serialization.mako.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml b/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml index eecbd41..88034d7 100644 --- a/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml +++ b/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml @@ -13,6 +13,11 @@ properties: type: int64 description: > An example int64 property with an underscore in the name. + - name: ExampleProperty5 + type: array[struct[string, string, string]] + description: > + An example array property. + # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/gen_serialization.mako.hpp b/gen_serialization.mako.hpp index 4245fd9..df49740 100644 --- a/gen_serialization.mako.hpp +++ b/gen_serialization.mako.hpp @@ -3,6 +3,7 @@ // This file was auto generated. Do not edit. #include <cereal/types/string.hpp> +#include <cereal/types/tuple.hpp> #include <cereal/types/vector.hpp> #include "config.h" % for iface in interfaces: |