Hi,<br><br><div><span class="gmail_quote">On 7/5/07, <b class="gmail_sendername">P. Durante</b> &lt;<a href="mailto:shackan@gmail.com">shackan@gmail.com</a>&gt; 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 &lt;<a href="mailto:ernaveenverma@gmail.com">ernaveenverma@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; As per my previous understanding, there is a function in dbus C apis,<br>&gt; dbus_bus_register() to register a connection. To test it I have added a
<br>&gt; public function in DBus::Connection class as:<br>&gt; bool register_connection() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;return dbus_bus_register(_pvt-&gt;conn);<br>&gt; }<br>&gt;<br>&gt;<br>&gt; And in my program I am doing like:<br>&gt; DBus::Connection *pconn = DBus::Connection(bus_path);
<br>&gt; pconn-&gt;register_connection();<br>&gt;<br>&gt; After this it is working ok.<br>&gt;<br>&gt; So I have a question, is there any other way already exist to register the<br>&gt; connection, or such function is missing and we need to add one as I did
<br>&gt; above?<br><br>Yes, it&#39;s a bug, as per the doc:<br><br>&quot;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.&quot;
<br><br>the constructor should call it and it doesn&#39;t, this hasn&#39;t come up<br>earlier because only the &#39;default&#39; buses were being used.<br><br>&gt; Btv,&nbsp;&nbsp;is there any api documentation for dbus c++ bindings?
<br>&gt;</blockquote><div><br>Is it ok If I fix this bug and send a patch for it?<br>&nbsp;</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&#39;m afraid that&#39;s still on TODO.<br><br>thanks for your investigation,<br>Paolo</blockquote><div><br><br>-Br<br>Naveen <br></div><br></div><br>