Hi,<br><br><div><span class="gmail_quote">On 7/5/07, <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 7/5/07, Naveen Verma <<a href="mailto:ernaveenverma@gmail.com">ernaveenverma@gmail.com</a>> wrote:<br>><br>> As per my previous understanding, there is a function in dbus C apis,<br>> dbus_bus_register() to register a connection. To test it I have added a
<br>> public function in DBus::Connection class as:<br>> bool register_connection() {<br>> return dbus_bus_register(_pvt->conn);<br>> }<br>><br>><br>> And in my program I am doing like:<br>> DBus::Connection *pconn = DBus::Connection(bus_path);
<br>> pconn->register_connection();<br>><br>> After this it is working ok.<br>><br>> So I have a question, is there any other way already exist to register the<br>> connection, or such function is missing and we need to add one as I did
<br>> above?<br><br>Yes, it's a bug, as per the doc:<br><br>"If you open a bus connection with dbus_connection_open() or<br>dbus_connection_open_private() you will have to dbus_bus_register()<br>yourself, or make the appropriate registration method calls yourself."
<br><br>the constructor should call it and it doesn't, this hasn't come up<br>earlier because only the 'default' buses were being used.<br><br>> Btv, is there any api documentation for dbus c++ bindings?
<br>></blockquote><div><br>Is it ok If I fix this bug and send a patch for it?<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm afraid that's still on TODO.<br><br>thanks for your investigation,<br>Paolo</blockquote><div><br><br>-Br<br>Naveen <br></div><br></div><br>