mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS.
* g10.c, options.h: New option --enable-progress-filter. * progress.c (handle_progress): Make use of it.
This commit is contained in:
parent
fc3cc2cacf
commit
b394776a80
13 changed files with 209 additions and 17 deletions
14
g10/filter.h
14
g10/filter.h
|
@ -109,6 +109,14 @@ typedef struct {
|
|||
} text_filter_context_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
char *what; /* description */
|
||||
u32 last_time; /* last time reported */
|
||||
unsigned long last; /* last amount reported */
|
||||
unsigned long offset; /* current amount */
|
||||
unsigned long total; /* total amount */
|
||||
} progress_filter_context_t;
|
||||
|
||||
/* encrypt_filter_context_t defined in main.h */
|
||||
|
||||
/*-- mdfilter.c --*/
|
||||
|
@ -137,6 +145,10 @@ int text_filter( void *opaque, int control,
|
|||
int copy_clearsig_text( IOBUF out, IOBUF inp, MD_HANDLE md,
|
||||
int escape_dash, int escape_from, int pgp2mode );
|
||||
|
||||
|
||||
/*-- progress.c --*/
|
||||
int progress_filter (void *opaque, int control,
|
||||
IOBUF a, byte *buf, size_t *ret_len);
|
||||
void handle_progress (progress_filter_context_t *pfx,
|
||||
IOBUF inp, char *name);
|
||||
|
||||
#endif /*G10_FILTER_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue