69425eb7 | 17-Aug-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
property: Add support for const (read-only) values
There is already support for setting a property as const (see vtable.hpp and corresponding test cases). Implement this in the generated code by add
property: Add support for const (read-only) values
There is already support for setting a property as const (see vtable.hpp and corresponding test cases). Implement this in the generated code by adding support for a new yaml flag.
Closes openbmc/openbmc#2028
Tested: Added the const flag to the Software Priority property, and changing the value via REST and busctl would fail with "org.freedesktop.DBus.Error.PropertyReadOnly", but the code update app was able to set its value.
Change-Id: I8534753233080366503fd4f1a0c224c2946e8764 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
fce038ad | 13-Apr-2018 |
James Feist <james.feist@linux.intel.com> |
Add sbusplus properties server
Add properties server similar to boost-dbus that allows for creating dbus interfaces during runtime. This adds support for creating methods and get / set properties.
Add sbusplus properties server
Add properties server similar to boost-dbus that allows for creating dbus interfaces during runtime. This adds support for creating methods and get / set properties.
Get / set property callbacks are stored in flat_maps of std::function allowing custom get / set functions. Methods are also stored in this way allowing for creating of interfaces without using any yaml. There is one C level callback for properties get, properties set, and method calls that lookup the correct std::function in the flat_map to call.
Tested: Ran asio-example on bmc, and updated fru-device. Change-Id: I19881049f4307fe9c68f78df8854f14afdd6c362 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
284a0f98 | 05-Apr-2018 |
James Feist <james.feist@linux.intel.com> |
Add boost asio async connection
Add an async connection and example of usage. This connection inherits the bus object and allows async method calls using boost asio. Most of these concepts are from
Add boost asio async connection
Add an async connection and example of usage. This connection inherits the bus object and allows async method calls using boost asio. Most of these concepts are from boost-dbus.
Change-Id: I33b5349d543c9ff4b6ee1ce15346c709c052e1ae Tested: Compiled and ran asio-example on bmc. Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
75a2e253 | 06-Jun-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
property: Add errors support
Add errors support for properties.
Closes openbmc/openbmc#1641
Tested: Verified that when an interface threw a defined property error, the generated code caught it and
property: Add errors support
Add errors support for properties.
Closes openbmc/openbmc#1641
Tested: Verified that when an interface threw a defined property error, the generated code caught it and returned an error to the REST call.
Change-Id: I8cb8c77995026f12e373291822e4e0a623a84d81 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
a4b4a0be | 08-Apr-2018 |
Gunnar Mills <gmills@us.ibm.com> |
Spelling fixes
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2.
Change-Id: I6dcf7
Spelling fixes
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2.
Change-Id: I6dcf76a74487d04d4568d55d08d1b07f627e5e74 Signed-off-by: Gunnar Mills <gmills@us.ibm.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> |
817248ca | 18-Jul-2017 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix out of tree build in example
The following problems existed:
* The sdbus++ output directory would not exist so invoke mkdir. * The directory for the example schema is not in . but in $
build: fix out of tree build in example
The following problems existed:
* The sdbus++ output directory would not exist so invoke mkdir. * The directory for the example schema is not in . but in $(srcdir), so use -r directive to sdbus++ to set schema root accordingly. * The mako template files generated into the build tree, so pass sdbus++ the template path relative to $(top_builddir).
Change-Id: I76f70ed832c7cf0ce2a7b8a8ec21672ebcea9c02 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
e36cf85c | 03-Jul-2017 |
Patrick Williams <patrick@stwcx.xyz> |
example: add client API example
Create a small application which calls org.freedesktop.login1 to display a list of the active users.
Change-Id: I8d7879d98f6b89a9315aa0c71b928c50490dfedb Signed-off-
example: add client API example
Create a small application which calls org.freedesktop.login1 to display a list of the active users.
Change-Id: I8d7879d98f6b89a9315aa0c71b928c50490dfedb Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
7bfb70ac | 03-Jul-2017 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: move default directory
With example moved to the root directory and there being an explicit makefile for the example calculator application, there is no need to have sdbus++ default to 'exa
sdbus++: move default directory
With example moved to the root directory and there being an explicit makefile for the example calculator application, there is no need to have sdbus++ default to 'example'.
Change-Id: I2a20883d7ea88b56e1bd073ef395c236215a4132 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
4edb785c | 03-Jul-2017 |
Patrick Williams <patrick@stwcx.xyz> |
example: create calculator server app
Change-Id: Ie2ad4ff00208056c48c0d596053b20b82f1fb3a1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
8eb1b85a | 03-Jul-2017 |
Patrick Williams <patrick@stwcx.xyz> |
example: move schema to top-level dir
Change-Id: Icb6a6ca266181e9b401eec64dbbada8b7e334229 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |