diff options
author | Werner Koch <[email protected]> | 2023-12-13 09:08:12 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-12-18 14:21:26 +0000 |
commit | 937aeb1904eb5cbe7a8c1c686877c7a9e1196ca6 (patch) | |
tree | dc8e4dbd870fff29ceb2248d61d19769a81338af /kbx/backend-sqlite.c | |
parent | common: Improve error return for dotlock. (diff) | |
download | gnupg-937aeb1904eb5cbe7a8c1c686877c7a9e1196ca6.tar.gz gnupg-937aeb1904eb5cbe7a8c1c686877c7a9e1196ca6.zip |
common: Add an info callback to dotlock.
* common/dotlock.h (enum dotlock_reasons): New.
(DOTLOCK_PREPARE_CREATE): New flag.
* common/dotlock.c (struct dotlock_handle): Add info_cb and
info_cb_value.
(dotlock_create): Support the new flag.
(dotlock_finish_create): New.
(read_lockfile): Silence in case of ENOENT.
(dotlock_set_info_cb): New. Use callback after all error and info
messages.
(dotlock_take_unix, dotlock_take_w32): Allow termination by callback.
Diffstat (limited to 'kbx/backend-sqlite.c')
0 files changed, 0 insertions, 0 deletions