summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-secret-agent.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-01-18 13:20:34 -0600
committerDan Williams <dcbw@redhat.com>2011-01-18 13:20:34 -0600
commit30c7308e9d9f6db72023ecc6ccb8ea964fb563d9 (patch)
treec72d33a9c2b608346e3be4cf4fa3c1de7aa746a5 /libnm-glib/nm-secret-agent.h
parenta2f36e8bd4afd52c3fa3831b7f843633fc08f8fa (diff)
downloadNetworkManager-30c7308e9d9f6db72023ecc6ccb8ea964fb563d9.tar.gz
libnm-glib: implement agent secrets request cancelation
Diffstat (limited to 'libnm-glib/nm-secret-agent.h')
-rw-r--r--libnm-glib/nm-secret-agent.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libnm-glib/nm-secret-agent.h b/libnm-glib/nm-secret-agent.h
index 98c90114d0..f62ebacd00 100644
--- a/libnm-glib/nm-secret-agent.h
+++ b/libnm-glib/nm-secret-agent.h
@@ -15,7 +15,7 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
- * (C) Copyright 2010 Red Hat, Inc.
+ * (C) Copyright 2010 - 2011 Red Hat, Inc.
*/
#ifndef NM_SECRET_AGENT_H
@@ -80,7 +80,9 @@ typedef struct {
/* Called when the subclass should retrieve and return secrets. Subclass
* must copy or reference any arguments it may require after returning from
* this method, as the arguments will freed (except for 'agent', 'callback',
- * and 'callback_data' of course).
+ * and 'callback_data' of course). If the request is canceled, the callback
+ * should still be called, but with the NM_SECRET_AGENT_ERROR_AGENT_CANCELED
+ * error.
*/
void (*get_secrets) (NMSecretAgent *agent,
NMConnection *connection,
@@ -91,6 +93,13 @@ typedef struct {
NMSecretAgentGetSecretsFunc callback,
gpointer callback_data);
+ /* Called when the subclass should cancel an outstanding request to
+ * get secrets for a given connection.
+ */
+ void (*cancel_get_secrets) (NMSecretAgent *agent,
+ const char *connection_path,
+ const char *setting_name);
+
/* Called when the subclass should save the secrets contained in the
* connection to backing storage. Subclass must copy or reference any
* arguments it may require after returning from this method, as the