summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-07-27 11:48:02 +0100
committerBryn M. Reeves <bmr@redhat.com>2015-07-31 12:17:38 +0100
commit077afe5b230f10c7692c90fa24e97ff8f8e2a280 (patch)
treedd6a281fd3454f8a94a4976c5e472148335df85a
parentaa4d97d3189479c24c420b8521d85a799e0b29fd (diff)
downloadlvm2-077afe5b230f10c7692c90fa24e97ff8f8e2a280.tar.gz
libdm-report: rename dm_report_headings()
Rename dm_report_headings to dm_report_column_headings() to make it clear that it's the column headings being output.
-rw-r--r--libdm/.exported_symbols.DM_1_02_1041
-rw-r--r--libdm/libdevmapper.h4
-rw-r--r--libdm/libdm-report.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/libdm/.exported_symbols.DM_1_02_104 b/libdm/.exported_symbols.DM_1_02_104
index a29f288c2..90cba4168 100644
--- a/libdm/.exported_symbols.DM_1_02_104
+++ b/libdm/.exported_symbols.DM_1_02_104
@@ -2,7 +2,6 @@ dm_report_clear
dm_report_get_interval
dm_report_get_interval_ms
dm_report_get_last_interval
-dm_report_headings
dm_report_set_interval
dm_report_set_interval_ms
dm_report_wait
diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h
index 87ea22046..67acecd89 100644
--- a/libdm/libdevmapper.h
+++ b/libdm/libdevmapper.h
@@ -1752,7 +1752,7 @@ struct dm_report_field_type {
int32_t width; /* default width */
/* string used to specify the field */
const char id[DM_REPORT_FIELD_TYPE_ID_LEN];
- /* string printed in header */
+ /* string printed in heading */
const char heading[DM_REPORT_FIELD_TYPE_HEADING_LEN];
int (*report_fn)(struct dm_report *rh, struct dm_pool *mem,
struct dm_report_field *field, const void *data,
@@ -1902,7 +1902,7 @@ int dm_report_clear(struct dm_report *rh);
* have already been shown. Useful for repeating reports that wish to
* issue a periodic reminder of the column headings.
*/
-int dm_report_headings(struct dm_report *rh);
+int dm_report_column_headings(struct dm_report *rh);
void dm_report_free(struct dm_report *rh);
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index 5a25f9679..4e746b6be 100644
--- a/libdm/libdm-report.c
+++ b/libdm/libdm-report.c
@@ -3921,7 +3921,7 @@ static int _report_headings(struct dm_report *rh)
return 0;
}
-int dm_report_headings(struct dm_report *rh)
+int dm_report_column_headings(struct dm_report *rh)
{
return _report_headings(rh);
}