Kernel prepatch 4.0-rc4
Kernel prepatch 4.0-rc4
Posted Mar 18, 2015 17:52 UTC (Wed) by sorokin (guest, #88478)In reply to: Kernel prepatch 4.0-rc4 by MrWim
Parent article: Kernel prepatch 4.0-rc4
If they provide some easy to use asynchronous API I think it has merit. Do you know some good C++ bindings for D-Bus (that is aware of standard library and typical C++ idioms)? A quick googling gives dbustl and boost-dbus. Probably there is something else.
Posted Mar 18, 2015 18:07 UTC (Wed)
by Cyberax (✭ supporter ✭, #52523)
[Link]
Though dbus-boost looks really good (if you happen to use Boost.Asio).
Posted Mar 19, 2015 22:46 UTC (Thu)
by MrWim (subscriber, #47432)
[Link]
It's been a few years since I've looked at this. One of the problems with C++ is that everyone has a different idea of "standard idioms" and the subset of C++ that is reasonable and good taste. Back at the time I was using a heavily modified version of dbus-c++ with a template built in to generate code from the DBus XML that fitted the idioms of our project. In that case we had an in-house implementation of futures which made async about as convenient as possible with C++03. I think given our requirements at the time it would have been easier to write on top of libdbus itself, rather than starting with dbus-c++, but that's easy to say in hindsight. I've not looked at either of these before, as the work I was doing pre-dates them. Neither seems to include a code-generator, so there is a limit to how convenient they're going to be, depending on your use-case.
Kernel prepatch 4.0-rc4
Kernel prepatch 4.0-rc4
If they provide some easy to use asynchronous API I think it has merit. Do you know some good C++ bindings for D-Bus (that is aware of standard library and typical C++ idioms)?
A quick googling gives dbustl and boost-dbus. Probably there is something else.