diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-09 16:48:15 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-09 16:48:15 +0200 |
commit | bfbac44bd8c0fcddcdcfade6a15313560c9cc6eb (patch) | |
tree | 23aa1bd8c8012429c00bf4f0f2210bf5d2a98675 /src/dmidecode.h | |
parent | 4b22254e56bfdbec884a7f1cf634e340eff813c5 (diff) | |
download | python-dmidecode-bfbac44bd8c0fcddcdcfade6a15313560c9cc6eb.tar.gz python-dmidecode-bfbac44bd8c0fcddcdcfade6a15313560c9cc6eb.tar.xz python-dmidecode-bfbac44bd8c0fcddcdcfade6a15313560c9cc6eb.zip |
Big rewrite again, simplified the usage of opt->type
Instead of building up an u8 array with 255 cells where we only use one
cell at the time now, just pass the type id value as an int the whole way
through.
Diffstat (limited to 'src/dmidecode.h')
-rw-r--r-- | src/dmidecode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dmidecode.h b/src/dmidecode.h index cd6b8a6..f0cb1ab 100644 --- a/src/dmidecode.h +++ b/src/dmidecode.h @@ -36,8 +36,8 @@ void to_dmi_header(struct dmi_header *h, u8 * data); xmlNode *smbios_decode_get_version(u8 * buf, const char *devmem); xmlNode *legacy_decode_get_version(u8 * buf, const char *devmem); -int smbios_decode(u8 *type, u8 *buf, const char *devmem, xmlNode *xmlnode); -int legacy_decode(u8 *type, u8 *buf, const char *devmem, xmlNode *xmlnode); +int smbios_decode(int type, u8 *buf, const char *devmem, xmlNode *xmlnode); +int legacy_decode(int type, u8 *buf, const char *devmem, xmlNode *xmlnode); const char *dmi_string(const struct dmi_header *dm, u8 s); void dmi_system_uuid(xmlNode *node, const u8 * p, u16 ver); |