Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More Makefile cleanup | David Sommerseth | 2009-06-12 | 1 | -2/+3 |
| | |||||
* | Moved and renamed redhat.spec | David Sommerseth | 2009-06-12 | 2 | -2/+2 |
| | | | | | This spec file do not contain anything Red Hat specific, so I gave it a more generic name | ||||
* | Fixed some issues after commit d0e32662845f2c86fd8090858a51a90408d39172 | David Sommerseth | 2009-06-12 | 1 | -2/+8 |
| | |||||
* | Cleanup | Nima Talebi | 2009-06-12 | 1 | -68/+10 |
| | |||||
* | A nothing-change | Nima Talebi | 2009-06-12 | 1 | -9/+9 |
| | |||||
* | Fixed an XML formatting issue - dmispec attribute was duplicated in <OEMstrings> | David Sommerseth | 2009-06-11 | 1 | -1/+0 |
| | |||||
* | Added utility to simply change the version number | David Sommerseth | 2009-06-11 | 1 | -0/+53 |
| | | | | This script will update all needed files at once | ||||
* | Use version info from version.h in Makefile | David Sommerseth | 2009-06-11 | 1 | -2/+5 |
| | | | | | Also cleaned up a little bit and added 'version' as a new target to show some version info | ||||
* | Pick the version info from version.h | David Sommerseth | 2009-06-11 | 2 | -2/+4 |
| | |||||
* | Make get_version() look for version.h one more place | David Sommerseth | 2009-06-11 | 1 | -1/+5 |
| | |||||
* | Corrected missing copyrights | David Sommerseth | 2009-06-11 | 1 | -1/+2 |
| | |||||
* | Improved setup.py/setup-dbg.py even more | David Sommerseth | 2009-06-11 | 4 | -11/+128 |
| | | | | | Get libxml2 compile time info from xml2-config. Retrieve version number from src/version.h | ||||
* | Updated setup-dbg.py to be in sync with setup.py | David Sommerseth | 2009-06-11 | 1 | -3/+9 |
| | | | | Also undefined the NDEBUG when building this package | ||||
* | Made sure copyright is in place and right people get their deserved credit | David Sommerseth | 2009-06-11 | 9 | -5/+292 |
| | |||||
* | Implemented new dmidecode function - QueryTypeId(...) | David Sommerseth | 2009-06-11 | 1 | -0/+4 |
| | | | | | | This function shadows the dmidecode.type() function. This is to clarify more what the function does and to unify the API against the dmidecodeXML API. | ||||
* | Implemented new dmidecode function - QuerySection(...) | David Sommerseth | 2009-06-11 | 1 | -0/+16 |
| | | | | | | | This is a more dynamic function than the static functions like dmidecode.bios(). The equivalent will be dmidecode.QuerySection('bios') This is to unify the dmidecode API and the dmidecodeXML API | ||||
* | Renamed <description> to <DMIdescription> to avoid confusion with the ↵ | David Sommerseth | 2009-06-11 | 1 | -1/+1 |
| | | | | <Description> tag | ||||
* | Added mapping to retrieve all DMI/SMBIOS types dmidecode can decode | David Sommerseth | 2009-06-11 | 1 | -0/+46 |
| | |||||
* | Fixed crashes and unexpected behaviour on unknown DMI/SMBIOS types | David Sommerseth | 2009-06-11 | 3 | -20/+48 |
| | | | | | Also provide more useful information, both on unsupported types and types not found on the hardware | ||||
* | Fixed error in XML data for dmi_temperature_probe_location(...) | David Sommerseth | 2009-06-11 | 1 | -1/+1 |
| | |||||
* | Removed no longer needed file | David Sommerseth | 2009-06-10 | 1 | -1/+0 |
| | |||||
* | Cleaned up and fetch libdir from Python settings instead | David Sommerseth | 2009-06-10 | 1 | -2/+5 |
| | |||||
* | Updated Makefile and redhat.spec to work | David Sommerseth | 2009-06-10 | 2 | -9/+17 |
| | |||||
* | Added missing include file | David Sommerseth | 2009-06-10 | 1 | -0/+249 |
| | |||||
* | Discovered another issue with Python and imports | David Sommerseth | 2009-06-10 | 4 | -4/+5 |
| | | | | | | | | | | | | | | | | | | The shard library got renamed to dmidecodemodule.so, and this was not clever. When you do 'import dmidecode' in Python, it will look for files in this order: dmidecode dmidecode.so dmidecodemodule.so dmidecode.py dmidecode.pyc This is of course a problem when the wrapper introduced in commit 65c9384ec9b6e265aba11227ffa37ae7a6a787d1 is called dmidecode.py, and Python attempts to load dmidecodemodule.so before dmidecode.py. To solve this, dmidecodemodule.so is now renamed to dmidecodemod.so. | ||||
* | Fixed missing include and disabled printing errors from stderr | David Sommerseth | 2009-06-10 | 1 | -2/+2 |
| | |||||
* | Fixed import issues with dmidecode | David Sommerseth | 2009-06-10 | 5 | -21/+22 |
| | | | | | | | | | | | | | | | | As we now include libxml2 and the required libxml2mod (which is used to wrap xmlDoc and xmlNode data into Python objects), importing only dmidecode caused a failure. If adding import libxml2 first, everything would work out fine. To avoid this issue, due to backwards compatibility, a tiny dmidecode wrapper is implemted as well. The dmidecode.so module is now renamed to dmidecodemodule.so, and the wrapper is now called dmidecode.py. To simplify things, the dmidecodeXML module introduced in commit b25b2ca548508cd2beb26f465b7bc5a296592461 is not merged into the new dmidecode.py The constants mentioned are now called dmidecode.DMIXML_NODE and dmidecode.DMIXML_DOC and to instantiate the dmidecodeXML class, dmidecode.dmidecodeXML() is used. | ||||
* | Updated unit-test to check the XML API | David Sommerseth | 2009-06-10 | 1 | -1/+72 |
| | |||||
* | Implemented native libxml2 XML API for dmidecode | David Sommerseth | 2009-06-10 | 3 | -16/+180 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To use this API, you need to import dmidecodeXML. This is a wrapper class for the internal XML API which has been implemented. In addition, you might also want to import libxml2 as well. dmidecodeXML::QuerySection(<string>) Valid section strings can be found in the pymap.xml file, in the <GroupMapping> tag section. dmidecodeXML::TypeId(<integer between 0-255>) Valid values should match the DMI/SMBIOS specification. dmidecodeXML::SetResultType(resultType) Result type can be either dmidecodeXML.DMIXML_NODE or dmidecodeXML.DMIXML_DOC ---------------------------------------------------------- import libxml2 import dmidecodeXML dmixml = dmidecodeXML.dmidecodeXML() section_nodes = dmixml.QuerySection('processor') dmixml.SetResultType(dmidecodeXML.DMIXML_DOC) typeid_doc = dmixml.QueryTypeId(0x10) dmixml.SetResultType(dmidecodeXML.DMIXML_NODE) typeid_doc.saveFormatFileEnc("-", "UTF-8", 1) ---------------------------------------------------------- | ||||
* | Forgot to remove a comment in dmierror.c | David Sommerseth | 2009-06-09 | 1 | -1/+1 |
| | |||||
* | Remember to compile in dmierror.c ;-) | David Sommerseth | 2009-06-09 | 2 | -0/+2 |
| | |||||
* | Improved error handling and fixed last unit-test failures | David Sommerseth | 2009-06-09 | 1 | -64/+33 |
| | |||||
* | Don't set exceptions when it should already be set | David Sommerseth | 2009-06-09 | 1 | -4/+16 |
| | |||||
* | Moved xmlpythonizer.c over to new error functions | David Sommerseth | 2009-06-09 | 1 | -59/+48 |
| | |||||
* | Added new error handling code, to simplify error handling | David Sommerseth | 2009-06-09 | 2 | -0/+133 |
| | |||||
* | Fixed SEGV when setting new devive file | David Sommerseth | 2009-06-09 | 1 | -2/+4 |
| | |||||
* | 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 |
| |