From 91a850b6d91e76c5450781b1e029c1611ef9f2e7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Jul 2008 12:27:26 +0000 Subject: Next phase is to start converting all pure C functions returning `char *' and such to new Pythonized functions returning `PyObject *', to save from having to `PyString_FromString()' and similar, and more importantly, some functions return a long string that could better be represented by a PyDict, PyList etc. This is the first commit of many more to come, converting a `case XX:' at a time, making sure that each commit can actually compile and run. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@21 abc39116-655e-4be6-ad55-d661dc543056 --- dmidecode.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dmidecode.h') diff --git a/dmidecode.h b/dmidecode.h index 7aea58c..2479728 100644 --- a/dmidecode.h +++ b/dmidecode.h @@ -35,7 +35,12 @@ 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 *_); +PyObject *dmi_chassis_height(u8 code); +PyObject *dmi_string_py(struct dmi_header *dm, u8 s); +PyObject *dmi_chassis_state(u8 code); const char *dmi_chassis_type(u8 code); +PyObject *dmi_chassis_type_py(u8 code); +PyObject *dmi_chassis_power_cords(u8 code); const char *dmi_processor_family(u8 code); const char *dmi_processor_frequency(u8 *p, char *_); -- cgit