snapshot: Add virDomainSnapshotDefNew
commit7fe07761a71d4ff63292812f1eb84e39d817b04a
authorEric Blake <eblake@redhat.com>
Wed, 8 May 2019 18:30:38 +0000 (8 13:30 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 9 May 2019 14:51:51 +0000 (9 09:51 -0500)
treec0afa58abb43c4cc36ffc29ba3a223f6634292a7
parent098043eddda94bb8f00b013b5f60e6a6a4e06e9e
snapshot: Add virDomainSnapshotDefNew

In preparation for making virDomainSnapshotDef a descendant of
virObject, it is time to fix all callers that allocate an object to
use virDomainSnapshotDefNew() instead of VIR_ALLOC().  Fortunately,
there aren't very many :)

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
src/conf/snapshot_conf.c
src/conf/snapshot_conf.h
src/libvirt_private.syms
src/vbox/vbox_common.c