From 912c8ba257f0c0b05b3d5916da203bc8566c83af Mon Sep 17 00:00:00 2001 From: nima Date: Wed, 29 Oct 2008 07:10:24 +0000 Subject: 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 --- dmidecode.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dmidecode.h') 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[]); -- cgit