register many peer-to-peer connections to one object path ?

Astone Lin astone.lin at mediatek.com
Mon Apr 19 01:43:48 PDT 2010


Please excuse my poor English.
It could be better to paste the difference of source code, to?clarify what
I am talking about.



--- dbus-glib-0.84/dbus/dbus-gobject.c 2010-01-28 02:56:48.000000000 +0800
+++ as/objs/dbus-glib-0.84/dbus/dbus-gobject.c 2010-04-12
10:07:06.000000000 +0800
@@ -2175,7 +2175,7 @@ dbus_g_connection_register_g_object (DBu
?? ? ? o = iter->data;

?? ? ? /* Silently ignore duplicate registrations */
- ? ? ?if (strcmp (o->object_path, at_path) == 0)
+ ? ? ?if (strcmp (o->object_path, at_path) == 0 && (o->connection ==
connection))
?? ? ? ? return;
?? ? }





2010/4/12 Lin YT?<atonelin at msn.com>
  My purpose is to provide a service program to serve many client programs
  via peer-to-peer connections.

  However, dbus-glib binding library seems not allow duplicate registration
  of a object with a same path.
  (Traced into dbus_g_connection_register_g_object(), that do ignore
  duplicate registration just only by comparison with path name.)

  Is it possible to allow setup many peer-to-peer connections to a single
  object?
  Will it be OK, if I add a more criterion for duplicate registration by
  checking whether or not with identical connections ?


  Please tell me if I have wrong concept about relationship of dbus
  connections and object path.
  Thanks very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100419/b948a7f1/attachment.html>


More information about the dbus mailing list