Bug 36134

Summary: TpProtocol claims it doesn't support any extra iface
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/cassidy/telepathy-glib;a=shortlog;h=refs/heads/protocol-ifaces-36134
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 36049    
Attachments: TpProtocol: add supported interfaces (fdo #36134)
add tp_proxy_add_interfaces()
use _tp_proxy_add_interfaces()
TpProtocol: add supported interfaces (fdo #36134)
tp_proxy_add_interfaces: improve debug message
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *'
More use tp_proxy_add_interfaces()
TpProtocol: add supported interfaces (fdo #36134)
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *'
Use tp_proxy_add_interfaces() more

Description Guillaume Desmottes 2011-04-11 08:06:13 UTC
We should init its interfaces using tp_proxy_add_interface_by_id().
Comment 1 Guillaume Desmottes 2011-04-11 08:07:40 UTC
Created attachment 45478 [details] [review]
TpProtocol: add supported interfaces (fdo #36134)
Comment 2 Guillaume Desmottes 2011-04-12 05:16:19 UTC
Created attachment 45513 [details] [review]
add tp_proxy_add_interfaces()
Comment 3 Guillaume Desmottes 2011-04-12 05:16:22 UTC
Created attachment 45514 [details] [review]
use _tp_proxy_add_interfaces()
Comment 4 Guillaume Desmottes 2011-04-12 05:16:26 UTC
Created attachment 45515 [details] [review]
TpProtocol: add supported interfaces (fdo #36134)
Comment 5 Guillaume Desmottes 2011-04-12 06:18:20 UTC
Created attachment 45522 [details] [review]
tp_proxy_add_interfaces: improve debug message
Comment 6 Guillaume Desmottes 2011-04-12 06:18:24 UTC
Created attachment 45523 [details] [review]
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *'
Comment 7 Guillaume Desmottes 2011-04-12 06:18:28 UTC
Created attachment 45524 [details] [review]
More use tp_proxy_add_interfaces()
Comment 8 Guillaume Desmottes 2011-04-12 06:18:34 UTC
Created attachment 45525 [details] [review]
TpProtocol: add supported interfaces (fdo #36134)
Comment 9 Will Thompson 2011-04-12 06:19:49 UTC
Review of attachment 45522 [details] [review]:

yup.
Comment 10 Will Thompson 2011-04-12 06:20:39 UTC
Review of attachment 45523 [details] [review]:

::: telepathy-glib/proxy.c
@@ +659,3 @@
     return;
 
+  for (iter = (const gchar **) interfaces; *iter != NULL; iter++)

no, you should change the type of 'iter' rather than casting interfaces.
Comment 11 Will Thompson 2011-04-12 06:27:27 UTC
Review of attachment 45524 [details] [review]:

“More use tp_proxy_add_interfaces” isn't English.

“Use tp_proxy_add_interfaces() more [widely]” is.

::: telepathy-glib/account.c
@@ +469,2 @@
+  interfaces = tp_asv_get_boxed (properties, "Interfaces", G_TYPE_STRV);
+  tp_proxy_add_interfaces (proxy, interfaces);

This could even become

tp_proxy_add_interfaces (proxy, tp_asv_get_strv (properties, "Interfaces"));

::: telepathy-glib/connection-manager.c
@@ +708,2 @@
 tp_connection_manager_add_interfaces (TpConnectionManager *self,
     const gchar * const * interfaces)

This function doesn't do anything else, and isn't API, so just delete it?
Comment 12 Will Thompson 2011-04-12 06:28:09 UTC
Review of attachment 45525 [details] [review]:

aye aye cap'n
Comment 13 Guillaume Desmottes 2011-04-12 06:30:41 UTC
Created attachment 45526 [details] [review]
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *'
Comment 14 Guillaume Desmottes 2011-04-12 06:31:21 UTC
Comment on attachment 45523 [details] [review]
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *'

fixed
Comment 15 Guillaume Desmottes 2011-04-12 06:42:43 UTC
Created attachment 45527 [details] [review]
Use tp_proxy_add_interfaces() more
Comment 16 Will Thompson 2011-04-12 06:46:33 UTC
Review of attachment 45526 [details] [review]:

👍
Comment 17 Will Thompson 2011-04-12 06:48:22 UTC
Review of attachment 45527 [details] [review]:

✓
Comment 18 Guillaume Desmottes 2011-04-12 07:02:07 UTC
Merged to 0.14 and master. Will be in 0.14.4 and 0.15.0.

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.