aa2e7f71 | 06-Jan-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message: allow obj-path and sig in STL containers
Allow object_path and signatures to be used in std::vector, std::map, and std::unordered_map.
Change-Id: Ieb592aa518bfae08da393632a1dd0ed0dd684c7a
message: allow obj-path and sig in STL containers
Allow object_path and signatures to be used in std::vector, std::map, and std::unordered_map.
Change-Id: Ieb592aa518bfae08da393632a1dd0ed0dd684c7a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
572a8ea6 | 06-Jan-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message-read: support obj-path and signature
Change-Id: Iafc2f26a10f0c5c84805e1d28bea8f17eaadc03c Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
fd3c462d | 06-Jan-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message-append: support obj-path and signature
Change-Id: I44d5195eba14c17f38cf2bf2b09eb071d54f59d8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
44982981 | 06-Jan-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message-types: support obj-path and signature
Change-Id: I7cb1563af3375f2a8b22c78ac59f7e69f176933f Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
9db28646 | 06-Jan-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message: Add class for object-path and signatures
Change-Id: I1ca54ecc5d4033c41738bd224399f80b95094430 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
b760a99c | 28-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
append/read: additional testcases for bool forms
Added test-cases for false r-value reference and l-values, in addition to existing false value.
Change-Id: I36952f06d84f9da157a618fbe093a8ca63662ceb
append/read: additional testcases for bool forms
Added test-cases for false r-value reference and l-values, in addition to existing false value.
Change-Id: I36952f06d84f9da157a618fbe093a8ca63662ceb Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
14275cfd | 10-Nov-2016 |
Brad Bishop <bradleyb@us.ibm.com> |
Enable configure of just sdbus++
Change-Id: I9910ef3c8d632ea4ed71dbf49c48c0cd798441f7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
f101ee28 | 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: testcase to read missing variant type
Commit ac52113 fixed an issue where reading a variant from a message when the C++ variant did not contain the type of the dbus variant caused the messa
message: testcase to read missing variant type
Commit ac52113 fixed an issue where reading a variant from a message when the C++ variant did not contain the type of the dbus variant caused the message to get into an invalid state.
Add a testcase for this condition.
Change-Id: Iea58a4440d72a1d2969d80f782ec1f316cb5ff29 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
75538a7b | 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix out of tree builds
The test directory needs -I$(top_srcdir) in order to find the header files provided by the project itself. When doing an in-tree build, this is done automatically by a
build: fix out of tree builds
The test directory needs -I$(top_srcdir) in order to find the header files provided by the project itself. When doing an in-tree build, this is done automatically by automake due to 'config.h' being generated in the root.
Change-Id: I3ea13eda98a73122f370a70ecf1f8d2c66540346 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
24fb2968 | 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: fix parallel test issue
Both message/append and message/read were using the same service name for testcases. Ensure they use different service names to allow parallel execution of test cas
message: fix parallel test issue
Both message/append and message/read were using the same service name for testcases. Ensure they use different service names to allow parallel execution of test cases.
Change-Id: I060c03f69db0484b863af7cb45578f183cdff331 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
83a9d0bf | 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
build: run testcases via autotools
Change-Id: Ie2aec28bac16388cef39558746dfe6ce8cba199e Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
696e3159 | 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: compile warning in testcases
Thread functions (non-void) were missing a return.
Change-Id: Ib7804d92f79b96428285058101e64dceea7ad66e Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
9e3b51e3 | 18-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: write testcase to confirm bool and double
Change-Id: I631046f3e6d46c299f5907ad811656be3d66ea60 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
9d3ec7fb | 27-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add vtable support
The sd-bus interfaces for creating a VTABLE require C-only syntax, which prevents them from being used in C++ code. Create constexpr wrappers that emit VTABLE entries so that a V
Add vtable support
The sd-bus interfaces for creating a VTABLE require C-only syntax, which prevents them from being used in C++ code. Create constexpr wrappers that emit VTABLE entries so that a VTABLE can be created in C++ code.
Change-Id: I22892de1e87448ab9dce48034c9f030bc5bab9af Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
75596786 | 11-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
variant support for append/read
Change-Id: I682275405e3c4f7c798317a60ea070b3b1a0846c Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
aa2f48af | 10-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
std::tuple support for append/read
Change-Id: If914032fa4f655af509ac58a5e0057968f71aa32 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
bbe0e436 | 10-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
std::map support for append/read
Change-Id: I3b5510b8ba400cf4d3f936f01708cb17aa009e62 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
930460c0 | 20-Jul-2016 |
Patrick Williams <patrick@stwcx.xyz> |
std::vector support for append/read
Change-Id: I1820ee2213feb37fab10a491b1099032fd48c18d Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
4fe85a30 | 08-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add message read functionality
C++ bindings for sd_bus_message_read* functions. Similar compile-time type deduction as the message::append interfaces.
Change-Id: I88639bedb9703266f7282642ce261c28b
Add message read functionality
C++ bindings for sd_bus_message_read* functions. Similar compile-time type deduction as the message::append interfaces.
Change-Id: I88639bedb9703266f7282642ce261c28b736adfc
show more ...
|
13b97c52 | 09-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
bus::process: use message::message
Change-Id: I00f913695d0db75a07d1b0520f507ee7dc469129 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
07e1d6f3 | 08-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add verification to append testcases
Change-Id: Ida08a84e5a7844ed1afd80d3319d2dfc8b77c5e1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
7802c074 | 02-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Migrate bus to message bindings
Change-Id: I29a03b146d5c050a13b4bab690d450612797f2ce Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
5b485794 | 02-Aug-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add bus bindings
Add C++ bindings for the sd_bus_(bus) class interfaces. This binding creates a unique_ptr wrapper around sd_bus*, using the appropriate sd_bus deref calls when the unique_ptr leave
Add bus bindings
Add C++ bindings for the sd_bus_(bus) class interfaces. This binding creates a unique_ptr wrapper around sd_bus*, using the appropriate sd_bus deref calls when the unique_ptr leaves scope.
Change-Id: I0bb3842e384217ac5606bb3bf350d7fc3babf1ad Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
1807fa47 | 01-Aug-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add message append functionality
Adds C++ binding to sd_bus_message_append* class functions. Uses type deduction to identify all of the parameters passed to the append function and, at compile-time
Add message append functionality
Adds C++ binding to sd_bus_message_append* class functions. Uses type deduction to identify all of the parameters passed to the append function and, at compile-time, creates the appropriate dbus type string.
Example: sdbusplus::message::append(m, "asdf"s); Is equal to: sd_bus_message_append_basic(m, 's', ("asdf"s).c_str());
Rather than use a naive sequence of ..._append_basic calls, the implementation will attempt to group multiple basic types into a single sd_bus_message_append call.
Change-Id: I1341a0299573c61588fe225c07174b743cb3a282 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
51103a41 | 20-Jul-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add type_id templates
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 t
Add type_id templates
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>
show more ...
|