~zyga/checkbox/wip

Viewing all changes in revision 3351.

  • Committer: Zygmunt Krynicki
  • Date: 2014-10-09 08:35:10 UTC
  • Revision ID: zygmunt.krynicki@canonical.com-20141009083510-ib09nkv5rql9nxvx
plainbox:session:resume: [wip] construct meta-data all at once

This patch changes the meta-data resume code not to instantiate an empty
meta-data object and fill it with values later. Instead a whole new
meta-data object is constructed at once and assigned over the old
meta-data object in the session resume sequence.

This needs more work (tests probably fail) and a little bit of thought.
I was trying to avoid triggering too many meta-data update events but
perhaps this is not worth the time. It is also tricky with regards to
the so-called early callback which means that we're going to discard
whatever update signals the caller may already have assigned to the
session state that can be injected via the early callback.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: