Bug 77191 - [next] simplify presence mixin: GHashTable -> "has message?"
Summary: [next] simplify presence mixin: GHashTable -> "has message?"
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL:
Whiteboard: review+
Keywords: patch
Depends on:
Blocks: 68661 76369
  Show dependency treegraph
 
Reported: 2014-04-08 17:43 UTC by Simon McVittie
Modified: 2014-04-22 18:19 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2014-04-08 17:43:17 UTC
+++ This bug was initially created as a clone of Bug #76369 +++

We should make sure that dbus-glib isn't exposed in our high-level API.

TpPresenceStatus has a dbus-glib data type, but should just have a boolean - "allows message?" - since everything else that could go there is no longer in a non-deprecated interface in 0.x, let alone 1.0.
Comment 2 Xavier Claessens 2014-04-09 20:26:23 UTC
+1 for the tp-glib commit 11c91762865545ab7d0704534ac7736d78795fdf. Didn't read rest of that branch, neither did I read CM branches.

We forgot to _TP_SEAL() those presence mixin structs. TpPresenceStatusSpec has all the getters needed to move the struct to presence-mixin.c but we should add getters for TpPresenceStatus fields. Doing that saves us all that padding. I did not grep CMs to know if that's possible to do at this point, though. That's not preventing to merge your patch first though.
Comment 3 Simon McVittie 2014-04-10 12:23:34 UTC
(In reply to comment #2)
> We forgot to _TP_SEAL() those presence mixin structs. TpPresenceStatusSpec
> has all the getters needed to move the struct to presence-mixin.c but we
> should add getters for TpPresenceStatus fields. Doing that saves us all that
> padding. I did not grep CMs to know if that's possible to do at this point,
> though.

It isn't possible without CM changes: some CMs put a TpPresenceStatus on the stack.

I think this is relatively unimportant: we can do a TpPresenceMixin2 at some point if we need to.
Comment 4 Simon McVittie 2014-04-10 13:00:34 UTC
Fixed in git for 0.99.11 (CM patches to follow when I've re-tested). I'll leave this bug open until I find the other bug I'm sure I filed already for your other suggestions.
Comment 5 Simon McVittie 2014-04-22 18:19:17 UTC
(In reply to comment #4)
> I'll
> leave this bug open until I find the other bug I'm sure I filed already for
> your other suggestions.

Bug #71508, to which I have attached my work in progress.


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.