From 3dd06d10c6b4465bb05203393ae192cb98d511d4 Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 31 Oct 2008 09:00:26 +0000 Subject: Integrating the required bits from dmiopt into dmihelper. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@92 abc39116-655e-4be6-ad55-d661dc543056 --- dmihelper.h | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'dmihelper.h') diff --git a/dmihelper.h b/dmihelper.h index c4dcd53..290c234 100644 --- a/dmihelper.h +++ b/dmihelper.h @@ -1,5 +1,5 @@ -#ifndef CAT -#define CAT 1 +#ifndef HELPER +#define HELPER 1 #include @@ -8,6 +8,7 @@ #include #include #include +#include "types.h" #define MAXVAL 1024 @@ -80,6 +81,23 @@ typedef struct _dmi_minor { void dmiAppendData(PyObject *pydata, const int count); int dmiSetItem(PyObject* dict, const char *key, const char *format, ...); -dmi_minor* dmiAppendObject(long code, char const *key, const char *format, ...); +//dmi_minor* dmiAppendObject(long code, char const *key, const char *format, ...); + +/*** dmiopt.h ***/ +struct string_keyword { + const char *keyword; + u8 type; + u8 offset; +}; + +/*** dmiopt.h ***/ +typedef struct _options { + const char *devmem; + unsigned int flags; + u8 *type; + const struct string_keyword *string; + PyObject *dumpfile; +} options; +extern options opt; #endif -- cgit