Bug 19684 - per_channel_manager_caps shouldn't be accessed directly
Summary: per_channel_manager_caps shouldn't be accessed directly
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: salut (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.freedesktop.org/~jonny/te...
Whiteboard:
Keywords: patch
Depends on: 30680 31301
Blocks: 24653
  Show dependency treegraph
 
Reported: 2009-01-22 04:06 UTC by Guillaume Desmottes
Modified: 2011-03-17 07:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2009-01-22 04:06:44 UTC
We have the same problem with SalutSelf->per_channel_manager_caps and SalutContact->per_channel_manager_caps in the requestotron-tubes-and-caps-with-complex-types-with-gibber-listener branch.

+++ This bug was initially created as a clone of Bug #19683 +++

Lot of components access, modify, create and destroy the GabblePresence->per_channel_manager_caps hash table which is not very OO friendly.

We should refactor code to add accessors and do that properly.
Comment 1 Simon McVittie 2010-10-07 08:05:01 UTC
I'd go further, and say "per_channel_manager_caps shouldn't exist". The referenced branch makes Salut behave more like Gabble, by importing large chunks of my capabilities refactoring from Gabble 0.9.
Comment 2 Jonny Lamb 2011-03-17 03:45:03 UTC
I've started looking at your branch.
Comment 3 Jonny Lamb 2011-03-17 05:52:02 UTC
Absolutely ridiculous. This is a great branch. I only had one little niggle which I've fixed in my branch on top of yours.

I'll get that reviewed and then we can GOGOGOGOGOGOGO!
Comment 4 Jonny Lamb 2011-03-17 06:01:20 UTC
Okay I merged this with master and fixed the conflicts and the new compiler warnings. I also fixed a leak. Go me.
Comment 5 Jonny Lamb 2011-03-17 07:57:18 UTC
Merged, woo! Thanks Simon!


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.