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 --- backends/dbus-vmstate.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'backends') diff --git a/backends/dbus-vmstate.c b/backends/dbus-vmstate.c index 0ca9d52ae5..a13461edea 100644 --- a/backends/dbus-vmstate.c +++ b/backends/dbus-vmstate.c @@ -23,12 +23,9 @@ #define TYPE_DBUS_VMSTATE "dbus-vmstate" -OBJECT_DECLARE_TYPE(DBusVMState, DBusVMStateClass, - dbus_vmstate, DBUS_VMSTATE) +OBJECT_DECLARE_SIMPLE_TYPE(DBusVMState, dbus_vmstate, + DBUS_VMSTATE, ObjectClass) -struct DBusVMStateClass { - ObjectClass parent_class; -}; struct DBusVMState { Object parent; -- cgit v1.2.3