diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-11-28 14:34:56 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2015-02-10 16:05:26 +0100 |
commit | c3180c4a05ea947b379e9e9bc51e50d0ca329980 (patch) | |
tree | 90cbdc9d080b33d0f9a8e9a2ffe08f7e84810763 /tools/toollib.h | |
parent | a64b39aef80d790dd4afe4ce8fdaa0ed1b0e2c48 (diff) | |
download | lvm2-c3180c4a05ea947b379e9e9bc51e50d0ca329980.tar.gz |
toollib: pass struct processing_handle to _select_match_* functions
The "struct processing_handle" contains handles to drive the selection/matching
so pass it to the _select_match_* functions which are entry points to the
selection mechanism used in process_each_* and related functions.
This is revised and edited version of former Dave Teigland's patch which
provided starting point for all the select support in process_each_* fns.
Diffstat (limited to 'tools/toollib.h')
-rw-r--r-- | tools/toollib.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/toollib.h b/tools/toollib.h index cc862276e..ead36d3ec 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -137,12 +137,12 @@ int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg, int stop_on_error, struct processing_handle *handle, process_single_lv_fn_t process_single_lv); -int select_match_vg(struct cmd_context *cmd, struct volume_group *vg, - int *selected); -int select_match_lv(struct cmd_context *cmd, struct volume_group *vg, - struct logical_volume *lv, int *selected); -int select_match_pv(struct cmd_context *cmd, struct volume_group *vg, - struct physical_volume *pv, int *selected); +int select_match_vg(struct cmd_context *cmd, struct processing_handle *handle, + struct volume_group *vg, int *selected); +int select_match_lv(struct cmd_context *cmd, struct processing_handle *handle, + struct volume_group *vg, struct logical_volume *lv, int *selected); +int select_match_pv(struct cmd_context *cmd, struct processing_handle *handle, + struct volume_group *vg, struct physical_volume *pv, int *selected); const char *extract_vgname(struct cmd_context *cmd, const char *lv_name); const char *skip_dev_dir(struct cmd_context *cmd, const char *vg_name, |