Re: [Qemu-devel] [PATCH 6/6] chardev: convert file backend to realize

2012-10-16 Thread Anthony Liguori
Paolo Bonzini writes: > Il 15/10/2012 21:34, Anthony Liguori ha scritto: >> +static char *chardev_file_get_path(Object *obj, Error **errp) >> +{ >> +CharDriverState *chr = CHARDEV(obj); >> +FDCharDriver *s = chr->opaque; >> + >> +return s->path ? g_strdup(s->path) : g_strdup(""); >> +

Re: [Qemu-devel] [PATCH 6/6] chardev: convert file backend to realize

2012-10-16 Thread Paolo Bonzini
Il 15/10/2012 21:34, Anthony Liguori ha scritto: > +static char *chardev_file_get_path(Object *obj, Error **errp) > +{ > +CharDriverState *chr = CHARDEV(obj); > +FDCharDriver *s = chr->opaque; > + > +return s->path ? g_strdup(s->path) : g_strdup(""); > +} > + > +static void chardev_file

[Qemu-devel] [PATCH 6/6] chardev: convert file backend to realize

2012-10-15 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- qemu-char.c | 89 +- 1 files changed, 75 insertions(+), 14 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index bc0fdbe..93a515f 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -540,9 +540,14 @@ stati