mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Use fixed-size fields in report interface.
This commit is contained in:
parent
4bbfe1cf5b
commit
9f069f7bef
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.17 -
|
Version 1.02.17 -
|
||||||
===================================
|
===================================
|
||||||
|
Use fixed-size fields in report interface.
|
||||||
|
|
||||||
Version 1.02.16 - 25th January 2007
|
Version 1.02.16 - 25th January 2007
|
||||||
===================================
|
===================================
|
||||||
|
@ -657,11 +657,11 @@ struct dm_report_field;
|
|||||||
struct dm_report;
|
struct dm_report;
|
||||||
struct dm_report_field_type {
|
struct dm_report_field_type {
|
||||||
uint32_t type; /* object type id */
|
uint32_t type; /* object type id */
|
||||||
const char id[32]; /* string used to specify the field */
|
|
||||||
unsigned int offset; /* byte offset in the object */
|
|
||||||
const char heading[32]; /* string printed in header */
|
|
||||||
int width; /* default width */
|
|
||||||
uint32_t flags; /* DM_REPORT_FIELD_* */
|
uint32_t flags; /* DM_REPORT_FIELD_* */
|
||||||
|
uint32_t offset; /* byte offset in the object */
|
||||||
|
int32_t width; /* default width */
|
||||||
|
const char id[32]; /* string used to specify the field */
|
||||||
|
const char heading[32]; /* string printed in header */
|
||||||
int (*report_fn)(struct dm_report *rh, struct dm_pool *mem,
|
int (*report_fn)(struct dm_report *rh, struct dm_pool *mem,
|
||||||
struct dm_report_field *field, const void *data,
|
struct dm_report_field *field, const void *data,
|
||||||
void *private);
|
void *private);
|
||||||
|
@ -60,7 +60,7 @@ struct field_properties {
|
|||||||
struct list list;
|
struct list list;
|
||||||
uint32_t field_num;
|
uint32_t field_num;
|
||||||
uint32_t sort_posn;
|
uint32_t sort_posn;
|
||||||
unsigned width;
|
int32_t width;
|
||||||
const struct dm_report_object_type *type;
|
const struct dm_report_object_type *type;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
};
|
};
|
||||||
@ -750,7 +750,7 @@ int dm_report_output(struct dm_report *rh)
|
|||||||
struct dm_report_field *field;
|
struct dm_report_field *field;
|
||||||
const char *repstr;
|
const char *repstr;
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
unsigned width;
|
int32_t width;
|
||||||
uint32_t align;
|
uint32_t align;
|
||||||
|
|
||||||
if (list_empty(&rh->rows))
|
if (list_empty(&rh->rows))
|
||||||
|
Loading…
Reference in New Issue
Block a user