f289c65f | 26-Aug-2022 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update with latest
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I461b17ee197528f125239f3cb8678dca45eaa634 |
c8447d52 | 05-Jan-2022 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
added support for optionals in unpackProperties
- Added support for optionals - Added support for pointers - Removed support for moving data from input container - Removed support for container type
added support for optionals in unpackProperties
- Added support for optionals - Added support for pointers - Removed support for moving data from input container - Removed support for container types other than std::vector
Tested: - Unit tests are passing - Examples which use unpackProperties are working correctly
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: I3dbd7333237a1373d784187951ad6abe217567d1
show more ...
|
5770f51a | 10-Jan-2022 |
Paul Fertser <fercerpav@gmail.com> |
utility: add merge_variants_t
This type is useful for processing D-Bus messages containing information for multiple interfaces. For doing sdbusplus::message::message::read() on them one needs to def
utility: add merge_variants_t
This type is useful for processing D-Bus messages containing information for multiple interfaces. For doing sdbusplus::message::message::read() on them one needs to define an std::variant which would be a combination of all the PropertiesVariant's involved.
Signed-off-by: Paul Fertser <fercerpav@gmail.com> Change-Id: Idcb7b9841cc0253f2f7d5552dae540fba5ad488d
show more ...
|
64f01226 | 14-Jul-2021 |
Patrick Williams <patrick@stwcx.xyz> |
use C++17 std::foo_v templates
Use the C++17 style `foo_v` template aliases rather than the older `foo<...>::value` style.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8510f94ead
use C++17 std::foo_v templates
Use the C++17 style `foo_v` template aliases rather than the older `foo<...>::value` style.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8510f94ead11142a71d5b1e17c64fdd53a74d741
show more ...
|
34cf6932 | 14-Jul-2021 |
Patrick Williams <patrick@stwcx.xyz> |
utility: dedup_variant: rename in C++14 '_t' style
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I10590aca0d68fe50caf0f36819fea2d73016370f |
2e98861c | 14-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: switch to C++20
Per [1], we should be building with the latest C++ version. C++20 has been final and approved for over 6 months now, so it is about time for us to switch.
1. https://github.
build: switch to C++20
Per [1], we should be building with the latest C++ version. C++20 has been final and approved for over 6 months now, so it is about time for us to switch.
1. https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#code-should-be-written-with-modern-practices
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iefbe930f9da1d134696aaec18949b2ac1d956f99
show more ...
|
4690d88c | 08-Oct-2020 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: handle duplicate generated variant types
4ac7e56e8e18202fad3b2734346c6d4c7a6957fc added support for 'size_t' and 'ssize_t' types to sdbus++. On some architectures these collide with '[u]in
sdbus++: handle duplicate generated variant types
4ac7e56e8e18202fad3b2734346c6d4c7a6957fc added support for 'size_t' and 'ssize_t' types to sdbus++. On some architectures these collide with '[u]int32_t' or '[u]int64_t' types and so may not be added to a combined variant (ie. variant<uint32_t, size_t> will fail to compile on some architectures). The generated bindings in sdbus++ need a variant from the set of all properties for some of the constructor forms.
Create a template type which will formulate a non-duplicative type set from which a variant can be constructed and modify the sdbus++ generator to use this variant type instead of std::variant directly. Added test cases here to cover this condition for 'size' and 'ssize' sdbus++ types.
It is possible this could have been resolved in the generator itself, but then the generator would have needed to know which architecture the generated bindings were going to be compiled for. This would have made the header files incompatible between x86-64 and arm32. I chose instead to keep the header files consistent across all architectures and let the compiler make the type decision.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I7db5ad2c32d86d37d920a1801cdabfcaeda89489
show more ...
|
09b88f26 | 02-Sep-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Added utility functions getAllProperties and unpackProperties
Tested: - Added example to verify that functions work correctly - Added new unit tests that are passing - All other tests are stil
Added utility functions getAllProperties and unpackProperties
Tested: - Added example to verify that functions work correctly - Added new unit tests that are passing - All other tests are still passing after this change - Added handling of new type (std::monostate) which can be used as first type in variant to represent that none of the other types was matched
Change-Id: Ic8e7c8d3116d64b94be37147ae8a80ebb5d3811d Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
127b8abe | 21-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: sync from docs master .clang-format
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8077816a5ddf7a067bdf537cb46e4e32f5c4ef65 |
95269dbc | 31-Aug-2018 |
Patrick Venture <venture@google.com> |
update .clang-format header inclusion order
Added the header inclusion order to the .clang-format file generated these changes.
Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: P
update .clang-format header inclusion order
Added the header inclusion order to the .clang-format file generated these changes.
Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
977d4d48 | 23-Jun-2018 |
William A. Kennington III <wak@google.com> |
test/type_traits: Convert to gtest
This is a fairly minimal and non-invasive change. This test doesn't really require the googletest framework since it is just using static_asserts. However, this mo
test/type_traits: Convert to gtest
This is a fairly minimal and non-invasive change. This test doesn't really require the googletest framework since it is just using static_asserts. However, this moves us toward uniform testing.
Change-Id: I35d507cf6c97384146120d4f8f1b5a2e52834a6d Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
072da3ea | 18-Jan-2018 |
Andrew Geissler <geissonator@yahoo.com> |
Update repo to conform to openbmc code standard
Change-Id: If1d6b1f04514367cc544c2507a845b3e9d6d3435 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> |
608b5bc0 | 28-Apr-2017 |
Patrick Williams <patrick@stwcx.xyz> |
test: convert tuple_to_array to gtest
Change-Id: Ie110fba8f1961ba0e1a46c670d98a2351a46d061 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
4dbdef70 | 20-Jul-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add tuple_to_array template
C++ template to convert tuple<T...> to array<T, N>.
Change-Id: Ia9dff382f9c57d7608edaec281cf7d867aeed4b2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
0c841a17 | 20-Jul-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add array_to_ptr template
C++ template to convert T[] type to T* type.
Change-Id: I91c63b5d14b77f82d3deea3772990912dfcd4277 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |