diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2016-05-23 10:16:29 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2016-06-20 11:33:41 +0200 |
commit | c099f531fbb1702ea0aed16e5deec0368e7e7250 (patch) | |
tree | 608ffee1178f00473797f77e9c11c54bb432383a /tools/toollib.h | |
parent | 213434d426622b34f2fd7bc2e74f6e5ca0c6c125 (diff) | |
download | lvm2-c099f531fbb1702ea0aed16e5deec0368e7e7250.tar.gz |
toollib: add report_group and log_rh to processing_handle and initialize cmd processing log report
Wire up report group creation with log report in struct
processing_handle and call report_format_init during processing handle
initialization (init_processing_handle fn) and destroy it while
destroing processing handle (destroy_processing_handle fn).
This way, all the LVM command processing using processing handle
has access to log report via which the current command log
can be reported as items are processed.
Diffstat (limited to 'tools/toollib.h')
-rw-r--r-- | tools/toollib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/toollib.h b/tools/toollib.h index 06d0ef9fc..622badcc7 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -72,6 +72,9 @@ struct processing_handle { int internal_report_for_select; int include_historical_lvs; struct selection_handle *selection_handle; + dm_report_group_type_t report_group_type; + struct dm_report_group *report_group; + struct dm_report *log_rh; void *custom_handle; }; |