History log of /openbmc/sdbusplus/ (Results 801 – 814 of 814)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
90b4f3ce09-Sep-2016 Patrick Williams <patrick@stwcx.xyz>

types: Use SD_BUS_TYPE_* instead of char-consts

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

930460c020-Jul-2016 Patrick Williams <patrick@stwcx.xyz>

std::vector support for append/read

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

4fe85a3008-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 ...

13b97c5209-Sep-2016 Patrick Williams <patrick@stwcx.xyz>

bus::process: use message::message

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

07e1d6f308-Sep-2016 Patrick Williams <patrick@stwcx.xyz>

Add verification to append testcases

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

7802c07402-Sep-2016 Patrick Williams <patrick@stwcx.xyz>

Migrate bus to message bindings

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

5acb549202-Sep-2016 Patrick Williams <patrick@stwcx.xyz>

Add message bindings

Add C++ bindings for the sd_bus_message_* class functions. This
binding creates a unique_ptr wrapper around sd_bus_message*, using
the appropriate sd_bus_message deref calls wh

Add message bindings

Add C++ bindings for the sd_bus_message_* class functions. This
binding creates a unique_ptr wrapper around sd_bus_message*, using
the appropriate sd_bus_message deref calls when the unique_ptr leaves
scope.

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

show more ...

5b48579402-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 ...

1807fa4701-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 ...

83a1ae5926-Jul-2016 Patrick Williams <patrick@stwcx.xyz>

Simplify mangled names for type_id_downcast_t.

Since type_id_downcast_t was a type-alias, the full template set
was placed into the mangled name for any function using it.
Create a type_id_downcast

Simplify mangled names for type_id_downcast_t.

Since type_id_downcast_t was a type-alias, the full template set
was placed into the mangled name for any function using it.
Create a type_id_downcast structure to simplify the name mangling.

This reduces a managled name like:
enable_if<is_same<array_to_ptr_t<char, remove_cv< remove_reference<
char[10]>>>, char*>
To:
enable_if<is_same<type_id_downcast<char[10]>, char*>>

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

show more ...

51103a4120-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 ...

4dbdef7020-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>

0c841a1720-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>

8aaac21e20-Jul-2016 Patrick Williams <patrick@stwcx.xyz>

Initial commit

1...<<313233