From 2a92460699aa8a18bc0602d48afed1ebb408c16a Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 4 Jul 2008 15:24:22 +0000 Subject: Removing printf() statements, instead adding to Python dictionary object, untested. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@11 abc39116-655e-4be6-ad55-d661dc543056 --- catsprintf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'catsprintf.h') diff --git a/catsprintf.h b/catsprintf.h index 46ac8e2..b4060e6 100644 --- a/catsprintf.h +++ b/catsprintf.h @@ -1,6 +1,8 @@ #ifndef CAT #define CAT 1 +#include + #include #include #include @@ -18,10 +20,11 @@ typedef struct _dmi_minor { dmi_codes_major* major; char *key; char value[512]; - struct _dmi_minor* last; + struct _dmi_minor* next; } dmi_minor; int catsprintf(char *buf, const char *format, ...); dmi_minor* dmiAppendObject(long code, char const *key, const char *format, ...); +int dmiSetItem(PyObject* dict, const char *key, const char *format, ...); #endif -- cgit