qdev-properties-system: Change set_pointer's parse callback to use Error
commitf1fb9f0dc087c02b230be4cc96c5c76521f188fa
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jun 2015 13:22:36 +0000 (26 14:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jun 2015 13:22:36 +0000 (26 14:22 +0100)
tree533d81691267040f8e3bd99e8fdcb35d41369953
parentb21ab1fc217b4a2b8f2f85d16bdd8510a7817a34
qdev-properties-system: Change set_pointer's parse callback to use Error

Instead of having set_pointer() call a parse callback which returns
an error number that we then convert to an Error string with
error_set_from_qdev_prop_error(), make the parse callback take an
Error** and set the error itself. This will allow parse routines
to provide more helpful error messages than the generic ones.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435068107-12594-2-git-send-email-peter.maydell@linaro.org
hw/core/qdev-properties-system.c