summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Renamed _dmiMAP_GetRootElement(...) to dmiMAP_GetRootElement(...) and ↵David Sommerseth2009-06-092-3/+4
| | | | exported the function
* Implemented fix making python-dmidecode work with Python v2.3David Sommerseth2009-06-052-0/+44
| | | | | This resolves Ticket #7 (http://projects.autonomy.net.au/python-dmidecode/ticket/7) (cherry picked from commit 39cbdfb56e80cabbd67754d8d77f781e14eaa3da)
* More cleanupDavid Sommerseth2009-06-041-17/+0
|
* Fixed compiling issues after commit 2cf4f28f6fc671478003b31c03b93e070eee9942David Sommerseth2009-06-043-15/+3
| | | | Also cleaned up a little bit more, removed more unneeded stuff.
* Further removal of deprecated functionsNima Talebi2009-06-054-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 functionsDavid Sommerseth2009-06-044-32/+38
|
* Moved options global_options to a more suitable place. Added a commentDavid Sommerseth2009-06-041-2/+4
|
* Resurrected struct _dmi_codes_majorDavid Sommerseth2009-06-041-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 Talebi2009-06-042-24/+0
|
* Rewrote bigger parts to avoid global variables as much as possibleDavid Sommerseth2009-06-035-121/+152
|
* Added missing file section for Doxygen parsingDavid Sommerseth2009-06-031-3/+12
|
* Added Doxygent comments, fixed missing copyrightDavid Sommerseth2009-06-031-22/+91
|
* Removed some dead codeDavid Sommerseth2009-06-035-124/+0
|
* Renamed *_set_version() functions to a more proper *_get_version() function ↵David Sommerseth2009-06-034-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 formatDavid Sommerseth2009-06-021-27/+171
|
* Replaced all 'for' iterations on xmlNodes with 'foreach_xmlnode'David Sommerseth2009-06-021-9/+9
|
* Removed no longer needed function - is_int()David Sommerseth2009-06-022-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 upDavid Sommerseth2009-06-022-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 TagNameDavid Sommerseth2009-06-022-21/+19
| | | | The previous version did not consider the tag name when searching for nodes.
* Added a simple helper macro to simplify xmlNode traversingDavid Sommerseth2009-05-291-0/+2
|
* Removed unneeded section (already commented out)David Sommerseth2009-05-271-5/+1
|
* Fixed WIP from last night (with notes)Nima Talebi2009-05-271-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 commitNima Talebi2009-05-2710-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 commentsNima Talebi2009-05-241-28/+31
|
* Added placeholder for most `type'sNima Talebi2009-05-241-147/+258
| | | | In doing so, found and fixed a few mistakes in my previous commit.
* RenameNima Talebi2009-05-241-0/+0
|
* Update URINima Talebi2009-05-241-1/+1
|
* Added new target `unit'Nima Talebi2009-05-241-0/+3
|
* Follow-up on recent XML config file renameNima Talebi2009-05-244-5/+5
|
* CleanupNima Talebi2009-05-243-4/+7
|
* Renamed XML config files to better match codeNima Talebi2009-05-242-0/+0
|
* Update header file for new function declarationNima Talebi2009-05-241-1/+1
|
* AutoheaderedNima Talebi2009-05-241-42/+113
|
* Return earlier when possibleNima Talebi2009-05-241-4/+4
|
* Loading in the new the new `type' XML fileNima Talebi2009-05-242-2/+13
|
* Broken commit - change in XML mapping designNima Talebi2009-05-244-313/+359
| | | | | | | | | | | 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 Talebi2009-05-248-21/+72
| | | | | | | Updated test unit to match. Throw an exception instead of returning None/False in some functions.
* Reimplementing the type() function - WIPNima Talebi2009-05-235-6/+35
|
* Reimplementing support for the type() method - WIPNima Talebi2009-05-231-0/+21
|
* Expanding the test case to include the POC demoNima Talebi2009-05-239-0/+718
| | | | | | 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.
* Cleanup of test caseNima Talebi2009-05-231-37/+43
|
* More work on test caseNima Talebi2009-05-231-30/+49
|
* Completed test caseNima Talebi2009-05-233-30/+41
| | | | | | | Removed trailing spaces from xml data file. Commented out fprintf()s for now (Perhapse should add them to the debug build at least).
* More cleanupNima Talebi2009-05-236-36/+66
| | | | | | | | | 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-specificsNima Talebi2009-05-237-835/+2347
|
* Added missing doc filesNima Talebi2009-05-232-2/+2
|
* Final cleanupNima Talebi2009-05-233-4/+13
|
* Fixed minor bug which prevented debug buildsNima Talebi2009-05-232-2/+4
|
* UpdateNima Talebi2009-05-231-5/+6
|
* GPLv3 changed to GPLv2Nima Talebi2009-05-233-653/+353
| | | | Also preparing/cleaning-up example/test-case script.