mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=ObjectDeclareType $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200831210740.126168-19-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
c821774a3b
commit
1ff5adfa5b
11 changed files with 22 additions and 55 deletions
|
@ -20,8 +20,8 @@
|
|||
#include "input-barrier.h"
|
||||
|
||||
#define TYPE_INPUT_BARRIER "input-barrier"
|
||||
OBJECT_DECLARE_TYPE(InputBarrier, InputBarrierClass,
|
||||
input_barrier, INPUT_BARRIER)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(InputBarrier, input_barrier,
|
||||
INPUT_BARRIER, ObjectClass)
|
||||
|
||||
|
||||
#define MAX_HELLO_LENGTH 1024
|
||||
|
@ -44,9 +44,6 @@ struct InputBarrier {
|
|||
char buffer[MAX_HELLO_LENGTH];
|
||||
};
|
||||
|
||||
struct InputBarrierClass {
|
||||
ObjectClass parent_class;
|
||||
};
|
||||
|
||||
static const char *cmd_names[] = {
|
||||
[barrierCmdCNoop] = "CNOP",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue