mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
prop: update FIELD macro to accomodate the differentiation of number, size and percent field values
The differentiation of the original number field into number, size and percent field types has been introduced with recent changes for report selection support.
This commit is contained in:
parent
94316dfe9d
commit
d09590c4b6
@ -128,6 +128,6 @@ static int _ ## NAME ## _get (const void *obj, struct lvm_property_type *prop) \
|
|||||||
|
|
||||||
#define FIELD_MODIFIABLE 0x00000001
|
#define FIELD_MODIFIABLE 0x00000001
|
||||||
#define FIELD(type, strct, field_type, head, field, width, fn, id, desc, settable) \
|
#define FIELD(type, strct, field_type, head, field, width, fn, id, desc, settable) \
|
||||||
{ type, #id, settable, field_type == STR, field_type == NUM, { .integer = 0 }, _ ## id ## _get, _ ## id ## _set },
|
{ type, #id, settable, field_type == STR, ((field_type == NUM) || (field_type == SIZ) || (field_type == PCT)), { .integer = 0 }, _ ## id ## _get, _ ## id ## _set },
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -343,6 +343,7 @@ struct lvm_property_type _properties[] = {
|
|||||||
#undef STR
|
#undef STR
|
||||||
#undef NUM
|
#undef NUM
|
||||||
#undef SIZ
|
#undef SIZ
|
||||||
|
#undef PCT
|
||||||
#undef STR_LIST
|
#undef STR_LIST
|
||||||
#undef FIELD
|
#undef FIELD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user