Home GnuPG
Diffusion GnuPG a81aca6e1c2a

common: Add a stream interface to 'sh-exectool'.
a81aca6e1c2aUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Add a stream interface to 'sh-exectool'.

* common/sh-exectool.c (struct copy_buffer): Add infrastructure for
copying between streams.
(copy_buffer_{init,shred,do_copy,flush}): New functions.
(sh_exec_tool_stream): Rework 'sh_exec_tool' to operate on streams.
(nop_free): New function.
(sh_exec_tool): Express this in terms of 'sh_exec_tool_stream'.
* common/sh-exectool.h (sh_exec_tool_stream): New prototype.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 30 2015, 2:23 PM
Parents
rGd955cb5e0700: common: Add header file and build the new code.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGa81aca6e1c2a: common: Add a stream interface to 'sh-exectool'. (authored by Justus Winter <justus@g10code.com>).Dec 4 2015, 12:52 PM