summaryrefslogtreecommitdiff
path: root/tools/toollib.h
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-12-02 13:14:12 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2015-02-10 16:05:25 +0100
commita64b39aef80d790dd4afe4ce8fdaa0ed1b0e2c48 (patch)
treeea348808a3ddd39c39cf065ae8d9831c82e88e9f /tools/toollib.h
parent51d96a170314b7ce75f233d42501262805384770 (diff)
downloadlvm2-a64b39aef80d790dd4afe4ce8fdaa0ed1b0e2c48.tar.gz
report: add report_init_for_selection fn and modify report_object to support reporting for selection only
The new "report_init_for_selection" is just a wrapper over dm_report_init_with_selection that initializes reporting for selection only. This means we're not going to do the actual reporting to output for display and as such we intialize reporting as if no fields are reported or sorted. The only fields "reported" are taken from the selection criteria string and all such fields are marked as hidden automatically (FLD_HIDDEN flag). These fields are used solely for selection criteria matching. Also, modify existing report_object function that was used for reporting to output for display. Now, it can either cause reporting to output or reporting for selection only. The selection result is stored in struct selection_handle's "selected" variable which can be handled further by any report_object caller.
Diffstat (limited to 'tools/toollib.h')
0 files changed, 0 insertions, 0 deletions