aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-12-08 16:34:33 +0300
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-01-31 13:01:46 +0400
commite96ebf494aa5aa0d81eb0e76ffb727920a0c40cd (patch)
tree0234a622829d1edf4c9a5458daa0fbccbdf7bb15
parent18c508acdbdb7ef21837d1ce0d75c9d9c55381f6 (diff)
baum: convert to finalize
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
-rw-r--r--backends/baum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/baum.c b/backends/baum.c
index 0f418ed358..39c9365024 100644
--- a/backends/baum.c
+++ b/backends/baum.c
@@ -616,9 +616,9 @@ static void baum_chr_read(void *opaque)
}
}
-static void baum_chr_free(Chardev *chr)
+static void char_braille_finalize(Object *obj)
{
- BaumChardev *baum = BAUM_CHARDEV(chr);
+ BaumChardev *baum = BAUM_CHARDEV(obj);
timer_free(baum->cellCount_timer);
if (baum->brlapi) {
@@ -659,13 +659,13 @@ static void char_braille_class_init(ObjectClass *oc, void *data)
cc->open = baum_chr_open;
cc->chr_write = baum_chr_write;
cc->chr_accept_input = baum_chr_accept_input;
- cc->chr_free = baum_chr_free;
}
static const TypeInfo char_braille_type_info = {
.name = TYPE_CHARDEV_BRAILLE,
.parent = TYPE_CHARDEV,
.instance_size = sizeof(BaumChardev),
+ .instance_finalize = char_braille_finalize,
.class_init = char_braille_class_init,
};