Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Implemented dmidecode.type(int) function properly | David Sommerseth | 2009-06-09 | 1 | -19/+66 | |
| | ||||||
* | Pass typeid as int internally to the dmiMAP_ParseMappingXML_TypeID(...) | David Sommerseth | 2009-06-09 | 2 | -4/+8 | |
| | | | | | This function will then convert the value to proper hex value for further processing. | |||||
* | Big rewrite again, simplified the usage of opt->type | David Sommerseth | 2009-06-09 | 5 | -111/+135 | |
| | | | | | | Instead of building up an u8 array with 255 cells where we only use one cell at the time now, just pass the type id value as an int the whole way through. | |||||
* | Renamed _dmiMAP_GetRootElement(...) to dmiMAP_GetRootElement(...) and ↵ | David Sommerseth | 2009-06-09 | 2 | -3/+4 | |
| | | | | exported the function | |||||
* | Implemented fix making python-dmidecode work with Python v2.3 | David Sommerseth | 2009-06-05 | 2 | -0/+44 | |
| | | | | | This resolves Ticket #7 (http://projects.autonomy.net.au/python-dmidecode/ticket/7) (cherry picked from commit 39cbdfb56e80cabbd67754d8d77f781e14eaa3da) | |||||
* | More cleanup | David Sommerseth | 2009-06-04 | 1 | -17/+0 | |
| | ||||||
* | Fixed compiling issues after commit 2cf4f28f6fc671478003b31c03b93e070eee9942 | David Sommerseth | 2009-06-04 | 3 | -15/+3 | |
| | | | | Also cleaned up a little bit more, removed more unneeded stuff. | |||||
* | Further removal of deprecated functions | Nima Talebi | 2009-06-05 | 4 | -67/+14 | |
| | | | | | | | Removed the `dmi_table_string' function, and `const struct string_keyword *string' from the `options' struct. Also modified the function calls that are now free of this, namely, `legacy_decode' and `smbios_decode'. | |||||
* | Avoid passing the option struct to dmidecode.c functions | David Sommerseth | 2009-06-04 | 4 | -32/+38 | |
| | ||||||
* | Moved options global_options to a more suitable place. Added a comment | David Sommerseth | 2009-06-04 | 1 | -2/+4 | |
| | ||||||
* | Resurrected struct _dmi_codes_major | David Sommerseth | 2009-06-04 | 1 | -0/+7 | |
| | | | | | This got removed in commit 63e6c57e448d9dcc795cb14e89de6eb51f1033f6, but is needed for the following struct in dmihelper.h, and in dmidecode.c::dmi_decode():3694 | |||||
* | Removal of more deprecated/unused code. | Nima Talebi | 2009-06-04 | 2 | -24/+0 | |
| | ||||||
* | Rewrote bigger parts to avoid global variables as much as possible | David Sommerseth | 2009-06-03 | 5 | -121/+152 | |
| | ||||||
* | Added missing file section for Doxygen parsing | David Sommerseth | 2009-06-03 | 1 | -3/+12 | |
| | ||||||
* | Added Doxygent comments, fixed missing copyright | David Sommerseth | 2009-06-03 | 1 | -22/+91 | |
| | ||||||
* | Removed some dead code | David Sommerseth | 2009-06-03 | 5 | -124/+0 | |
| | ||||||
* | Renamed *_set_version() functions to a more proper *_get_version() function ↵ | David Sommerseth | 2009-06-03 | 4 | -15/+15 | |
| | | | | | | | | names Also changed dmiMAP_ParseMappingXML(...) to dmiMAP_ParseMappingXML_GroupName(...). In the dmidecode_get(...) function. This is just a quick fix for making it compile. It's also needed to implement usage of dmiMAP_ParseMappingXML_TypeID(...) as well. | |||||
* | Updated comments for all functions in xmlpythonizer.c in Doxygen format | David Sommerseth | 2009-06-02 | 1 | -27/+171 | |
| | ||||||
* | Replaced all 'for' iterations on xmlNodes with 'foreach_xmlnode' | David Sommerseth | 2009-06-02 | 1 | -9/+9 | |
| | ||||||
* | Removed no longer needed function - is_int() | David Sommerseth | 2009-06-02 | 2 | -10/+0 | |
| | | | | | This function did not work as expected and due to the rewrite of xmlpythonizer, this function is not longer needed. | |||||
* | Rewrote the dmiMAP_ParseMappingXML(...) function and split it up | David Sommerseth | 2009-06-02 | 2 | -78/+124 | |
| | | | | | | | | | | | | | | | | 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. | |||||
* | Rewrote dmixml_FindNodeByAttr(...) function to also use TagName | David Sommerseth | 2009-06-02 | 2 | -21/+19 | |
| | | | | The previous version did not consider the tag name when searching for nodes. | |||||
* | Added a simple helper macro to simplify xmlNode traversing | David Sommerseth | 2009-05-29 | 1 | -0/+2 | |
| | ||||||
* | Removed unneeded section (already commented out) | David Sommerseth | 2009-05-27 | 1 | -5/+1 | |
| | ||||||
* | Fixed WIP from last night (with notes) | Nima Talebi | 2009-05-27 | 1 | -12/+16 | |
| | | | | | | | | | | 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. | |||||
* | WIP commit | Nima Talebi | 2009-05-27 | 10 | -580/+563 | |
| | | | | | | | | 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. | |||||
* | Small update, added FIXME tags and comments | Nima Talebi | 2009-05-24 | 1 | -28/+31 | |
| | ||||||
* | Added placeholder for most `type's | Nima Talebi | 2009-05-24 | 1 | -147/+258 | |
| | | | | In doing so, found and fixed a few mistakes in my previous commit. | |||||
* | Follow-up on recent XML config file rename | Nima Talebi | 2009-05-24 | 3 | -4/+4 | |
| | ||||||
* | Renamed XML config files to better match code | Nima Talebi | 2009-05-24 | 2 | -0/+0 | |
| | ||||||
* | Update header file for new function declaration | Nima Talebi | 2009-05-24 | 1 | -1/+1 | |
| | ||||||
* | Autoheadered | Nima Talebi | 2009-05-24 | 1 | -42/+113 | |
| | ||||||
* | Return earlier when possible | Nima Talebi | 2009-05-24 | 1 | -4/+4 | |
| | ||||||
* | Loading in the new the new `type' XML file | Nima Talebi | 2009-05-24 | 2 | -2/+13 | |
| | ||||||
* | Broken commit - change in XML mapping design | Nima Talebi | 2009-05-24 | 3 | -312/+358 | |
| | | | | | | | | | | | 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. | |||||
* | Completed preliminary reimplementation of type() | Nima Talebi | 2009-05-24 | 6 | -20/+69 | |
| | | | | | | | Updated test unit to match. Throw an exception instead of returning None/False in some functions. | |||||
* | Reimplementing the type() function - WIP | Nima Talebi | 2009-05-23 | 4 | -6/+29 | |
| | ||||||
* | Reimplementing support for the type() method - WIP | Nima Talebi | 2009-05-23 | 1 | -0/+21 | |
| | ||||||
* | Completed test case | Nima Talebi | 2009-05-23 | 2 | -3/+3 | |
| | | | | | | | Removed trailing spaces from xml data file. Commented out fprintf()s for now (Perhapse should add them to the debug build at least). | |||||
* | More cleanup | Nima Talebi | 2009-05-23 | 5 | -7/+12 | |
| | | | | | | | | | 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). | |||||
* | Updating Debian-specifics | Nima Talebi | 2009-05-23 | 2 | -3/+5 | |
| | ||||||
* | Final cleanup | Nima Talebi | 2009-05-23 | 1 | -1/+1 | |
| | ||||||
* | Fixed minor bug which prevented debug builds | Nima Talebi | 2009-05-23 | 2 | -2/+4 | |
| | ||||||
* | Reversioned, relicensed, and rejigged | Nima Talebi | 2009-05-22 | 5 | -46/+85 | |
| | | | | | | | | | | | 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. | |||||
* | Update copyright notice | Nima Talebi | 2009-05-22 | 2 | -6/+14 | |
| | ||||||
* | Bringing setup files upto date | Nima Talebi | 2009-05-22 | 2 | -9/+12 | |
| | ||||||
* | Fixed a bug, and preparing to dupload to Debian | Nima Talebi | 2009-05-22 | 1 | -1/+1 | |
| | ||||||
* | Changed the node content of /dmidecode/ProcessorInfo/CPUCore/cpu_flags/flag ↵ | David Sommerseth | 2009-05-20 | 1 | -30/+30 | |
| | | | | | | | 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. | |||||
* | Fixed the bios field mapping to use relative XPaths | David Sommerseth | 2009-05-20 | 1 | -23/+23 | |
| | ||||||
* | Added field mapping for dmidecode.connectors() | David Sommerseth | 2009-05-20 | 1 | -0/+22 | |
| |