[libvirt] [PATCH v6 3/8] snapshot: Break out virDomainSnapshotObj into its own file

Ján Tomko jtomko at redhat.com
Fri Mar 15 12:53:10 UTC 2019


On Fri, Mar 15, 2019 at 12:02:28AM -0500, Eric Blake wrote:
>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.

Technically comments aren't code.

>
>Signed-off-by: Eric Blake <eblake at redhat.com>
>---
> src/conf/snapshot_conf.h        |  20 +-----
> src/conf/virconftypes.h         |   3 +
> src/conf/virdomainsnapshotobj.h |  50 +++++++++++++
> src/conf/Makefile.inc.am        |   2 +
> src/conf/snapshot_conf.c        |  85 ----------------------
> src/conf/virdomainsnapshotobj.c | 122 ++++++++++++++++++++++++++++++++
> src/libvirt_private.syms        |   9 ++-
> 7 files changed, 184 insertions(+), 107 deletions(-)
> create mode 100644 src/conf/virdomainsnapshotobj.h
> create mode 100644 src/conf/virdomainsnapshotobj.c
>
>diff --git a/src/conf/snapshot_conf.h b/src/conf/snapshot_conf.h
>index 6d79dbb0da..444de05a71 100644
>--- a/src/conf/snapshot_conf.h
>+++ b/src/conf/snapshot_conf.h
>@@ -24,6 +24,7 @@
>
> # include "internal.h"
> # include "domain_conf.h"
>+# include "virdomainsnapshotobj.h"
>

Oh, I found the other files using the 'vir' prefix and the no spacing
approach.

> /* Items related to snapshot state */
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190315/b611469b/attachment-0001.sig>


More information about the libvir-list mailing list