diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-10-31 09:00:26 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-10-31 09:00:26 +0000 |
commit | 3dd06d10c6b4465bb05203393ae192cb98d511d4 (patch) | |
tree | 2cc8abef0ee67dc950d0aa4b56f973be328c9fee | |
parent | 895dc84ff44587d7cd6832d68b4efd82f31cab7b (diff) | |
download | python-dmidecode-3dd06d10c6b4465bb05203393ae192cb98d511d4.tar.gz python-dmidecode-3dd06d10c6b4465bb05203393ae192cb98d511d4.tar.xz python-dmidecode-3dd06d10c6b4465bb05203393ae192cb98d511d4.zip |
Integrating the required bits from dmiopt into dmihelper.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@92 abc39116-655e-4be6-ad55-d661dc543056
-rw-r--r-- | dmihelper.h | 24 |
1 files changed, 21 insertions, 3 deletions
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 <Python.h> @@ -8,6 +8,7 @@ #include <stdio.h> #include <stdlib.h> #include <assert.h> +#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 |