summaryrefslogtreecommitdiffstats
path: root/src/dmidecodemodule.h
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-20 01:44:55 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-20 01:44:55 +0000
commit8626bbd2cfcb10109cfa85b8d7ef99898e6f7771 (patch)
treef50b216d694e92505b051a4d2af635bcd3da913b /src/dmidecodemodule.h
parentf5397d936f5dc85813d1d6d50cf5f7d6ba9716c8 (diff)
downloadpython-dmidecode-8626bbd2cfcb10109cfa85b8d7ef99898e6f7771.tar.gz
python-dmidecode-8626bbd2cfcb10109cfa85b8d7ef99898e6f7771.tar.xz
python-dmidecode-8626bbd2cfcb10109cfa85b8d7ef99898e6f7771.zip
Removed "detected" from appearing in every single function call. TODO: An ivar
should be implemented to return this string, so further cleanup is still required; as it stands, there is no access to this information anymore! Updated test case. Further general cleanup. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@133 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'src/dmidecodemodule.h')
-rw-r--r--src/dmidecodemodule.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dmidecodemodule.h b/src/dmidecodemodule.h
index 89eea87..00532bd 100644
--- a/src/dmidecodemodule.h
+++ b/src/dmidecodemodule.h
@@ -1,4 +1,5 @@
#include <Python.h>
+#include <structmember.h>
#include <stdio.h>
#include <string.h>
@@ -26,8 +27,8 @@ extern PyObject* dmi_decode(struct dmi_header *h, u16 ver);
extern int address_from_efi(size_t *address);
extern void to_dmi_header(struct dmi_header *h, u8 *data);
extern void dmi_table(u32 base, u16 len, u16 num, u16 ver, const char *devmem);
-extern int smbios_decode(u8 *buf, const char *devmem, PyObject* pydata);
-extern int legacy_decode(u8 *buf, const char *devmem, PyObject* pydata);
+extern int smbios_decode(u8 *buf, const char *devmem, PyObject* pydata, PyObject* pydata_ver);
+extern int legacy_decode(u8 *buf, const char *devmem, PyObject* pydata, PyObject* pydata_ver);
extern void *mem_chunk(size_t base, size_t len, const char *devmem);
extern u8 *parse_opt_type(u8 *p, const char *arg);