Undraft Connection.EnsureSidecar
@wjt
Submitted by Will Thompson Assigned to Will Thompson @wjt
Description
It would be useful to have a way to dangle extra objects off Connections for once-per-connection functionality that doesn't warrant a Connection interface. (For example, perhaps the OLPC-specific interfaces on Gabble and Salut connections could instead have been on a sidecar object.)
The linked spec branch is a first draft of possible API additions to support this. An HTMLified version is at http://people.freedesktop.org/~wjt/telepathy-spec-sidecars/spec/.
I wonder whether, instead of a map from full path to immutable properties, it might be better to have a map from string to immutable properties, where the string is an extra component to stick at the end of the connection's path. That would allow clients to look up (eg) the "OLPC" sidecar, rather than looking through the hash table for a sidecar that implements the org.laptop.Misc interface.
(Suggestions for a better name than “sidecar” welcome.)