python: Don't generate conflicting conn.createXML functions.
[libvirt-python/ericb.git] / libvirt-override-virStream.py
blobf50a7efe90712d2ae78d118da4e214113eb4c17b
1 def __del__(self):
2 try:
3 if self.cb:
4 libvirtmod.virStreamEventRemoveCallback(self._o)
5 except AttributeError:
6 pass
8 if self._o != None:
9 libvirtmod.virStreamFree(self._o)
10 self._o = None
12 def eventAddCallback(self, cb, opaque):
13 """ """
14 try:
15 self.cb = cb
16 self.opaque = opaque
17 ret = libvirtmod.virStreamEventAddCallback(self._o, self)
18 if ret == -1: raise libvirtError ('virStreamEventAddCallback() failed', conn=self._conn)
19 except AttributeError:
20 pass