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