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("");
>> +
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
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