History log of /openbmc/sdbusplus/example/ (Results 101 – 111 of 111)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
69425eb717-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 ...

fce038ad13-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 ...

284a0f9805-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 ...

75a2e25306-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 ...

a4b4a0be08-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 ...

072da3ea18-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>

817248ca18-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 ...

e36cf85c03-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 ...

7bfb70ac03-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 ...

4edb785c03-Jul-2017 Patrick Williams <patrick@stwcx.xyz>

example: create calculator server app

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

8eb1b85a03-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>


/openbmc/sdbusplus/.gitignore
/openbmc/sdbusplus/LICENSE
/openbmc/sdbusplus/Makefile.am
/openbmc/sdbusplus/README.md
/openbmc/sdbusplus/bootstrap.sh
/openbmc/sdbusplus/configure.ac
net/poettering/Calculator.errors.yaml
net/poettering/Calculator.interface.yaml
/openbmc/sdbusplus/mapbox/LICENSE
/openbmc/sdbusplus/mapbox/LICENSE_1_0.txt
/openbmc/sdbusplus/mapbox/README
/openbmc/sdbusplus/mapbox/recursive_wrapper.hpp
/openbmc/sdbusplus/mapbox/variant.hpp
/openbmc/sdbusplus/sdbusplus.pc.in
/openbmc/sdbusplus/sdbusplus/bus.hpp.in
/openbmc/sdbusplus/sdbusplus/bus/match.hpp
/openbmc/sdbusplus/sdbusplus/exception.cpp
/openbmc/sdbusplus/sdbusplus/exception.hpp
/openbmc/sdbusplus/sdbusplus/message.hpp
/openbmc/sdbusplus/sdbusplus/message/append.hpp
/openbmc/sdbusplus/sdbusplus/message/native_types.hpp
/openbmc/sdbusplus/sdbusplus/message/read.hpp
/openbmc/sdbusplus/sdbusplus/message/types.hpp
/openbmc/sdbusplus/sdbusplus/server.hpp.in
/openbmc/sdbusplus/sdbusplus/server/README.md
/openbmc/sdbusplus/sdbusplus/server/bindings.hpp
/openbmc/sdbusplus/sdbusplus/server/interface.hpp
/openbmc/sdbusplus/sdbusplus/server/manager.hpp
/openbmc/sdbusplus/sdbusplus/server/object.hpp
/openbmc/sdbusplus/sdbusplus/server/transaction.cpp
/openbmc/sdbusplus/sdbusplus/server/transaction.hpp
/openbmc/sdbusplus/sdbusplus/slot.hpp
/openbmc/sdbusplus/sdbusplus/utility/tuple_to_array.hpp
/openbmc/sdbusplus/sdbusplus/utility/type_traits.hpp
/openbmc/sdbusplus/sdbusplus/vtable.hpp
/openbmc/sdbusplus/test/Makefile.am
/openbmc/sdbusplus/test/bus/list_names.cpp
/openbmc/sdbusplus/test/bus/match.cpp
/openbmc/sdbusplus/test/message/append.cpp
/openbmc/sdbusplus/test/message/native_types.cpp
/openbmc/sdbusplus/test/message/read.cpp
/openbmc/sdbusplus/test/message/types.cpp
/openbmc/sdbusplus/test/utility/tuple_to_array.cpp
/openbmc/sdbusplus/test/utility/type_traits.cpp
/openbmc/sdbusplus/test/vtable/vtable.cpp
/openbmc/sdbusplus/test/vtable/vtable_c.c
/openbmc/sdbusplus/tools/Makefile.am
/openbmc/sdbusplus/tools/sdbus++
/openbmc/sdbusplus/tools/sdbusplus/__init__.py
/openbmc/sdbusplus/tools/sdbusplus/enum.py
/openbmc/sdbusplus/tools/sdbusplus/error.py
/openbmc/sdbusplus/tools/sdbusplus/interface.py
/openbmc/sdbusplus/tools/sdbusplus/method.py
/openbmc/sdbusplus/tools/sdbusplus/namedelement.py
/openbmc/sdbusplus/tools/sdbusplus/property.py
/openbmc/sdbusplus/tools/sdbusplus/renderer.py
/openbmc/sdbusplus/tools/sdbusplus/signal.py
/openbmc/sdbusplus/tools/sdbusplus/templates/error.mako.cpp
/openbmc/sdbusplus/tools/sdbusplus/templates/error.mako.hpp
/openbmc/sdbusplus/tools/sdbusplus/templates/error.mako.md
/openbmc/sdbusplus/tools/sdbusplus/templates/interface.mako.md
/openbmc/sdbusplus/tools/sdbusplus/templates/interface.mako.server.cpp.in
/openbmc/sdbusplus/tools/sdbusplus/templates/interface.mako.server.hpp
/openbmc/sdbusplus/tools/sdbusplus/templates/method.mako.md
/openbmc/sdbusplus/tools/sdbusplus/templates/method.mako.prototype.hpp.in
/openbmc/sdbusplus/tools/sdbusplus/templates/property.mako.md
/openbmc/sdbusplus/tools/sdbusplus/templates/signal.mako.md
/openbmc/sdbusplus/tools/sdbusplus/templates/signal.mako.prototype.hpp
/openbmc/sdbusplus/tools/setup.py.in

12345