qemu-e2k/include/sysemu
Marc-André Lureau 777357d758 chardev: qom-ify
Turn Chardev into Object.

qemu_chr_alloc() is replaced by the qemu_chardev_new() constructor. It
will call qemu_char_open() to open/intialize the chardev with the
ChardevCommon *backend settings.

The CharDriver::create() callback is turned into a ChardevClass::open()
which is called from the newly introduced qemu_chardev_open().

"chardev-gdb" and "chardev-hci" are internal chardev and aren't
creatable directly with -chardev. Use a new internal flag to disable
them. We may want to use TYPE_USER_CREATABLE interface instead, or
perhaps allow -chardev usage.

Although in general we keep typename and macros private, unless the type
is being used by some other file, in this patch, all types and common
helper macros for qemu-char.c are in char.h. This is to help transition
now (some types must be declared early, while some aren't shared) and
when splitting in several units. This is to be improved later.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-01-27 18:08:00 +01:00
..
accel.h accel: make configure_accelerator return void 2016-05-18 15:04:27 +03:00
arch_init.h nios2: Add support for Nios-II R1 2017-01-24 13:10:36 -08:00
balloon.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
block-backend.h block: Use blk_co_ioctl() for all BB level ioctls 2016-10-27 19:05:22 +02:00
blockdev.h
bt.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
char.h chardev: qom-ify 2017-01-27 18:08:00 +01:00
cpus.h linux-user: remove #define smp_{cores, threads} 2016-09-27 16:17:17 -03:00
cryptodev.h cryptodev: wrap the ready flag 2017-01-10 07:02:52 +02:00
device_tree.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
dma.h dma-helpers: explicitly pass alignment into DMA helpers 2016-10-27 16:29:13 -04:00
dump-arch.h
dump.h
hax.h target/i386: Add Intel HAX files 2017-01-19 22:07:46 +01:00
hostmem.h monitor: fix qmp/hmp query-memdev not reporting IDs of memory backends 2017-01-12 15:35:06 -02:00
hw_accel.h Plumb the HAXM-based hardware acceleration support 2017-01-19 22:07:46 +01:00
iothread.h iothread: add poll-grow and poll-shrink parameters 2017-01-03 16:38:50 +00:00
kvm_int.h
kvm.h kvm: move cpu synchronization code 2017-01-19 22:07:46 +01:00
memory_mapping.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
numa.h numa: make -numa parser dynamically allocate CPUs masks 2017-01-12 15:51:36 -02:00
os-posix.h log: Add locking to large logging blocks 2016-11-01 10:29:03 -06:00
os-win32.h log: Add locking to large logging blocks 2016-11-01 10:29:03 -06:00
qtest.h
replay.h char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
reset.h hw: move reset handlers from vl.c to hw/core 2017-01-16 17:52:35 +01:00
rng-random.h rng-random: rename RndRandom to RngRandom 2016-05-23 12:18:43 +05:30
rng.h
seccomp.h
sysemu.h char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
tpm_backend_int.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tpm_backend.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tpm.h
watchdog.h
xen-mapcache.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00