summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-11 11:29:54 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-11 11:29:54 +0200
commit5df4623af673405691c7f778b42bfcbc4e974082 (patch)
tree268985bc5b9771b88748220558a915c66f6ab080 /src
parent42a61ee1bf81334fffb02d75cb04196862746cef (diff)
downloadpython-dmidecode-5df4623af673405691c7f778b42bfcbc4e974082.tar.gz
python-dmidecode-5df4623af673405691c7f778b42bfcbc4e974082.tar.xz
python-dmidecode-5df4623af673405691c7f778b42bfcbc4e974082.zip
Implemented new dmidecode function - QueryTypeId(...)
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.
Diffstat (limited to 'src')
-rw-r--r--src/dmidecodemodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dmidecodemodule.c b/src/dmidecodemodule.c
index 3bc54d0..7cdbd26 100644
--- a/src/dmidecodemodule.c
+++ b/src/dmidecodemodule.c
@@ -655,6 +655,10 @@ static PyMethodDef DMIDataMethods[] = {
{(char *)"type", dmidecode_get_type, METH_VARARGS, (char *)"By Type"},
+ {(char *)"QueryTypeId", dmidecode_get_type, METH_VARARGS,
+ (char *) "Queries the DMI data structure for a specific DMI type."
+ },
+
{(char *)"pythonmap", dmidecode_set_pythonxmlmap, METH_O,
(char *) "Use another python dict map definition. The default file is " PYTHON_XML_MAP},