Hi,<br><br>these all are very good points. I'm all for changing "reasonably everything" to the "Caps model" - that is, to signatures which are as easy to implement as possible. As far as I can see, this wouldn't compromise correctness much in most cases.
<br> <br>Your opinions on this issue are greatly appreciated.<br><br>Br,<br>Olli Salli<br>Collabora Ltd<br><br><div><span class="gmail_quote">On 9/20/06, <b class="gmail_sendername">Daniel d'Andrada Tenório de Carvalho</b>
<<a href="mailto:daniel.carvalho@indt.org.br">daniel.carvalho@indt.org.br</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi all,<br><br>First of all, thanks for your attention, Olli.<br><br>I agree with you when it comes to ease of implementation. It's a pain to<br>handle complex D-Bus signatures in C, for instance. What I'm trying to<br>do with that change proposal is to make Telepathy a little more
<br>consistent, more coherent.<br><br>What are we standing for? Simple signatures compromising correctness to<br>favor ease of implementation or the opposite instead? Because,<br>currently, Telepathy stands for both of them (or none, depending on your
<br>point of view).<br><br>Connection.Interface.Capabilities interface seems to be on the "ease of<br>use" side. But let's take a look at, for instance, PresenceUpdate signal<br>from Connection.Interface.Presence
interface. It has this intimidating<br>(or beautiful) signature:<br><br>a{u(ua{sa{sv}})}<br><br>This is clearly not easy to construct, handle or iterate over. If we<br>were to favor the "ease of use" side, this signature should be
<br>simplified (following the Capabilities interface style) to:<br><br>a(uusa{sv})<br><br>So, Connection.Interface.Capabilities is on the "ease of use" side and<br>Connection.Interface.Presence is on the "correctness" side.
<br><br>What side are we taking?<br><br>Hope you guys take some time to think over it.<br><br>Regards,<br>Daniel d'Andrada T. de Carvalho - INdT<br><br>ext Olli Salli wrote:<br>> Hi,<br>><br>> I'm afraid I don't see much benefit in the change. It just makes the
<br>> signals harder to construct and iterate. However, some clarification<br>> to the spec could be added regarding the issue, if it's misleading.<br>><br>> Br,<br>> Olli Salli<br>><br>> On 9/18/06, *Daniel d'Andrada Tenório de Carvalho*
<br>> <<a href="mailto:daniel.carvalho@indt.org.br">daniel.carvalho@indt.org.br</a> <mailto:<a href="mailto:daniel.carvalho@indt.org.br">daniel.carvalho@indt.org.br</a>>> wrote:<br>><br>> Hi everyone,
<br>><br>> The some method signatures of the current<br>> Connection.Interface.Capabilities are looking somewhat crude.<br>><br>> They currently use a tuple (contact_handle, channel_type,<br>> type_generic_flags, type_specific_flags).
<br>><br>> I'm proposing using (contact_handle, array(channel_type,<br>> type_generic_flags, type_specific_flags))<br>> since each handle may advertise several channel types.<br>><br>> The current specification "just works", of course, but its simplistic
<br>> approach can be an issue (e.g. misleading).<br>><br>> Attached to this e-mail is a patch to solve that.<br>><br>> Regards,<br>> Daniel d'Andrada T. de Carvalho - INdT<br>><br></blockquote>
</div><br>