[dm-devel] [PATCH v2 02/13] libmultipath: move path_data etc. to print.c
mwilck at suse.com
mwilck at suse.com
Mon Nov 29 20:08:51 UTC 2021
From: Martin Wilck <mwilck at suse.com>
These structs are only used in print.c
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
libmultipath/print.c | 21 +++++++++++++++++++++
libmultipath/print.h | 21 ---------------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/libmultipath/print.c b/libmultipath/print.c
index 938eaad..4992cc8 100644
--- a/libmultipath/print.c
+++ b/libmultipath/print.c
@@ -100,6 +100,27 @@
#define PROGRESS_LEN 10
+struct path_data {
+ char wildcard;
+ char * header;
+ unsigned int width;
+ int (*snprint)(struct strbuf *, const struct path * pp);
+};
+
+struct multipath_data {
+ char wildcard;
+ char * header;
+ unsigned int width;
+ int (*snprint)(struct strbuf *, const struct multipath * mpp);
+};
+
+struct pathgroup_data {
+ char wildcard;
+ char * header;
+ unsigned int width;
+ int (*snprint)(struct strbuf *, const struct pathgroup * pgp);
+};
+
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
#define MIN(x,y) (((x) > (y)) ? (y) : (x))
/*
diff --git a/libmultipath/print.h b/libmultipath/print.h
index b149275..4322f6e 100644
--- a/libmultipath/print.h
+++ b/libmultipath/print.h
@@ -9,27 +9,6 @@
struct strbuf;
-struct path_data {
- char wildcard;
- char * header;
- unsigned int width;
- int (*snprint)(struct strbuf *, const struct path * pp);
-};
-
-struct multipath_data {
- char wildcard;
- char * header;
- unsigned int width;
- int (*snprint)(struct strbuf *, const struct multipath * mpp);
-};
-
-struct pathgroup_data {
- char wildcard;
- char * header;
- unsigned int width;
- int (*snprint)(struct strbuf *, const struct pathgroup * pgp);
-};
-
enum layout_reset {
LAYOUT_RESET_NOT,
LAYOUT_RESET_ZERO,
--
2.33.1
More information about the dm-devel
mailing list