mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --input-size-hint.
* g10/options.h: Include stdint.h. (struct opt): Add field 'input_size_hint'. * g10/gpg.c (oInputSizeHint): New. (opts): Add --input-size-hint. (main): Set opt.input_size_hint. * g10/progress.c (write_status_progress): Use the hint. -- This is a prerequisite to fix GnuPG-bug-id: 2368 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0698324cde
commit
70b5d7c43a
4 changed files with 31 additions and 2 deletions
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <sys/types.h>
|
||||
#include <types.h>
|
||||
#include <stdint.h>
|
||||
#include "main.h"
|
||||
#include "packet.h"
|
||||
#include "tofu.h"
|
||||
|
@ -54,6 +55,12 @@ struct
|
|||
char *outfile;
|
||||
estream_t outfp; /* Hack, sometimes used in place of outfile. */
|
||||
off_t max_output;
|
||||
|
||||
/* If > 0 a hint with the expected number of input data bytes. This
|
||||
* is not necessary an exact number but intended to be used for
|
||||
* progress info and to decide on how to allocate buffers. */
|
||||
uint64_t input_size_hint;
|
||||
|
||||
int dry_run;
|
||||
int autostart;
|
||||
int list_only;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue