History log of /openbmc/phosphor-inventory-manager/types.hpp (Results 1 – 17 of 17)
Revision Date Author Comments
# 51aff45e 16-Dec-2024 Matt Spinler <spinler@us.ibm.com>

Remove vim mode lines

Editor settings aren't needed in source files.

Change-Id: Ieb0229b6fe0bb14f128b6946a29a3283a53f0b90
Signed-off-by: Matt Spinler <spinler@us.ibm.com>


# 89c5f77f 31-Jan-2023 Pavithra Barithaya <pavithra.b@ibm.com>

Add additional variant types to InterfaceVariantType

Add uint16 and vector<string> to InterfaceVariantType
to support for the Notify D-Bus method.

Change-Id: I39e717270b5f01af801ecc4ac6f0bece48b25c

Add additional variant types to InterfaceVariantType

Add uint16 and vector<string> to InterfaceVariantType
to support for the Notify D-Bus method.

Change-Id: I39e717270b5f01af801ecc4ac6f0bece48b25cca
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>

show more ...


# 563306f6 22-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t

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

show more ...


# ab1f8b52 05-Apr-2021 Alpana Kumari <alpankum@in.ibm.com>

Support Variant Type size_t

size_t type will be used for countable/sizable properties like MemorySize.

Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I001320eae72afd3aa96209c93579ef7

Support Variant Type size_t

size_t type will be used for countable/sizable properties like MemorySize.

Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I001320eae72afd3aa96209c93579ef7fb20d722f

show more ...


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

style: update clang-format

Pull the most recent OpenBMC style rules and run clang-format.

Change-Id: I11a25ea1e62d6c739010d9dd742a139fb17cc09a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.co

style: update clang-format

Pull the most recent OpenBMC style rules and run clang-format.

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

show more ...


# 26f8668d 13-May-2020 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: remove deprecated variant_ns

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


# af2eb7a0 16-Oct-2019 Alpana Kumari <alpankum@in.ibm.com>

Add support for byte array as a property type

It is useful for the PIM to hold byte array type properties.
In some cases, data to write to the d-bus is of array of bytes type.
One of that case is vp

Add support for byte array as a property type

It is useful for the PIM to hold byte array type properties.
In some cases, data to write to the d-bus is of array of bytes type.
One of that case is vpd data where D-bus method "Notify" gets called
to write it down.

Change-Id: I1cdd3479197b16c86d3976a70636877713cf33ad
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>

show more ...


# b666e539 11-Dec-2018 Brad Bishop <bradleyb@fuzziesquirrel.com>

types: minor build improvements

We don't need all of message.hpp to be included from types.hpp since
all we need is the variant definition. Instead, just get
sdbusplus/message/types.hpp, which has

types: minor build improvements

We don't need all of message.hpp to be included from types.hpp since
all we need is the variant definition. Instead, just get
sdbusplus/message/types.hpp, which has the variant definition.

message.hpp picks up <memory> so add that where it is now missing
(events.hpp).

Add a missing cstdint include.

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

show more ...


# 25d54b51 21-Nov-2018 Brad Bishop <bradleyb@fuzziesquirrel.com>

Replace std::experimental::any with std::any

This is possible and preferrable now with the switch to c++17.

Change-Id: I0c314ae9a85c8c34274cc971e63b17988db31a2b
Signed-off-by: Brad Bishop <bradleyb

Replace std::experimental::any with std::any

This is possible and preferrable now with the switch to c++17.

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

show more ...


# f094d442 26-Sep-2018 Matthew Barth <msbarth@us.ibm.com>

Get an inventory property's value

Adds support for inventory manager to retrieve a property's value that
it hosts as input to condition tests. Utilizing a provided sdbusplus
server binding member fu

Get an inventory property's value

Adds support for inventory manager to retrieve a property's value that
it hosts as input to condition tests. Utilizing a provided sdbusplus
server binding member function to get a property from the inventory
hosted interface, a property can be read from that interface within
inventory manager. After the property is read, the condition test is
performed and the resulting action(s) occur.

The only currently supported condition test for using a property from
within inventory manager is the `propertyIs` condition.

This is an example of the expected generated source to get a property
from within inventory manager:

make_filter(functor::propertyIs(
"/system/chassis",
"xyz.openbmc_project.Inventory.Decorator.CoolingType",
"WaterCooled",
true,
"xyz.openbmc_project.Inventory.Manager",
make_get_property<sdbusplus::xyz::openbmc_project::Inventory::
Decorator::server::CoolingType::PropertiesVariant>
(
functor::getProperty<sdbusplus::xyz::openbmc_project::
Inventory::Decorator::server::CoolingType>
(
"/system/chassis",
"xyz.openbmc_project.Inventory.Decorator.CoolingType",
&sdbusplus::xyz::openbmc_project::Inventory::
Decorator::server::CoolingType::getPropertyByName,
"WaterCooled"
)
)
))

Tested:
Manually edited generated code to use property within inventory
and actions occurred when condition passed
Manually edited generated code to use property within inventory
and actions did not run when condition failed
Actions not run when get property function omitted

Change-Id: I094bbacbcdeb239d33cac343b2daeb5f86e0a58a
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# a680d1ef 14-Oct-2018 Patrick Venture <venture@google.com>

formatter: update clang-format and fix-up file(s)

clang-format-6.0 introduced new changes, also then updates to
.clang-format introduce more new changes.

Change-Id: Iec9f84e3a7a5bf254d66eee46cdc9b3

formatter: update clang-format and fix-up file(s)

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>

show more ...


# 615b2a8f 29-Mar-2018 Brad Bishop <bradleyb@fuzziesquirrel.com>

Enable clang-format

Fix up problems and enable clang-format during CI builds.

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


# d0f48adc 30-Jan-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add path conditions

Add support to setProperty and destroyObject to conditionally
perform their action based on the result of a condition testing
functor.

Change-Id: I67ded31f4a7ee0f7a29bb6edc06ebf

Add path conditions

Add support to setProperty and destroyObject to conditionally
perform their action based on the result of a condition testing
functor.

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

show more ...


# c1f4798d 09-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Merge actions.hpp and events.hpp

Move all action/filter functors to a common functor.hpp.
The intent of this refactoring is to facilitate reuse
of functors in more than one context.

- Moved functo

Merge actions.hpp and events.hpp

Move all action/filter functors to a common functor.hpp.
The intent of this refactoring is to facilitate reuse
of functors in more than one context.

- Moved functors from actions.hpp and events.hpp to functor.hpp.
- Renamed events.cpp to functor.cpp.
- Moved Action/Filter types to types.hpp.
- Minor namespace shuffling.
- Update pimgen to render according to the new namespaces.

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

show more ...


# 150147ae 08-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Use std::any

Replace holder types with std::any.

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


# 03f4cd95 03-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Link with libphosphor_dbus

Link with libphosphor_dbus.

Update the manager implementation to match the new server binding
in libphosphor_dbus (bool types for notify and notify
signature change).

Ch

Link with libphosphor_dbus

Link with libphosphor_dbus.

Update the manager implementation to match the new server binding
in libphosphor_dbus (bool types for notify and notify
signature change).

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

show more ...


# 1157af1b 22-Jan-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Remove Object from testcase

Currently the testcase and the application both define their
own Object type. Move to a common header.

Change-Id: I05dba67dca7855f522be299fcfd361913ed73fbc
Signed-off-b

Remove Object from testcase

Currently the testcase and the application both define their
own Object type. Move to a common header.

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

show more ...