summaryrefslogtreecommitdiffstats
path: root/dmidecode.h
diff options
context:
space:
mode:
authorroot <root@abc39116-655e-4be6-ad55-d661dc543056>2008-07-25 12:27:26 +0000
committerroot <root@abc39116-655e-4be6-ad55-d661dc543056>2008-07-25 12:27:26 +0000
commit91a850b6d91e76c5450781b1e029c1611ef9f2e7 (patch)
tree9f93174317fd89a756eda3b3a9b597a0bae1ace1 /dmidecode.h
parentdfcf0bfff41f31fd7f75df43e37e2ba7db70b362 (diff)
downloadpython-dmidecode-91a850b6d91e76c5450781b1e029c1611ef9f2e7.tar.gz
python-dmidecode-91a850b6d91e76c5450781b1e029c1611ef9f2e7.tar.xz
python-dmidecode-91a850b6d91e76c5450781b1e029c1611ef9f2e7.zip
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
Diffstat (limited to 'dmidecode.h')
-rw-r--r--dmidecode.h5
1 files changed, 5 insertions, 0 deletions
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 *_);