Hi folks,<br>
<br>
Suppose that I need work with the following paths:<br>
<br>
* Main path<br>
path: &quot;/org/bluez/Manager&quot; (always active)<br>
<br>
* Device dependent Service<br>
path: &quot;/org/bluez/Manager/default/controller&quot; (default HCI services)<br>
path: &quot;/org/bluez/Manager/hci0/controller&quot; (HCI services)<br>
path: &quot;/org/bluez/Manager/hci1/controller&quot; (HCI services)<br>
path: &quot;/org/bluez/Manager/default/pan&quot; (default PAN services)<br>
path: &quot;/org/bluez/Manager/hci0/pan&quot; (PAN services)<br>
path: &quot;/org/bluez/Manager/hci1/pan&quot; (PAN services)<br>
path: &quot;/org/bluez/Manager/default/serial&quot; (default RFCOMM services)<br>
path: &quot;/org/bluez/Manager/hci0/serial&quot; (RFCOMM services)<br>
path: &quot;/org/bluez/Manager/hci1/serial&quot; (RFCOMM services)<br>
path: &quot;/org/bluez/Manager/defaulti/services&quot; (default SDP publish/search)<br>
path: &quot;/org/bluez/Manager/hci0/services&quot; (services SDP publish/search)<br>
path: &quot;/org/bluez/Manager/hci1/services&quot; (services SDP publish/search)<br>
<br>
When an adapter is detached the paths related to this adapter must unregistered. If I use the function <br>
dbus_connection_register_object_path I will not be able to handle the message in the &quot;main path&quot; and<br>
the clients will receive an unknown service. However if I use dbus_connection_register_fallback, messages<br>
sent to child paths will the catched by the &quot;main path&quot; if the child path was unregistered.<br>
<br>
My question is: how work properly with fallback register? Which function should I use for child path(normal or fallback)? <br>
What are the overheads of working with this structure?<br>
<br>
I checked the HAL code and noticed that there is only one registering call, how paths are registered for each device attached?<br>
&nbsp;&nbsp;&nbsp; dbus_connection_register_fallback (new_connection,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;/org/freedesktop&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&amp;vtable,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NULL);<br>
<br>
<br>
Regards,<br>
Claudio.<br>-- <br>---------------------------------------------------------<br>Claudio Takahasi<br>Nokia's Institute of Technology - INdT<br><a href="mailto:claudio.takahasi@indt.org.br">claudio.takahasi@indt.org.br</a>
<br>