summaryrefslogtreecommitdiff
path: root/src/nm-act-request.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-12-16 13:06:19 +0100
committerThomas Haller <thaller@redhat.com>2016-12-20 15:53:41 +0100
commitbd89c8a9249657d388312d3e4ea8ce8253153ab8 (patch)
tree7845e80758e96fe572a6719987240e759ae55107 /src/nm-act-request.h
parent3b95cf68e2c128e91a9556b10bc5f2af8895c3f5 (diff)
act-request: allow omitting the @self argument in nm_act_request_cancel_secrets()
Previously, we would require a @self argument and the @call_id in nm_act_request_cancel_secrets(), although the @call_id already has a pointer to @self. In principle that is not necessary, but it makes the API a bit more robust as you need to care about the lifetime of the @req as well. However it is a bit inconvenient, because it requires that caller to track both the activation request and the call-id. Now, allow nm_act_request_get_secrets() to instruct the call-id to take an additional reference to @self. Later on, we would allow to omit the argument during cancelling. We only allow this, if the call-id takes a reference to @self.
Diffstat (limited to 'src/nm-act-request.h')
-rw-r--r--src/nm-act-request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nm-act-request.h b/src/nm-act-request.h
index 2443633f0..47247f891 100644
--- a/src/nm-act-request.h
+++ b/src/nm-act-request.h
@@ -63,6 +63,7 @@ typedef void (*NMActRequestSecretsFunc) (NMActRequest *req,
gpointer user_data);
NMActRequestGetSecretsCallId nm_act_request_get_secrets (NMActRequest *req,
+ gboolean take_ref,
const char *setting_name,
NMSecretAgentGetSecretsFlags flags,
const char *hint,