diff options
| author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-04 15:24:22 +0000 |
|---|---|---|
| committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-04 15:24:22 +0000 |
| commit | 2a92460699aa8a18bc0602d48afed1ebb408c16a (patch) | |
| tree | 9d412c51bf47f6b9e3698fda291614846b9a9004 /catsprintf.h | |
| parent | 60eb9d480daa352d7af19ad67e410f384f0e9f74 (diff) | |
| download | python-dmidecode-2a92460699aa8a18bc0602d48afed1ebb408c16a.tar.gz python-dmidecode-2a92460699aa8a18bc0602d48afed1ebb408c16a.tar.xz python-dmidecode-2a92460699aa8a18bc0602d48afed1ebb408c16a.zip | |
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
Diffstat (limited to 'catsprintf.h')
| -rw-r--r-- | catsprintf.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <Python.h> + #include <stdarg.h> #include <string.h> #include <stdio.h> @@ -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 |
