]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Break out virDomainSnapshotObj into its own file
authorEric Blake <eblake@redhat.com>
Fri, 15 Mar 2019 01:03:40 +0000 (20:03 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 15 Mar 2019 16:34:32 +0000 (11:34 -0500)
commitca20690e9ff17c811afd0dd161629a6ae8d422c9
tree12e02841e432f63f44eb82d52d61474e84f0bf4f
parent41e3d35e0952532bbc6bd0d486bd2a5ffbc5192e
snapshot: Break out virDomainSnapshotObj into its own file

snapshot_conf.h was mixing three separate types: the snapshot
definition, the snapshot object, and the snapshot object list.
Separate out the snapshot object code into its own file, which
includes moving a typedef to avoid circular inclusions.

Mostly straight code motion, although I fixed a comment along
the way, now that virDomainSnapshotForEachDescendent now
guarantees a topological visit (missed in b647d219).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/Makefile.inc.am
src/conf/snapshot_conf.c
src/conf/snapshot_conf.h
src/conf/virconftypes.h
src/conf/virdomainsnapshotobj.c [new file with mode: 0644]
src/conf/virdomainsnapshotobj.h [new file with mode: 0644]
src/libvirt_private.syms