summaryrefslogtreecommitdiff
path: root/mission-control-plugins
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-15 13:13:36 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:31 +0000
commit4a56a04f6860d7d66f25398c410a1c6435c9dca7 (patch)
tree8c26607a66e28edcd96cbc9d22f41362477749bd /mission-control-plugins
parent812378a1064b35a54adb9dc992fe55ef7c5ddae5 (diff)
mcp_account_storage_delete_async: be cancellable, at least in theory
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
Diffstat (limited to 'mission-control-plugins')
-rw-r--r--mission-control-plugins/account-storage.c3
-rw-r--r--mission-control-plugins/account-storage.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/mission-control-plugins/account-storage.c b/mission-control-plugins/account-storage.c
index a50b1bb2..8d10ad6a 100644
--- a/mission-control-plugins/account-storage.c
+++ b/mission-control-plugins/account-storage.c
@@ -115,6 +115,7 @@ static void
default_delete_async (McpAccountStorage *storage,
McpAccountManager *am,
const gchar *account,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -666,6 +667,7 @@ mcp_account_storage_create (const McpAccountStorage *storage,
* @storage: an #McpAccountStorage instance
* @am: an #McpAccountManager instance
* @account: the unique name of the account
+ * @cancellable: (allow-none): optionally used to (try to) cancel the operation
* @callback: called on success or failure
* @user_data: data for @callback
*
@@ -687,6 +689,7 @@ void
mcp_account_storage_delete_async (McpAccountStorage *storage,
McpAccountManager *am,
const gchar *account,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
diff --git a/mission-control-plugins/account-storage.h b/mission-control-plugins/account-storage.h
index 42898a5f..1a30b5ed 100644
--- a/mission-control-plugins/account-storage.h
+++ b/mission-control-plugins/account-storage.h
@@ -110,6 +110,7 @@ struct _McpAccountStorageIface
void (*delete_async) (McpAccountStorage *storage,
McpAccountManager *am,
const gchar *account,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*delete_finish) (McpAccountStorage *storage,
@@ -163,6 +164,7 @@ gchar * mcp_account_storage_create (const McpAccountStorage *storage,
void mcp_account_storage_delete_async (McpAccountStorage *storage,
McpAccountManager *am,
const gchar *account,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean mcp_account_storage_delete_finish (McpAccountStorage *storage,