From 5df4623af673405691c7f778b42bfcbc4e974082 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 11 Jun 2009 11:29:54 +0200 Subject: 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. --- src/dmidecodemodule.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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}, -- cgit