summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Added utility to simply change the version numberDavid Sommerseth2009-06-111-0/+53
| | | | | | | | This script will update all needed files at once
| * Use version info from version.h in MakefileDavid Sommerseth2009-06-111-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.hDavid Sommerseth2009-06-112-2/+4
| |
| * Make get_version() look for version.h one more placeDavid Sommerseth2009-06-111-1/+5
| |
| * Corrected missing copyrightsDavid Sommerseth2009-06-111-1/+2
| |
| * Improved setup.py/setup-dbg.py even moreDavid Sommerseth2009-06-114-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.pyDavid Sommerseth2009-06-111-3/+9
| | | | | | | | Also undefined the NDEBUG when building this package
| * Made sure copyright is in place and right people get their deserved creditDavid Sommerseth2009-06-119-5/+292
| |
| * Implemented new dmidecode function - QueryTypeId(...)David Sommerseth2009-06-111-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 Sommerseth2009-06-111-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 Sommerseth2009-06-111-1/+1
| | | | | | | | <Description> tag
| * Added mapping to retrieve all DMI/SMBIOS types dmidecode can decodeDavid Sommerseth2009-06-111-0/+46
| |
| * Fixed crashes and unexpected behaviour on unknown DMI/SMBIOS typesDavid Sommerseth2009-06-113-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 Sommerseth2009-06-111-1/+1
| |
| * Removed no longer needed fileDavid Sommerseth2009-06-101-1/+0
| |
| * Cleaned up and fetch libdir from Python settings insteadDavid Sommerseth2009-06-101-2/+5
| |
| * Updated Makefile and redhat.spec to workDavid Sommerseth2009-06-102-9/+17
| |
| * Added missing include fileDavid Sommerseth2009-06-101-0/+249
| |
| * Discovered another issue with Python and importsDavid Sommerseth2009-06-104-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 stderrDavid Sommerseth2009-06-101-2/+2
| |
| * Fixed import issues with dmidecodeDavid Sommerseth2009-06-105-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 APIDavid Sommerseth2009-06-101-1/+72
| |
| * Implemented native libxml2 XML API for dmidecodeDavid Sommerseth2009-06-103-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.cDavid Sommerseth2009-06-091-1/+1
| |
| * Remember to compile in dmierror.c ;-)David Sommerseth2009-06-092-0/+2
| |
| * Improved error handling and fixed last unit-test failuresDavid Sommerseth2009-06-091-64/+33
| |
| * Don't set exceptions when it should already be setDavid Sommerseth2009-06-091-4/+16
| |
| * Moved xmlpythonizer.c over to new error functionsDavid Sommerseth2009-06-091-59/+48
| |
| * Added new error handling code, to simplify error handlingDavid Sommerseth2009-06-092-0/+133
| |
| * Fixed SEGV when setting new devive fileDavid Sommerseth2009-06-091-2/+4
| |
| * Implemented dmidecode.type(int) function properlyDavid Sommerseth2009-06-091-19/+66
| |
| * Pass typeid as int internally to the dmiMAP_ParseMappingXML_TypeID(...)David Sommerseth2009-06-092-4/+8
| | | | | | | | | | This function will then convert the value to proper hex value for further processing.
| * Big rewrite again, simplified the usage of opt->typeDavid Sommerseth2009-06-095-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 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.