summaryrefslogtreecommitdiffstats
path: root/test/message/types.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: always break template declarationsPatrick Venture2018-08-311-1/+2
| | | | | | | To better match the defined openbmc style. Change-Id: I68cda43857768bae4c904c367942cb1f0efa3e0c Signed-off-by: Patrick Venture <venture@google.com>
* update .clang-format header inclusion orderPatrick Venture2018-08-311-1/+2
| | | | | | | | Added the header inclusion order to the .clang-format file generated these changes. Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: Patrick Venture <venture@google.com>
* Update repo to conform to openbmc code standardAndrew Geissler2018-02-051-6/+5
| | | | | Change-Id: If1d6b1f04514367cc544c2507a845b3e9d6d3435 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* test: convert message_types to gtestPatrick Williams2017-05-021-21/+27
| | | | | Change-Id: Ifb5d2b9f4cb5c6700f5c0164466cc5289ee40a26 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* message-types: support obj-path and signaturePatrick Williams2017-01-091-0/+7
| | | | | Change-Id: I7cb1563af3375f2a8b22c78ac59f7e69f176933f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add type_id templatesPatrick Williams2016-09-021-0/+33
C++ templates to assist in type conversions between C++ types and dbus types. These templates provide a compile-time conversion between built-in types and a C-string of dbus types. Example: uint32_t a = 0; const char* b = "a string"; auto t = sdbusplus::message::types::type_id(a, b); This results in a tuple equal to std::make_tuple('u','s', '\0')', which can be converted to a C-string("us") by tuple_to_array. In a subsequent commit this interface will be used to do a compile-time transformation from something like: msg->append(a, b) To: sd_bus_message_append(msg, "us", a, b); The type_id template can be extended to support tuples, STL containers, and user-defined types as needed. Change-Id: I913501b51ffc24bcf4219f4297a1e0f8ebed97b5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud