diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-08-20 17:44:14 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-09-13 12:24:12 +0100 |
commit | beac09fd68ed259ab8d669d218c348a0788f806f (patch) | |
tree | 65049de5445922121a509453bf35666fe3b6761b /tests/qemuxmlnstest.c | |
parent | Allow caps to be NULL when creating virDomainObjPtr instances (diff) | |
download | libvirt-beac09fd68ed259ab8d669d218c348a0788f806f.tar.gz libvirt-beac09fd68ed259ab8d669d218c348a0788f806f.tar.bz2 libvirt-beac09fd68ed259ab8d669d218c348a0788f806f.zip |
Turn QEMU capabilities object into a full virObjectPtr
The current qemu capabilities are stored in a virBitmapPtr
object, whose type is exposed to callers. We want to store
more data besides just the flags, so we need to move to a
struct type. This object will also need to be reference
counted, since we'll be maintaining a cache of data per
binary. This change introduces a 'qemuCapsPtr' virObject
class. Most of the change is just renaming types and
variables in all the callers
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/qemuxmlnstest.c')
-rw-r--r-- | tests/qemuxmlnstest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qemuxmlnstest.c b/tests/qemuxmlnstest.c index 253c89e70..43b5fe67c 100644 --- a/tests/qemuxmlnstest.c +++ b/tests/qemuxmlnstest.c @@ -25,7 +25,7 @@ static struct qemud_driver driver; static int testCompareXMLToArgvFiles(const char *xml, const char *cmdline, - virBitmapPtr extraFlags, + qemuCapsPtr extraFlags, const char *migrateFrom, int migrateFd, bool json, @@ -164,7 +164,7 @@ static int testCompareXMLToArgvFiles(const char *xml, struct testInfo { const char *name; - virBitmapPtr extraFlags; + qemuCapsPtr extraFlags; const char *migrateFrom; int migrateFd; bool json; @@ -238,7 +238,7 @@ mymain(void) if (virtTestRun("QEMU XML-2-ARGV " name, \ 1, testCompareXMLToArgvHelper, &info) < 0) \ ret = -1; \ - qemuCapsFree(info.extraFlags); \ + virObjectUnref(info.extraFlags); \ } while (0) # define DO_TEST(name, expectError, ...) \ |