diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-18 14:53:29 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-18 15:03:24 +0200 |
commit | 3849ca0a4abf5eb661758e1341a6e595d3013c2c (patch) | |
tree | d5f69c0231a687b81c2334f2094f56606bfe906a /src/dmidecodemodule.c | |
parent | cb94510ce84cea18a675f1984cc8a3c955e6a2a4 (diff) | |
download | python-dmidecode-3849ca0a4abf5eb661758e1341a6e595d3013c2c.tar.gz python-dmidecode-3849ca0a4abf5eb661758e1341a6e595d3013c2c.tar.xz python-dmidecode-3849ca0a4abf5eb661758e1341a6e595d3013c2c.zip |
Splitted out SMBIOS/DMI dump functions from dmidecode.c to separate files
Diffstat (limited to 'src/dmidecodemodule.c')
-rw-r--r-- | src/dmidecodemodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dmidecodemodule.c b/src/dmidecodemodule.c index 7e7d0a3..1f37dc3 100644 --- a/src/dmidecodemodule.c +++ b/src/dmidecodemodule.c @@ -49,6 +49,7 @@ #include "dmixml.h" #include "dmierror.h" #include "version.h" +#include "dmidump.h" #include <mcheck.h> static void init(options *opt) @@ -567,7 +568,7 @@ static PyObject *dmidecode_dump(PyObject * self, PyObject * null) stat(f, &_buf); if( (access(f, F_OK) != 0) || ((access(f, W_OK) == 0) && S_ISREG(_buf.st_mode)) ) { - if( dump(f) ) { + if( dump(DEFAULT_MEM_DEV, f) ) { Py_RETURN_TRUE; } } |