From d951672a8f40d36a88e221ef1362c0c25e2333eb Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 9 Sep 2007 22:14:19 +0000 Subject: [PATCH] add file_system_list wrapper --- bindings/python/_sigar.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/bindings/python/_sigar.c b/bindings/python/_sigar.c index 1245f88a..9385e654 100644 --- a/bindings/python/_sigar.c +++ b/bindings/python/_sigar.c @@ -132,6 +132,45 @@ static PyObject *pysigar_new_strlist(char **data, unsigned long number) return av; } +static PyObject *pysigar_new_list(char *data, unsigned long number, + int size, PyTypeObject *type) +{ + unsigned long i; + PyObject *av = PyTuple_New(number); + + for (i=0; i