mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
8137e3ea1a
commit
cf3b8d958c
7 files changed
+1
-97
No files matched your search
@@ -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);
|
||||
|
||||