summaryrefslogtreecommitdiffstats
path: root/src/dmidecode.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-03 20:40:47 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-03 20:40:47 +0200
commita05daf8fde753404511e9f247ab4e9ac9a75bf1a (patch)
tree73b740c081a2c135f072860a47c26891330af322 /src/dmidecode.h
parentaea8d44d49a3b461194cc72b28cdbf2be51da8d8 (diff)
downloadpython-dmidecode-a05daf8fde753404511e9f247ab4e9ac9a75bf1a.tar.gz
python-dmidecode-a05daf8fde753404511e9f247ab4e9ac9a75bf1a.tar.xz
python-dmidecode-a05daf8fde753404511e9f247ab4e9ac9a75bf1a.zip
Rewrote bigger parts to avoid global variables as much as possible
Diffstat (limited to 'src/dmidecode.h')
-rw-r--r--src/dmidecode.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dmidecode.h b/src/dmidecode.h
index 135c264..c199b7a 100644
--- a/src/dmidecode.h
+++ b/src/dmidecode.h
@@ -20,6 +20,7 @@
*/
#include <libxml/tree.h>
+#include "dmihelper.h"
struct dmi_header {
u8 type;
@@ -28,14 +29,14 @@ struct dmi_header {
u8 *data;
};
-void dmi_dump(xmlNode *node, struct dmi_header * h);
-xmlNode *dmi_decode(xmlNode *parent_n, struct dmi_header * h, u16 ver);
+void dmi_dump(options *, xmlNode *node, struct dmi_header * h);
+xmlNode *dmi_decode(options *, xmlNode *parent_n, struct dmi_header * h, u16 ver);
int address_from_efi(size_t * address);
void to_dmi_header(struct dmi_header *h, u8 * data);
xmlNode *smbios_decode_get_version(u8 * buf, const char *devmem);
-int smbios_decode(u8 * buf, const char *devmem, xmlNode *xmlnode);
+int smbios_decode(options *, u8 * buf, const char *devmem, xmlNode *xmlnode);
xmlNode *legacy_decode_get_version(u8 * buf, const char *devmem);
-int legacy_decode(u8 * buf, const char *devmem, xmlNode *xmlnode);
+int legacy_decode(options *, 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);