From fc65b9038eadd04b4b4bfc640aff66094b0699d0 Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Fri, 20 Aug 2010 12:44:47 +0000 Subject: [PATCH] Add properties.[ch] to lib/report, defined based on columns.h. Extend the existing reporting infrastructure definitions and structures to include a 'get' and 'set' function for each field. We will provide a 'get' and 'set' function for each of these fields, which will be utilized by exported lvm2app functions. Define a default _not_implemented 'get' and 'set' function that just sets an errno and returns 0. Future patches will actually implement the specific 'get' and 'set' functions for each property. For read-only properties, only the 'get' function will be implemented. Define vg_get_property() function to query a property. We will call this from a lvm2app function. --- include/.symlinks.in | 1 + lib/Makefile.in | 1 + 2 files changed, 2 insertions(+) diff --git a/include/.symlinks.in b/include/.symlinks.in index 5a7e55622..2b15844b0 100644 --- a/include/.symlinks.in +++ b/include/.symlinks.in @@ -50,6 +50,7 @@ @top_builddir@/lib/misc/lvm-version.h @top_srcdir@/lib/misc/lvm-wrappers.h @top_srcdir@/lib/misc/sharedlib.h +@top_srcdir@/lib/report/properties.h @top_srcdir@/lib/report/report.h @top_srcdir@/lib/uuid/uuid.h @top_srcdir@/libdm/libdevmapper.h diff --git a/lib/Makefile.in b/lib/Makefile.in index 1c58bdd8c..2f31c0464 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -90,6 +90,7 @@ SOURCES =\ misc/lvm-wrappers.c \ misc/util.c \ mm/memlock.c \ + report/properties.c \ report/report.c \ striped/striped.c \ uuid/uuid.c \