summaryrefslogtreecommitdiffstats
path: root/tools/tools.h
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2010-11-30 11:53:31 +0000
committerPetr Rockai <prockai@redhat.com>2010-11-30 11:53:31 +0000
commit8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f (patch)
tree3917720f959540da970c0df2e3711217630709ae /tools/tools.h
parent0669d21847969125dee94513f78f3193e40b375f (diff)
downloadlvm2-8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f.tar.gz
lvm2-8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f.tar.xz
lvm2-8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f.zip
Refactor the percent (mirror sync, snapshot usage) handling code to use
fixed-point values instead of a combination of a float value and an enum.
Diffstat (limited to 'tools/tools.h')
-rw-r--r--tools/tools.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/tools.h b/tools/tools.h
index 07261c8b..cfbceeb4 100644
--- a/tools/tools.h
+++ b/tools/tools.h
@@ -85,7 +85,7 @@ typedef enum {
PERCENT_LV,
PERCENT_PVS,
PERCENT_ORIGIN
-} percent_t;
+} percent_type_t;
enum {
CHANGE_AY = 0,
@@ -106,7 +106,7 @@ struct arg_values {
int64_t i64_value;
uint64_t ui64_value;
sign_t sign;
- percent_t percent;
+ percent_type_t percent;
/* void *ptr; // Currently not used. */
};
@@ -174,7 +174,7 @@ int64_t arg_int64_value(struct cmd_context *cmd, int a, const int64_t def);
uint64_t arg_uint64_value(struct cmd_context *cmd, int a, const uint64_t def);
const void *arg_ptr_value(struct cmd_context *cmd, int a, const void *def);
sign_t arg_sign_value(struct cmd_context *cmd, int a, const sign_t def);
-percent_t arg_percent_value(struct cmd_context *cmd, int a, const percent_t def);
+percent_type_t arg_percent_value(struct cmd_context *cmd, int a, const percent_type_t def);
int arg_count_increment(struct cmd_context *cmd, int a);
unsigned grouped_arg_count(const struct arg_values *av, int a);