• E
    snapshot: Factor out virDomainMomentDef class · ffc0fbeb
    Eric Blake 提交于
    Pull out the common parts of virDomainSnapshotDef that will be reused
    for virDomainCheckpointDef into a new base class.  Adjust all callers
    that use the direct fields (some of it is churn that disappears when
    the next patch refactors virDomainSnapshotObj; oh well...).
    
    Someday, I hope to switch this type to be a subclass of virObject, but
    that requires a more thorough audit of cleanup paths, and besides
    minimal incremental changes are easier to review.
    
    As for the choice of naming:
    I promised my teenage daughter Evelyn that I'd give her credit for her
    contribution to this commit. I asked her "What would be a good name
    for a base class for DomainSnapshot and DomainCheckpoint". After
    explaining what a base class was (using the classic OOB Square and
    Circle inherit from Shape), she came up with "DomainMoment", which is
    way better than my initial thought of "DomainPointInTime" or
    "DomainPIT".
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    ffc0fbeb
qemu_domain.c 430.2 KB