Skip to contentSkip to conversation

master - libdm: report: add dm_report_set_selection

PATCH Peter Rajnoha 1 participant 1 message Jun 20, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2078b842fb50d73f886fb93ff9e06c08977bf8a3
Commit:        2078b842fb50d73f886fb93ff9e06c08977bf8a3
Parent:        f2facdc1d01b0353b05623634d34924317c44a9c
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Thu May 12 15:04:37 2016 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Mon Jun 20 11:33:43 2016 +0200

libdm: report: add dm_report_set_selection

Since we can do repeated dm_report_output calls now, we also like to be able to set selection for each of these outputs.

---
 WHATS_NEW_DM                        |    1 +
 libdm/.exported_symbols.DM_1_02_128 |    1 +
 libdm/libdevmapper.h                |    2 +
 libdm/libdm-report.c                |  124 ++++++++++++++++++++++++++---------
 4 files changed, 97 insertions(+), 31 deletions(-)
WHATS_NEW_DM +1 -0
index 6842771..1772e18 100644
@@ -1,5 +1,6 @@
 Version 1.02.128 -
 =================================
+  Add dm_report_set_selection to set selection for multiple output of report.
   Add DM_REPORT_OUTPUT_MULTIPLE_TIMES flag for multiple output of same report.
   Move field width handling/sort init from dm_report_object to dm_report_output.
   Add _LOG_BYPASS_REPORT flag for bypassing any log report currently set.
libdm/.exported_symbols.DM_1_02_128 +1 -0
index 6e365d5..c323973 100644
@@ -2,3 +2,4 @@ dm_report_group_create
 dm_report_group_push
 dm_report_group_pop
 dm_report_group_destroy
+dm_report_set_selection
libdm/libdevmapper.h +2 -0
index 61ab279..7fd765c 100644
@@ -2675,6 +2675,8 @@ void dm_report_free(struct dm_report *rh);
 int dm_report_set_output_field_name_prefix(struct dm_report *rh,
 					   const char *report_prefix);
 
+int dm_report_set_selection(struct dm_report *rh, const char *selection);
+
 /*
  * Report functions are provided for simple data types.
  * They take care of allocating copies of the data.
libdm/libdm-report.c +93 -31

171 lines not on this page · raw message