Move QOM typedefs and add missing includes
Some typedefs and macros are defined after the type check macros. This makes it difficult to automatically replace their definitions with OBJECT_DECLARE_TYPE. Patch generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]') which will split "typdef struct { ... } TypedefName" declarations. Followed by: $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \ $(git grep -l '' -- '*.[ch]') which will: - move the typedefs and #defines above the type check macros - add missing #include "qom/object.h" lines if necessary Reviewed-by:Daniel P. Berrangé <berrange@redhat.com> Reviewed-by:
Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-9-ehabkost@redhat.com> Reviewed-by:
Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-10-ehabkost@redhat.com> Message-Id: <20200831210740.126168-11-ehabkost@redhat.com> Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com>
Showing
- accel/tcg/tcg-all.c 3 additions, 2 deletionsaccel/tcg/tcg-all.c
- backends/cryptodev-builtin.c 3 additions, 2 deletionsbackends/cryptodev-builtin.c
- backends/cryptodev-vhost-user.c 4 additions, 2 deletionsbackends/cryptodev-vhost-user.c
- backends/dbus-vmstate.c 1 addition, 0 deletionsbackends/dbus-vmstate.c
- backends/hostmem-file.c 2 additions, 1 deletionbackends/hostmem-file.c
- backends/hostmem-memfd.c 2 additions, 1 deletionbackends/hostmem-memfd.c
- backends/rng-builtin.c 4 additions, 2 deletionsbackends/rng-builtin.c
- backends/rng-egd.c 4 additions, 3 deletionsbackends/rng-egd.c
- backends/tpm/tpm_emulator.c 4 additions, 2 deletionsbackends/tpm/tpm_emulator.c
- backends/tpm/tpm_passthrough.c 2 additions, 1 deletionbackends/tpm/tpm_passthrough.c
- chardev/baum.c 4 additions, 2 deletionschardev/baum.c
- chardev/char-pty.c 4 additions, 2 deletionschardev/char-pty.c
- chardev/char-ringbuf.c 4 additions, 2 deletionschardev/char-ringbuf.c
- chardev/char-socket.c 4 additions, 2 deletionschardev/char-socket.c
- chardev/char-udp.c 4 additions, 2 deletionschardev/char-udp.c
- chardev/char-win-stdio.c 4 additions, 2 deletionschardev/char-win-stdio.c
- chardev/chardev-internal.h 3 additions, 2 deletionschardev/chardev-internal.h
- chardev/msmouse.c 4 additions, 2 deletionschardev/msmouse.c
- chardev/testdev.c 4 additions, 2 deletionschardev/testdev.c
- chardev/wctablet.c 4 additions, 2 deletionschardev/wctablet.c
Loading
Please register or sign in to comment