diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-04-04 16:06:42 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-04-04 16:06:42 +0100 |
commit | 543e95e992087a26e2e4e3a1a763ffc348bb6f30 (patch) | |
tree | 64f2ebf50462c0318661a91ec14a72c514e37a6b /tools/python | |
parent | 8c1ba7af046fcd12d1f91ad8506a2f8f9667a7a5 (diff) | |
download | xen-543e95e992087a26e2e4e3a1a763ffc348bb6f30.tar.gz xen-543e95e992087a26e2e4e3a1a763ffc348bb6f30.tar.bz2 xen-543e95e992087a26e2e4e3a1a763ffc348bb6f30.zip |
libxl: Move bdf parsing into libxlu
Config parsing functions do not properly belong in libxl. Move them into
libxlu so that others can use them or not as they see fit.
No functional changes. One side-effect was making public a private libxl
utility function which just set the elements of a structure from the function
arguments passed in.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r-- | tools/python/xen/lowlevel/xl/xl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/python/xen/lowlevel/xl/xl.c b/tools/python/xen/lowlevel/xl/xl.c index bbbf2a9cb6..c4f7c52714 100644 --- a/tools/python/xen/lowlevel/xl/xl.c +++ b/tools/python/xen/lowlevel/xl/xl.c @@ -40,6 +40,7 @@ #include <libxl.h> #include <libxl_utils.h> +#include <libxlutil.h> #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) @@ -556,7 +557,7 @@ static PyObject *pyxl_pci_parse(XlObject *self, PyObject *args) return NULL; } - if ( libxl_device_pci_parse_bdf(self->ctx, &pci->obj, str) ) { + if ( xlu_pci_parse_bdf(NULL, &pci->obj, str) ) { PyErr_SetString(xl_error_obj, "cannot parse pci device spec (BDF)"); Py_DECREF(pci); return NULL; |