aboutsummaryrefslogtreecommitdiff
path: root/iorange.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-03-05 17:36:19 +0200
committerAvi Kivity <avi@redhat.com>2012-03-05 17:36:19 +0200
commitc5b703ac2073de8b968ef058793db0294f6a2979 (patch)
tree6ef106e5b7c3489709ded94d8f5699b8364e2690 /iorange.h
parent2aeabc08179553e1a7eed6cf26286c3efc06ee0b (diff)
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>
Diffstat (limited to 'iorange.h')
-rw-r--r--iorange.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iorange.h b/iorange.h
index 97831683f0..cd980a8312 100644
--- a/iorange.h
+++ b/iorange.h
@@ -11,6 +11,7 @@ struct IORangeOps {
uint64_t *data);
void (*write)(IORange *iorange, uint64_t offset, unsigned width,
uint64_t data);
+ void (*destructor)(IORange *iorange);
};
struct IORange {