| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removed the automagic in the dmiMAP_ParseMappingXML(...) function from
automatically decide what to parse (TypeMapping or GroupMapping). Introduced
two new functions instead:
- dmiMAP_ParseMappingXML_GroupName(xmlDoc *xmlmap, const char *name)
Parses the XML mapping document, using the GroupMapping tags and building
up a proper ptzMAP structure for all TypeMap defined in that group.
- dmiMAP_ParseMappingXML_TypeID(xmlDoc *xmlmap, const char *typeid)
Parses the XML mapping document, using only the TypeMapping section in th
mapping document.
Rewrote a lot of internal parts to reuse as much of the existing code as possible.
|
| |
| |
| |
| | |
The previous version did not consider the tag name when searching for nodes.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Note that this will not work as expected for `group mappings' that
have unimplemented `type maps', and this is because the linked-list
chain will ne broken at the first unimplemented `type map'
There is no reason to code a workaround for this as the type do have
to be implemented eventually, and hence added code will merely be
noise.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Merged the two XML files into one, and amended relevant code. I still
want to modify the XML tag names, but not yet.
The calls to dmidecode.type() not function as expected, but the others
are broken - this is next.
|
| | |
|
| |
| |
| |
| | |
In doing so, found and fixed a few mistakes in my previous commit.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Rather than hardcoding the data by function name (e.g. system, bios,
connector, slot, etc), create each `type' as an individual XML tree,
then group them under user-friendly names (as per the function names).
Here the `pythonmap.xml' groups (but does not define) the various
types (0..255), the types themselves are however defined in
`typemap.xml'.
This commit is broken, and a WIP.
|
| |
| |
| |
| |
| |
| |
| | |
Updated test unit to match.
Throw an exception instead of returning None/False in some
functions.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The POC demo does not actually do much testing yet, other than just
working or not working - but it's in place now for future
enhancements.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Removed trailing spaces from xml data file.
Commented out fprintf()s for now (Perhapse should add them to the
debug build at least).
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Don't write to stdout unless in debug mode (with respect to writing
to memory devices.
Added the xml datafile to setup (distutils).
Updated test case (incorporating color and cleaning up tests).
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Also preparing/cleaning-up example/test-case script.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The version is of now, v3.10.6. The version major field has been
upped due to the newly added XML functionality.
The version has been reverted to GPLv2.
Some headers have been cleaned up, copyright notices added etc.
Credits given where due.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
to maintain backwards compatibility
The old python-dmidecode uses the format '{flag} ({description})'. This
format is now used is well as contents for the cpu_flags/flag text nodes.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
/dmidecode/SystemSlots/SlotCharacteristics/Characteristic/@index
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This builds up a list of dicts. Syntax is:
<Map keytype="constant" key="TestData"
valuetype="list:dict" value="/xml/XPath/to/nodes">
<Map keytype="constant" key="field"
valuetype="string" key="ValueNode"/>
</Map>
The parser will iterate all nodes defined in the @value attribute
and the root path will of the nested mapping will be using the path
in @value as the root path for further parsing.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
These hangover lines must have crept in at the early stages of the
initial conversion of dmidecode to python-dmidecode. Fixed.
|
| |
| |
| |
| |
| |
| | |
This part of the XML result was not valid due to duplicated tag attributes.
Moved some of this specifications from the SystemSlots tag to its own
SlotID tag, with even more details.
|