Bug 17427 - Alternate constructor to create TpChannel from an a{sv}
Summary: Alternate constructor to create TpChannel from an a{sv}
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Will Thompson
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 07:11 UTC by Simon McVittie
Modified: 2009-01-20 04:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2008-09-04 07:11:20 UTC
If we could pass an a{sv} of immutable properties to a TpChannel at construct time, this would speed up construction considerably when the Requests API becomes available - we could pre-populate a lot of the cached information.

The API could perhaps be:

TpChannel *tp_channel_new_with_properties (TpConnection *, const GHashTable *)

This might also be a good time to extend the "channel-ready" guarantee to include "we have inspected the channel's TargetHandle", as Zdra has requested. On modern connection managers this will often be essentially free, by using the TargetID property.
Comment 1 Simon McVittie 2008-11-13 06:57:59 UTC
Implemented on a branch, awaiting review.
Comment 2 Simon McVittie 2009-01-20 04:49:32 UTC
Fixed in 0.7.19


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.