1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

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.
This commit is contained in:
Dave Wysochanski 2010-08-20 12:44:47 +00:00
parent 350582bc7b
commit ba303a615b
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 \