[PATCH 32/46] qom: Rename qdev_get_type() to object_get_type()

Markus Armbruster posted 46 patches 5 years, 5 months ago
There is a newer version of this series
[PATCH 32/46] qom: Rename qdev_get_type() to object_get_type()
Posted by Markus Armbruster 5 years, 5 months ago
Commit 2f262e06f0 lifted qdev_get_type() from qdev to object without
renaming it accordingly.  Do that now.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qom/object.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qom/object.c b/qom/object.c
index b8aac074c2..f6e9f0e413 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -2359,7 +2359,7 @@ object_class_property_add_tm(ObjectClass *klass, const char *name,
                                      NULL, NULL, prop);
 }
 
-static char *qdev_get_type(Object *obj, Error **errp)
+static char *object_get_type(Object *obj, Error **errp)
 {
     return g_strdup(object_get_typename(obj));
 }
@@ -2702,7 +2702,7 @@ void object_class_property_set_description(ObjectClass *klass,
 
 static void object_class_init(ObjectClass *klass, void *data)
 {
-    object_class_property_add_str(klass, "type", qdev_get_type,
+    object_class_property_add_str(klass, "type", object_get_type,
                                   NULL);
 }
 
-- 
2.26.2


Re: [PATCH 32/46] qom: Rename qdev_get_type() to object_get_type()
Posted by Eric Blake 5 years, 5 months ago
On 6/24/20 11:43 AM, Markus Armbruster wrote:
> Commit 2f262e06f0 lifted qdev_get_type() from qdev to object without
> renaming it accordingly.  Do that now.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>   qom/object.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Re: [PATCH 32/46] qom: Rename qdev_get_type() to object_get_type()
Posted by Philippe Mathieu-Daudé 5 years, 5 months ago
On 6/24/20 6:43 PM, Markus Armbruster wrote:
> Commit 2f262e06f0 lifted qdev_get_type() from qdev to object without
> renaming it accordingly.  Do that now.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  qom/object.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/qom/object.c b/qom/object.c
> index b8aac074c2..f6e9f0e413 100644
> --- a/qom/object.c
> +++ b/qom/object.c
> @@ -2359,7 +2359,7 @@ object_class_property_add_tm(ObjectClass *klass, const char *name,
>                                       NULL, NULL, prop);
>  }
>  
> -static char *qdev_get_type(Object *obj, Error **errp)
> +static char *object_get_type(Object *obj, Error **errp)
>  {
>      return g_strdup(object_get_typename(obj));
>  }
> @@ -2702,7 +2702,7 @@ void object_class_property_set_description(ObjectClass *klass,
>  
>  static void object_class_init(ObjectClass *klass, void *data)
>  {
> -    object_class_property_add_str(klass, "type", qdev_get_type,
> +    object_class_property_add_str(klass, "type", object_get_type,
>                                    NULL);
>  }
>  
> 

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>