summaryrefslogtreecommitdiffstats
path: root/src/xmlpythonizer.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-05-15 11:06:20 +0200
committerDavid Sommerseth <davids@redhat.com>2009-05-15 11:06:20 +0200
commit72016cb607798e567ac2f2ce67cc50652b0daa32 (patch)
tree358ccd87858d0adbd899fb0274d6be1abcf8bae4 /src/xmlpythonizer.h
parentfff6c8a1cd328ebce904b7fab4bdc642596a8ef5 (diff)
downloadpython-dmidecode-72016cb607798e567ac2f2ce67cc50652b0daa32.tar.gz
python-dmidecode-72016cb607798e567ac2f2ce67cc50652b0daa32.tar.xz
python-dmidecode-72016cb607798e567ac2f2ce67cc50652b0daa32.zip
Added 'emptyValue' attribute in the Map tag
This attribute defines a default value when XML source data is empty
Diffstat (limited to 'src/xmlpythonizer.h')
-rw-r--r--src/xmlpythonizer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h
index f0efaee..62134b4 100644
--- a/src/xmlpythonizer.h
+++ b/src/xmlpythonizer.h
@@ -41,8 +41,8 @@ typedef struct ptzMAP_s {
// the rest of types, an XPath to XML data
int fixed_list_size; // Only to be used on lists
char *list_index ; // Only to be used on fixed lists
- int emptyIsNone; // Only for ptzINT/ptzFLOAT values
- // - if set to 1, empty input strings sets the result to Py_None
+ int emptyIsNone; // If set to 1, empty input (right trimmed) strings sets the result to Py_None
+ char *emptyValue; // If set, this value will be used when input is empty
struct ptzMAP_s *child; // Only used for type_value == pyDICT
struct ptzMAP_s *next; // Pointer chain