device-mapper ./WHATS_NEW lib/.exported_symbol ...
Subsystems (2)
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2008-04-20 00:11:08
Modified files:
. : WHATS_NEW
lib : .exported_symbols libdevmapper.h libdm-report.c
Log message:
Add field name prefix option to reporting functions.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.228&r2=1.229
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/.exported_symbols.diff?cvsroot=dm&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdevmapper.h.diff?cvsroot=dm&r1=1.80&r2=1.81
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-report.c.diff?cvsroot=dm&r1=1.17&r2=1.18
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 1.02.26 - ================================= + Add field name prefix option to reporting functions. Calculate string size within dm_pool_grow_object. Version 1.02.25 - 10th April 2008
lib/.exported_symbols +1 -0
@@ -132,5 +132,6 @@ dm_report_field_uint32 dm_report_field_uint64 dm_report_field_set_value +dm_report_set_output_field_name_prefix dm_regex_create dm_regex_match
lib/libdevmapper.h +11 -4
@@ -735,10 +735,11 @@/* * dm_report_init output_flags */ -#define DM_REPORT_OUTPUT_MASK 0x000000FF -#define DM_REPORT_OUTPUT_ALIGNED 0x00000001 -#define DM_REPORT_OUTPUT_BUFFERED 0x00000002 -#define DM_REPORT_OUTPUT_HEADINGS 0x00000004 +#define DM_REPORT_OUTPUT_MASK 0x000000FF +#define DM_REPORT_OUTPUT_ALIGNED 0x00000001 +#define DM_REPORT_OUTPUT_BUFFERED 0x00000002 +#define DM_REPORT_OUTPUT_HEADINGS 0x00000004 +#define DM_REPORT_OUTPUT_FIELD_NAME_PREFIX 0x00000008 struct dm_report *dm_report_init(uint32_t *report_types, const struct dm_report_object_type *types,
@@ -753,6 +754,12 @@void dm_report_free (struct dm_report *rh);/* +* Prefix added to each field name with DM_REPORT_OUTPUT_FIELD_NAME_PREFIX +*/ +int dm_report_set_output_field_name_prefix (struct dm_report *rh, +const char *report_prefix); + +/* * Report functions are provided for simple data types. * They take care of allocating copies of the data. */
lib/libdm-report.c +59 -0
95 lines not on this page · raw message