History log of /openbmc/phosphor-inventory-manager/gen_serialization.mako.hpp (Results 1 – 10 of 10)
Revision Date Author Comments
# b11abf26 29-Nov-2023 Santosh Puranik <santosh.puranik.ibm@gmail.com>

serialization: Add support for std::set

xyz.openbmc_project.Common.Threshold interface has added a property of
type `set` (which sdbusplus maps to a std::set). Add Cereal support for
serializing std

serialization: Add support for std::set

xyz.openbmc_project.Common.Threshold interface has added a property of
type `set` (which sdbusplus maps to a std::set). Add Cereal support for
serializing std::set.

Tested:
Build that was earlier failing for the Threshold type now passes.

Change-Id: Ic22bfe94f902dc7fc4ffd0ef0fcdfa6565620f60
Signed-off-by: Santosh Puranik <santosh.puranik.ibm@gmail.com>

show more ...


# 23314a5c 13-Apr-2022 George Liu <liuxiwei@inspur.com>

meson: Eliminate warning messages

Eliminate `[-Werror=unused-parameter]` warning message

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: If4f8aee3ce71b5c6e6ad1d168859c03bd7bfa933


# 3e2d9641 06-Oct-2021 Patrick Williams <patrick@stwcx.xyz>

catch exceptions as const

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id5a06698ddd6f91510a34aaf9df535bd34c099c0


# 903b0de2 09-Jun-2021 Santosh Puranik <santosh.puranik@in.ibm.com>

serialization: Use Cereal NVP

This commit modifies the serialization APIs to start utilizing
Cereal's name-value pair (NVP) feature to store to and load from
the JSONs where the interface data is pe

serialization: Use Cereal NVP

This commit modifies the serialization APIs to start utilizing
Cereal's name-value pair (NVP) feature to store to and load from
the JSONs where the interface data is persisted.

Using NVP enables us to add/remove properties to interfaces
without breaking de-serialization.

Since we need to be able to handle both old mechanism of not
using NVP as well as the new one, this commit also bumps up the
Cereal class version to 2 by default. The load functions then look
at the version to decide how best to load the object. The save
functions always store with NVP.

Tested:
Verified the serialized JSONs contained NVP type data.
Verified that the new code is still able to load the
old JSONs.

Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: I583b842b8aaa23ee61bb98fdcd5a20d718163be6

show more ...


# 23a8d935 06-Dec-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

don't emit unnecessary signals

Fix a number of places where DBus signals are emitted when they should
not be:

-Prior to claiming a well known DBus service name
-When using the map-of-properties sdb

don't emit unnecessary signals

Fix a number of places where DBus signals are emitted when they should
not be:

-Prior to claiming a well known DBus service name
-When using the map-of-properties sdbusplus interface constructor

On a system with ~175 inventory interfaces this eliminates 650
PropertiesChanged and ObjectManager signals on PIM startup.

Change-Id: I7b8fa6af69ca3553f5b2ea49e488a75a592a4d0b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 84b99d99 14-Oct-2020 Patrick Williams <patrick@stwcx.xyz>

serialization: add cereal support for maps

xyz.openbmc_project.Inventory.Decorator.ManufacturingExt added a 'dict'
type, so we need to add the corresponding cereal header.

Signed-off-by: Patrick Wi

serialization: add cereal support for maps

xyz.openbmc_project.Inventory.Decorator.ManufacturingExt added a 'dict'
type, so we need to add the corresponding cereal header.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6d372298f2c942065d0f143d0e9c4bb0e1f226a6

show more ...


# 1f4c70a8 12-Apr-2019 Brad Bishop <bradleyb@fuzziesquirrel.com>

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: I0fff8e

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>

show more ...


# 3864659e 12-Apr-2019 Brad Bishop <bradleyb@fuzziesquirrel.com>

serialization: use the same inflection as sdbus++

When generating code sdbus++ uses python inflection to normalize names.
Use the sdbus++ module that does this when we generate the code that
calls m

serialization: use the same inflection as sdbus++

When generating code sdbus++ uses python inflection to normalize names.
Use the sdbus++ module that does this when we generate the code that
calls methods in code generated by sdbus++. This avoids build failures
like:

gen_serialization.hpp:22:68: error: ‘const class
sdbusplus::xyz::openbmc_project::Example::server::Iface2’ has no member
named ‘example_Property4’; did you mean ‘exampleProperty4’?

Change-Id: I4b6dbb1f977465ea176f27d021ed2633ae40c37b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 2c4425e8 29-Sep-2017 Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

Enable Cereal class versioning

Change-Id: I0cb5a444fdd65138503d4360f03e66c5032f9870
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>


# f7b0399a 04-Aug-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

pimgen: generate serialization code

Subsequent commits will introduce serialization of inventory properties.
Generate the save()/load() functions required by Cereal.

Change-Id: I2ce16d205cad9684711

pimgen: generate serialization code

Subsequent commits will introduce serialization of inventory properties.
Generate the save()/load() functions required by Cereal.

Change-Id: I2ce16d205cad9684711c49c32ddae9f69cd8632d
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...