diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-09-30 18:49:43 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-10-06 11:09:35 -0400 |
commit | a2974439ada0a3eda1fed7d80c8670ce94cbceef (patch) | |
tree | f5c13c43ee9ccc96cf82c1a3bbde82071ac66d9d /hw/core/qdev-prop-internal.h | |
parent | 9ee468f3295e080abe8aed6ffddc339a94590d65 (diff) |
hw/core/qdev-properties: Export enum-related functions
We are going to split this file and reuse these static functions.
Add the local "qdev-prop-internal.h" header declaring them.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200930164949.1425294-6-philmd@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/qdev-prop-internal.h')
-rw-r--r-- | hw/core/qdev-prop-internal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hw/core/qdev-prop-internal.h b/hw/core/qdev-prop-internal.h new file mode 100644 index 0000000000..2a8c9a306a --- /dev/null +++ b/hw/core/qdev-prop-internal.h @@ -0,0 +1,19 @@ +/* + * qdev property parsing + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef HW_CORE_QDEV_PROP_INTERNAL_H +#define HW_CORE_QDEV_PROP_INTERNAL_H + +void qdev_propinfo_get_enum(Object *obj, Visitor *v, const char *name, + void *opaque, Error **errp); +void qdev_propinfo_set_enum(Object *obj, Visitor *v, const char *name, + void *opaque, Error **errp); + +void qdev_propinfo_set_default_value_enum(ObjectProperty *op, + const Property *prop); + +#endif |