• E
    snapshot: Access snapshot def directly when needed · 55c2ab3e
    Eric Blake 提交于
    An upcoming patch will rework virDomainSnapshotObjList to be generic
    for both snapshots and checkpoints; reduce the churn by adding a new
    accessor virDomainSnapshotObjGetDef() which returns the
    snapshot-specific definition even when the list is rewritten to
    operate only on a base class, then using it at sites that that are
    specific to snapshots.  Use VIR_STEAL_PTR when appropriate in the
    affected lines.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    55c2ab3e
virdomainsnapshotobjlist.h 4.1 KB