From 1ff5adfa5bad905e36bb7eff5e436e26793f111f Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Mon, 31 Aug 2020 17:07:40 -0400 Subject: Use OBJECT_DECLARE_SIMPLE_TYPE when possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=ObjectDeclareType $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé Signed-off-by: Eduardo Habkost Message-Id: <20200831210740.126168-19-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost --- include/sysemu/vhost-user-backend.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include/sysemu') diff --git a/include/sysemu/vhost-user-backend.h b/include/sysemu/vhost-user-backend.h index 76ca06cf40..23205edeb8 100644 --- a/include/sysemu/vhost-user-backend.h +++ b/include/sysemu/vhost-user-backend.h @@ -22,13 +22,10 @@ #include "io/channel.h" #define TYPE_VHOST_USER_BACKEND "vhost-user-backend" -OBJECT_DECLARE_TYPE(VhostUserBackend, VhostUserBackendClass, - vhost_user_backend, VHOST_USER_BACKEND) +OBJECT_DECLARE_SIMPLE_TYPE(VhostUserBackend, vhost_user_backend, + VHOST_USER_BACKEND, ObjectClass) -struct VhostUserBackendClass { - ObjectClass parent_class; -}; struct VhostUserBackend { /* private */ -- cgit v1.2.3