Hi All,<br><br>I have just started learning the dbus c++ binding. I have already used the dbus c apis so I have understanding of that.<br>In c++ binding, I am trying to make a dbus connection without using static function like DBus::Connection::SessionBus() etc. I found two public constructors DBus::Connection(Private*)
<br>, and DBus::Connection(const char * address, bool priv = true). I am unable to understand how to use first one. But I tried to use second one, but in the second one it seems it does not<br>register the connection. So when I execute, it abort with the error that connection is not registered.
<br><br>As per my previous understanding, there is a function in dbus C apis, dbus_bus_register() to register a connection. To test it I have added a public function in DBus::Connection class as:<br>bool register_connection() {
<br>&nbsp;&nbsp; return dbus_bus_register(_pvt-&gt;conn);<br>}<br><br><br>And in my program I am doing like:<br>DBus::Connection *pconn = DBus::Connection(bus_path);<br>pconn-&gt;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 connection, or such function is missing and we need to add one as I did above?<br><br>Btv,&nbsp; is there any api documentation for dbus c++ bindings?
<br><br>-Best Regards<br>Naveen