Add virDomainCheckpoint APIs
[libvirt-python/ericb.git] / libvirt-override-virDomainCheckpoint.py
blob788ec500b407169a287982c47b203819905f9b43
1 def getConnect(self):
2 """Get the connection that owns the domain that a checkpoint was created for"""
3 return self.connect()
5 def getDomain(self):
6 """Get the domain that a checkpoint was created for"""
7 return self.domain()
9 def listChildren(self, flags=0):
10 """List all child checkpoints and returns a list of checkpoint objects"""
11 ret = libvirtmod.virDomainCheckpointListChildren(self._o, flags)
12 if ret is None:
13 raise libvirtError("virDomainCheckpointListChildren() failed", conn=self)
15 retlist = list()
16 for chkptr in ret:
17 retlist.append(virDomainCheckpoint(self, _obj=chkptr))
19 return retlist