summaryrefslogtreecommitdiffstats
path: root/dmidecode.h
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-07-24 10:48:01 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-07-24 10:48:01 +0000
commit4289505932068a0c071c7c9fb4655678394cb469 (patch)
tree91d9489e8b589964976c0145b16ae06bed50e772 /dmidecode.h
parent2a92460699aa8a18bc0602d48afed1ebb408c16a (diff)
downloadpython-dmidecode-4289505932068a0c071c7c9fb4655678394cb469.tar.gz
python-dmidecode-4289505932068a0c071c7c9fb4655678394cb469.tar.xz
python-dmidecode-4289505932068a0c071c7c9fb4655678394cb469.zip
Now that code has been converted, work has started on "bios", and at the point
of proof-of-concept. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@12 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecode.h')
-rw-r--r--dmidecode.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/dmidecode.h b/dmidecode.h
index 9dc343b..7aea58c 100644
--- a/dmidecode.h
+++ b/dmidecode.h
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <Python.h>
struct dmi_header {
u8 type;
@@ -26,11 +27,11 @@ struct dmi_header {
};
const char *dmi_dump(struct dmi_header *h, char *_);
-void dmi_decode(struct dmi_header *h, u16 ver);
-int address_from_efi(size_t *address);
+void dmi_decode(struct dmi_header *h, u16 ver, PyObject *pydata);
+int address_from_efi(size_t *address, char *_);
void to_dmi_header(struct dmi_header *h, u8 *data);
-int smbios_decode(u8 *buf, const char *devmem, char *_);
-int legacy_decode(u8 *buf, const char *devmem, char *_);
+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_system_uuid(u8 *p, char *_);