diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-15 17:34:58 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-29 19:28:33 +0000 |
commit | e7ba5a86df4e90ec334a4c8ff9a11f9305458e00 (patch) | |
tree | 418aa72ca1197432fcfdac1c09673b4328086a5e /mission-control-plugins | |
parent | 9624c084d46660721aa0173e23103cd25165a5a5 (diff) |
mcp_account_storage_commit: guarantee that we commit one at a time
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
Diffstat (limited to 'mission-control-plugins')
-rw-r--r-- | mission-control-plugins/account-storage.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mission-control-plugins/account-storage.c b/mission-control-plugins/account-storage.c index 338003c0..e30bb51e 100644 --- a/mission-control-plugins/account-storage.c +++ b/mission-control-plugins/account-storage.c @@ -743,8 +743,7 @@ mcp_account_storage_delete_finish (McpAccountStorage *storage, * McpAccountStorageCommitFunc: * @storage: an #McpAccountStorage instance * @am: an #McpAccountManager instance - * @account: (allow-none): the unique suffix of an account's object path, - * or %NULL to commit all accounts + * @account: the unique suffix of an account's object path * * An implementation of mcp_account_storage_commit(). * @@ -755,8 +754,7 @@ mcp_account_storage_delete_finish (McpAccountStorage *storage, * mcp_account_storage_commit: * @storage: an #McpAccountStorage instance * @am: an #McpAccountManager instance - * @account: (allow-none): the unique suffix of an account's object path, - * or %NULL if all accounts are to be committed + * @account: the unique suffix of an account's object path * * The plugin is expected to write its cache to long term storage, * deleting, adding or updating entries in said storage as needed. @@ -768,6 +766,9 @@ mcp_account_storage_delete_finish (McpAccountStorage *storage, * The default implementation just returns %FALSE, and is appropriate for * read-only storage. * + * Mission Control 5.17+ no longer requires plugins to cope with + * account == NULL. + * * Returns: %TRUE if the commit process was started (but not necessarily * completed) successfully; %FALSE if there was a problem that was immediately * obvious. |