diff --git a/libdm/.exported_symbols.DM_1_02_133 b/libdm/.exported_symbols.DM_1_02_133 new file mode 100644 index 000000000..4318f80b0 --- /dev/null +++ b/libdm/.exported_symbols.DM_1_02_133 @@ -0,0 +1 @@ +dm_report_destroy_rows diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index 22700160a..844a45548 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -2907,6 +2907,11 @@ int dm_report_compact_given_fields(struct dm_report *rh, const char *fields); */ int dm_report_is_empty(struct dm_report *rh); +/* + * Destroy report content without doing output. + */ +void dm_report_destroy_rows(struct dm_report *rh); + int dm_report_output(struct dm_report *rh); /* diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 02fead573..886d8a2aa 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -4790,6 +4790,11 @@ out: return r; } +void dm_report_destroy_rows(struct dm_report *rh) +{ + _destroy_rows(rh); +} + static int _report_group_create_single(struct dm_report_group *group) { return 1;