250654e8 | 11-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate error cpp
Change-Id: I63ea5ea07ab4efb0da21ee10de7fe9db429c1ffd Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
179ed9be | 11-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate error header
Change-Id: I6e1beb1da2b5c3c3ea612b9aa688ea037d6173e6 |
7d7fda56 | 11-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: parse error info yaml
Change-Id: I73361b6f9b48b32a206d1e6d3e52ff46195b3cbc Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
7aa8a1e2 | 11-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: Change namespace order
Rather than sdbusplus::server::<interface>::<interface_last> order for namespaces, use: sdbusplus::<interface>::server::<interface_last>
This avoids a name colli
sdbus++: Change namespace order
Rather than sdbusplus::server::<interface>::<interface_last> order for namespaces, use: sdbusplus::<interface>::server::<interface_last>
This avoids a name collision for two interfaces such as: - org.example.Object (class Object) - org.example.Object.Delete (namespace Object)
Change-Id: Iec5e2b61c0d5e34d0d8920abd51f469ec5cbd9a6 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
ccacc4af | 10-Nov-2016 |
Brad Bishop <bradleyb@us.ibm.com> |
sdbus++: find templates in datadir
Change-Id: Ib6ffd1ad51774825fe7227fc8ce48447bfd5b1f8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
de32f577 | 10-Nov-2016 |
Brad Bishop <bradleyb@us.ibm.com> |
Use canonical env
Workaround bitbake failing to handle /bin/env when it sanity checks for file runtime dependencies.
Change-Id: Ia967bf28cb3c2de812ad295265e728e0826e80ab Signed-off-by: Brad Bishop
Use canonical env
Workaround bitbake failing to handle /bin/env when it sanity checks for file runtime dependencies.
Change-Id: Ia967bf28cb3c2de812ad295265e728e0826e80ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
bba7f8c0 | 10-Nov-2016 |
Brad Bishop <bradleyb@us.ibm.com> |
Install sdbus++
Change-Id: Ie6af7436fdf66bd123bd196d238eff47b3fb95b8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
33906871 | 10-Nov-2016 |
Brad Bishop <bradleyb@us.ibm.com> |
Move templates
Enabling use of package_data in a setup.py.
Change-Id: Ic1423033c0607e1527b0eb31638605b53f0ccc83 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
f5c3cde9 | 21-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: fix PEP8 style errors
Change-Id: I51ce57d22c86ac80322559fa1c03cb26df8eb278 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
a475c030 | 18-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
interface: enable property-changed signals
Change-Id: I5a46fe2d948ddc6c1b86dd6f898b814767802054 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
0e9ad0d6 | 18-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: interface namespaces closed backward
In the generated interface files, the closing brackets for the namespaces were commented backwards. com.example generated:
} // namespace com }
sdbus++: interface namespaces closed backward
In the generated interface files, the closing brackets for the namespaces were commented backwards. com.example generated:
} // namespace com } // namespace example
Change-Id: I57a9d3b3ba30c2a90f243ba447c7295da258bd58 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
b2cca01b | 18-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate server bindings for properties
Change-Id: Iabfefd94d1a261355d547c8c1cfbcf27cce825b7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
5302a466 | 18-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate signal broadcast bindings
Change-Id: If1b04fedc95614c95a23768f95801e2bb9b4c0e9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
0966ce8c | 17-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
server: minor refactoring
Move files into a server subdirectory to correspond to the 'server' namespace and create a 'server.hpp' as method to gain includes needed by any server instance. Create a
server: minor refactoring
Move files into a server subdirectory to correspond to the 'server' namespace and create a 'server.hpp' as method to gain includes needed by any server instance. Create a few type aliases to reduce namespace levels.
Change-Id: I8f8ea8e57177393faa007351a540d08873d36632 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
425dc9b6 | 17-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
bus: fix method_return
method_return was using sd_bus_call instead of sd_bus_send. Fix to use sd_bus_send and move into 'message' directly since the previous arguments for having it a static method
bus: fix method_return
method_return was using sd_bus_call instead of sd_bus_send. Fix to use sd_bus_send and move into 'message' directly since the previous arguments for having it a static method in bus is no longer valid.
Change-Id: Ib74508e87f7e8be030db02b91368da7639cb28f3 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
178e8fc3 | 17-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate vtable for server bindings
Change-Id: I605a5f5db4fb2d395acab533305c7d52638fe4ce Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
adc16824 | 17-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: hook interface into server bindings
sdbusplus::server::interface class is used to register an interface on the dbus. Utilize this in the generated server bindings by containing an instance
sdbus++: hook interface into server bindings
sdbusplus::server::interface class is used to register an interface on the dbus. Utilize this in the generated server bindings by containing an instance of 'interface' and creating a proper constructor.
Change-Id: I068bbe1c370a55053193b89931fb8f7da740de52 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
affeafad | 17-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: work around unicode support in python2
unicode strings in python2 do not have certain functions, such as 'rstrip'. Send an option to Mako for python2 to ensure unicode support is disabled.
sdbus++: work around unicode support in python2
unicode strings in python2 do not have certain functions, such as 'rstrip'. Send an option to Mako for python2 to ensure unicode support is disabled.
Change-Id: Ia85581b5a091eec10e9999f30425a40e02de2ffc Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
831839ad | 16-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate callback methods for server bindings
Create sd-bus message handler methods as callbacks for object method calls. These generated callbacks will extract the parameters from the mes
sdbus++: generate callback methods for server bindings
Create sd-bus message handler methods as callbacks for object method calls. These generated callbacks will extract the parameters from the message, call the virtual-method implementation, and pack the response into a method-return message, which is sent back to the caller.
Change-Id: Ia3872bbbbfdb57375a1ffdde7e64296271cdd532 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
ce8a467c | 15-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: use style-correct names for C++ methods
Add attribute conversions for 'name' to support camelCase, CamelCase and snake_case naming styles. This is done using the 'inflection' library. Con
sdbus++: use style-correct names for C++ methods
Add attribute conversions for 'name' to support camelCase, CamelCase and snake_case naming styles. This is done using the 'inflection' library. Convert server-header templates to use these as appropriate.
Change-Id: I4cecaa0fc96de9b9156e9102ccb9bf0682c8a732 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
04e007f1 | 15-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: generate header for server bindings
Add a 'server-header' command to sdbus++ that generates a class definition for the server bindings. This class defines static functions for registering
sdbus++: generate header for server bindings
Add a 'server-header' command to sdbus++ that generates a class definition for the server bindings. This class defines static functions for registering as sd-bus callbacks and virtual C++ functions to implement the method behavior.
It is expected that a server implementation will create a class, which inherits from this generated class, and implement all of the method behaviors. Instances of the class will then register on construction with sd-bus.
Signals and properties are not yet supported.
Change-Id: If0ec37b2acb6f8d528358004ec91dbe979644df7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
e70f0e8b | 14-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: renderer post-processing lambda
Some of the calls to render were required to be prefixed with, for example, 'str.strip' calls to remove extra newlines. Add an optional parameter to the ren
sdbus++: renderer post-processing lambda
Some of the calls to render were required to be prefixed with, for example, 'str.strip' calls to remove extra newlines. Add an optional parameter to the renderer for post-processing of the rendered content.
Change-Id: Ibddbdf3a9b586df30cc55c76b39a8c8784fdaf18 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
52dd41ed | 14-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: Refactor markdown into generic renderer
Change-Id: If5b1270511d9d6bfb0c9430a71d45126257793a9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
3a2cc9c7 | 14-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: remove duplicate inheritence
Change-Id: Ibdd651824df8b472308cf9ecc00b1bd1fc65f7d6 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
24e8ae6e | 14-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: missing dictionary lookup for process func
Change-Id: Ib26352d4323f55ff418e446c76994ed212819f70 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |