diff --git a/tools/virsh-util.h b/tools/virsh-util.h index 9005aa9d36a8910d8ac72547e9982b4f437b76dc..7fdd39dd12ad529efb9b30fba3560cfad1608046 100644 --- a/tools/virsh-util.h +++ b/tools/virsh-util.h @@ -39,8 +39,11 @@ virshCommandOptDomain(vshControl *ctl, const vshCmd *cmd, const char **name); +typedef virDomain virshDomain; + void virshDomainFree(virDomainPtr dom); +VIR_DEFINE_AUTOPTR_FUNC(virshDomain, virshDomainFree); void virshDomainCheckpointFree(virDomainCheckpointPtr chk);