libxl: drop libxl_cpuarray -- topology was the only user.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2012-01-31 16:34:39 +00:00
1 parent 8137e3ea1a
commit cf3b8d958c
7 files changed
+1 -97

No files matched your search

-24
View File
@@ -227,11 +227,6 @@ int attrib__libxl_cpumap_set(PyObject *v, libxl_cpumap *pptr)
return 0;
}
int attrib__libxl_cpuarray_set(PyObject *v, libxl_cpuarray *pptr)
{
return -1;
}
int attrib__libxl_file_reference_set(PyObject *v, libxl_file_reference *pptr)
{
return genwrap__string_set(v, &pptr->path);
@@ -304,25 +299,6 @@ PyObject *attrib__libxl_cpumap_get(libxl_cpumap *pptr)
return cpulist;
}
PyObject *attrib__libxl_cpuarray_get(libxl_cpuarray *pptr)
{
PyObject *list = NULL;
int i;
list = PyList_New(0);
for (i = 0; i < pptr->entries; i++) {
if (pptr->array[i] == LIBXL_CPUARRAY_INVALID_ENTRY) {
PyList_Append(list, Py_None);
} else {
PyObject* pyint = PyInt_FromLong(pptr->array[i]);
PyList_Append(list, pyint);
Py_DECREF(pyint);
}
}
return list;
}
PyObject *attrib__libxl_file_reference_get(libxl_file_reference *pptr)
{
return genwrap__string_get(&pptr->path);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.