Bug 36134 - TpProtocol claims it doesn't support any extra iface
Summary: TpProtocol claims it doesn't support any extra iface
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/ca...
Whiteboard:
Keywords: patch
Depends on:
Blocks: 36049
  Show dependency treegraph
 
Reported: 2011-04-11 08:06 UTC by Guillaume Desmottes
Modified: 2011-04-12 07:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
TpProtocol: add supported interfaces (fdo #36134) (2.26 KB, patch)
2011-04-11 08:07 UTC, Guillaume Desmottes
Details | Splinter Review
add tp_proxy_add_interfaces() (1.72 KB, patch)
2011-04-12 05:16 UTC, Guillaume Desmottes
Details | Splinter Review
use _tp_proxy_add_interfaces() (4.44 KB, patch)
2011-04-12 05:16 UTC, Guillaume Desmottes
Details | Splinter Review
TpProtocol: add supported interfaces (fdo #36134) (1.80 KB, patch)
2011-04-12 05:16 UTC, Guillaume Desmottes
Details | Splinter Review
tp_proxy_add_interfaces: improve debug message (773 bytes, patch)
2011-04-12 06:18 UTC, Guillaume Desmottes
Details | Splinter Review
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *' (1.58 KB, patch)
2011-04-12 06:18 UTC, Guillaume Desmottes
Details | Splinter Review
More use tp_proxy_add_interfaces() (4.48 KB, patch)
2011-04-12 06:18 UTC, Guillaume Desmottes
Details | Splinter Review
TpProtocol: add supported interfaces (fdo #36134) (1.80 KB, patch)
2011-04-12 06:18 UTC, Guillaume Desmottes
Details | Splinter Review
tp_proxy_add_interfaces: interfaces is a 'const gchar * const *' (1.42 KB, patch)
2011-04-12 06:30 UTC, Guillaume Desmottes
Details | Splinter Review
Use tp_proxy_add_interfaces() more (5.12 KB, patch)
2011-04-12 06:42 UTC, Guillaume Desmottes
Details | Splinter Review

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.