Re: telepathy branch crash
Robert McQueen <[email protected]> Tue, 26 Sep 2006 02:03:19 +0100
| Newsgroups | gmane.comp.gnome.gossip.devel |
|---|---|
| Organization | Collabora Ltd |
| Message-ID | <[email protected]> |
Martyn Russell wrote: > Over the weekend I fixed a whole host of issues which _COULD_ cause > crashes, but I might not have them all. Patches would be most welcomed! If it returns false, then error will be set and the return values (**'d stuff) will be unset. > I couldn't find any, Robert, is there any documentation for this yet? > > I looked here: > http://telepathy.freedesktop.org/wiki/ The specification documents all of the methods on each interface: http://telepathy.freedesktop.org/spec.html Almost all of the API of libtelepathy is just the result of running the glib client bindings over those interfaces, so has no more documentation than the spec itself. The header files and/or folklore and/or me can tell you what the glib bindings turn certain D-Bus types into. There are a couple of bits (tp_conn_new, tp_chan_new, and tp_conn_new_channel) which set up stuff for you so you get objects and can pull out ready-made proxies for the interfaces on the channels/connections, but thats all pretty straightforward. > Yes, this is a known issue. We should fix that really. If you look at dbus.c from telepathy-feed, the last two methods show how you can enumerate the existing connections on the bus. You can do that and then find all of those which belong to the right manager and are for the correct protocol, then get a handle for your account on that connection, and see if it matches that connection's self handle. Then you can reuse existing connections (even ones you did not create) which match the account you were hoping to sign on. Regards, Rob -- Robert McQueen Director, Collabora Ltd.