]> git.proxmox.com Git - mirror_qemu.git/commit - ioport.c
ioport: add destructor method to IORange
authorAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 15:36:19 +0000 (17:36 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 15:36:19 +0000 (17:36 +0200)
commitc5b703ac2073de8b968ef058793db0294f6a2979
tree6ef106e5b7c3489709ded94d8f5699b8364e2690
parent2aeabc08179553e1a7eed6cf26286c3efc06ee0b
ioport: add destructor method to IORange

Previously all callers had a containing object with a destructor that
could be used to trigger cleanup of the IORange objects (typically
just freeing the containing object), but a forthcoming memory API
change doesn't fit this pattern.  Rather than setting up a new global
table, extend the ioport system to support destructors.

Signed-off-by: Avi Kivity <avi@redhat.com>
ioport.c
ioport.h
iorange.h