Ah it was you! Sorry!<br><br>Ok yeah. Well your code is pretty much exactly what i had now in mind for hal++. I guess i should start working on this right now. (Btw Paolo, i'll talk to you in #c++ once i get there the next time, i hope you're around, so we can talk some things through, i don't mean to just using your dbus c++ bindings without contributing back and that's something i'd like to ask you about, basically what still needs to be done)
<br><br><div><span class="gmail_quote">On 11/27/06, <b class="gmail_sendername">P. Durante</b> <<a href="mailto:shackan@gmail.com">shackan@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/27/06, David Zeuthen <<a href="mailto:david@fubar.dk">david@fubar.dk</a>> wrote:<br>> This sounds interesting however long term I'm hoping to get rid of<br>> libhal all together and make applications move towards using D-Bus
<br>> bindings.<br>><br>> For some languages / runtimes I think the plan is to create the bindings<br>> classes at runtime (e.g. Mono, Java, Python), for others (e.g. glib and<br>> probably plain C++) I think the idea is to generate stub classes.
<br>><br>> Did you check out dbus-cpp that Murray Cumming wrote 1-2 years ago?<br>><br>> <a href="http://webcvs.freedesktop.org/dbus/dbus-cpp/">http://webcvs.freedesktop.org/dbus/dbus-cpp/</a><br>><br>> Perhaps it would be useful if dbus-cpp included a binding tool that took
<br>> D-Bus introspection XML and generated stubs. Unless this is the case<br>> already? Thanks.<br>><br>As far as I know that code is discontinued, the bindings page[1]<br>mentions a new project, which does indeed have a tool to generate
<br>stubs from XML descriptions, unfortunately it currently generates only<br>server-side stubs (adding client support is the first item in the TODO<br>file), in the mean time clients have to bind signals and invoke remote
<br>methods directly (but patches are obviously welcome), as it's done in<br>one of the examples [2] (which, just so happens to interface with HAL)<br><br>[1] <a href="http://www.freedesktop.org/wiki/Software_2fDBusBindings">
http://www.freedesktop.org/wiki/Software_2fDBusBindings</a><br>[2] <a href="http://dev.openwengo.org/trac/openwengo/trac.cgi/browser/wengophone-ng/branches/wengophone-dbus-api/libs/dbus/examples/hal">http://dev.openwengo.org/trac/openwengo/trac.cgi/browser/wengophone-ng/branches/wengophone-dbus-api/libs/dbus/examples/hal
</a><br><br>regards,<br>Paolo<br></blockquote></div><br>