common: Add a status callback to gnupg_exec_tool_stream.
authorWerner Koch <wk@gnupg.org>
Fri, 27 May 2016 22:07:09 +0000 (00:07 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 27 May 2016 22:07:09 +0000 (00:07 +0200)
commit239a4d53916b47b5b0f0167a9b2c7a8915bb9c52
tree81a7954bc955131f65cd87b26933b42833cdfee5
parent44a32455c8e41400ea96db4507c8a42bdb65b3b6
common: Add a status callback to gnupg_exec_tool_stream.

* common/exectool.h (exec_tool_status_cb_t): New.
* common/exectool.c: Include missing exectool.h.
(read_and_log_buffer_t): Replace array by pointer.
(gnupg_exec_tool_stream): Add args 'status_cb' and 'status_cb_value'.
Change all callers to pass NULL for them.  Malloc buffer for
FDERRSTATE.
(read_and_log_stderr): Implement status_fd feature.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/exectool.c
common/exectool.h
tools/gpgtar-create.c
tools/gpgtar-extract.c
tools/gpgtar-list.c