[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 15/27] qdev: remove parse method for string prope
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH v2 15/27] qdev: remove parse method for string properties |
Date: |
Sat, 4 Feb 2012 09:02:45 +0100 |
We need the print method to put double quotes, but parsing is not special.
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/qdev-properties.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index 5e19ec8..1fc77b5 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -510,16 +510,6 @@ PropertyInfo qdev_prop_hex64 = {
/* --- string --- */
-static int parse_string(DeviceState *dev, Property *prop, const char *str)
-{
- char **ptr = qdev_get_prop_ptr(dev, prop);
-
- if (*ptr)
- g_free(*ptr);
- *ptr = g_strdup(str);
- return 0;
-}
-
static void free_string(DeviceState *dev, Property *prop)
{
g_free(*(char **)qdev_get_prop_ptr(dev, prop));
@@ -581,7 +571,6 @@ PropertyInfo qdev_prop_string = {
.name = "string",
.type = PROP_TYPE_STRING,
.size = sizeof(char*),
- .parse = parse_string,
.print = print_string,
.free = free_string,
.get = get_string,
--
1.7.7.6
- Re: [Qemu-devel] [PATCH v2 17/27] qdev: remove parse/print methods for mac properties, (continued)
- [Qemu-devel] [PATCH v2 20/27] qdev: let QOM free properties, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 24/27] qdev: initialize properties via QOM, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 26/27] omap_clk: convert to QOM, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 16/27] qdev: remove print/parse methods from LostTickPolicy properties, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 15/27] qdev: remove parse method for string properties,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v2 25/27] qdev: remove unused fields from PropertyInfo, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 21/27] qdev: fix off-by-one, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 09/27] qom: add object_resolve_path_type, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 27/27] omap: remove PROP_PTR properties, Paolo Bonzini, 2012/02/04
- [Qemu-devel] [PATCH v2 11/27] qom: fix canonical paths vs. interfaces, Paolo Bonzini, 2012/02/04