[next] telepathy-mission-control: Simplify a bit storage API

Simon McVittie smcv at kemper.freedesktop.org
Mon Jan 13 06:07:37 PST 2014


Module: telepathy-mission-control
Branch: next
Commit: 2da0807f7a4b6be29b980c95b888452f5a6ddc9b
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=2da0807f7a4b6be29b980c95b888452f5a6ddc9b

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Thu Nov  7 15:07:56 2013 -0500

Simplify a bit storage API

This is an API break, but we already did some since last release.

This removes mcp_account_storage_commit() because it is redundant with
mcp_account_storage_commit_one (plugin, am, NULL);

This removes mcp_account_storage_owns() because an account is now
owned by one and only one storage plugin and MC now keeps track of
which storage plugin each account comes from.

Finally this adds default implementation on most iface methods to
make read-only plugins easier to implement. Only _get() and _list()
and mandatory.

---

 mission-control-plugins/account-storage.c |  254 ++++++++++++----------------
 mission-control-plugins/account-storage.h |   15 --
 src/mcd-account-manager.c                 |   13 +-
 src/mcd-storage.c                         |  257 +++++++++++++----------------
 src/mcd-storage.h                         |    2 +-
 tests/twisted/dbus-account-plugin.c       |   23 +--
 tests/twisted/mcp-account-diversion.c     |    7 +-
 7 files changed, 229 insertions(+), 342 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-mission-control/diff/?id=2da0807f7a4b6be29b980c95b888452f5a6ddc9b


More information about the telepathy-commits mailing list