diff options
| author | Thomas Haller <thaller@redhat.com> | 2015-08-14 10:36:50 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2015-08-14 15:45:28 +0200 |
| commit | ab8198f24ed7449b65ab119b2ff88225a4b069a5 (patch) | |
| tree | 98cbb537130a929d1d20e70ea076f83cf1a18552 /COPYING | |
| parent | 32c34a8ccda0d26aa36a5556bacdcf36bf522f0b (diff) | |
| download | NetworkManager-th/secret-agent-rh1063036.tar.gz | |
secret-agent: rework handling of asynchronous request and cancellingth/secret-agent-rh1063036
Also use an opaque type NMSecretAgentCallId for the call-id.
NMSecretManager has the following properties:
- the callback will *always* be invoked exactly once. Even if you cancel
the call or if you dispose NMSecretManager with pending calls.
That allows the caller to rely on being called back (and possibly
do some cleanup).
- Now you can cancel all 3 types of operations, not only 'GetSecrets'
call. Note that this will still not cancel the calls 'DeleteSecrets'
and 'SaveSecrets' on a D-Bus level.
When cancelling, the callback will be invoked synchronously, with an
GError indicating the cancelling (G_IO_ERROR_CANCELLED).
- During dispose, the callback is also invoked synchronously, with
some other error reason.
- Otherwise, callbacks are always invoked asynchronously.
- Don't strip_remote_error from NMSecretManager. NMAgentManager inspects
the remote error for the 'GetSecrets' call. Any users of
NMSecretManager should strip the error themselves (as they see fit).
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions
