summaryrefslogtreecommitdiffstats
path: root/dmidecode.h
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-10-29 07:10:24 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-10-29 07:10:24 +0000
commit912c8ba257f0c0b05b3d5916da203bc8566c83af (patch)
tree41949d273ca6c46bcae8495c6ad6dd17838c89ed /dmidecode.h
parente308e170fc844c8b4454384873497f52f0d37ae7 (diff)
downloadpython-dmidecode-912c8ba257f0c0b05b3d5916da203bc8566c83af.tar.gz
python-dmidecode-912c8ba257f0c0b05b3d5916da203bc8566c83af.tar.xz
python-dmidecode-912c8ba257f0c0b05b3d5916da203bc8566c83af.zip
Recoded the new work from upstream into these (main) files. The options to
dump the memory image onto file, and read back from it has not yet been worked in, but the underlying work has been completed. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@83 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecode.h')
-rw-r--r--dmidecode.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/dmidecode.h b/dmidecode.h
index 5a0a768..130f0c5 100644
--- a/dmidecode.h
+++ b/dmidecode.h
@@ -34,12 +34,10 @@ void to_dmi_header(struct dmi_header *h, u8 *data);
int smbios_decode(u8 *buf, const char *devmem, PyObject* pydata);
int legacy_decode(u8 *buf, const char *devmem, PyObject* pydata);
-const char *dmi_string(struct dmi_header *dm, u8 s);
-
+const char *dmi_string(const struct dmi_header *dm, u8 s);
const char *dmi_system_uuid(u8 *p, char *_);
-PyObject *dmi_system_uuid_py(u8 *p);
+PyObject *dmi_system_uuid_py(const u8 *p, u16 ver);
const char *dmi_chassis_type(u8 code);
-const char *dmi_processor_family(u8 code);
-int dmi_processor_frequency(u8 *p);
+int dmi_processor_frequency(const u8 *p);
int submain(int argc, char * const argv[]);