unicorn/qemu/include/qemu
Eric Blake ef357d06bc
qapi: Simplify use of range.h
Calling our function g_list_insert_sorted_merged is a misnomer,
since we are NOT writing a glib function. Furthermore, we are
making every caller pass the same comparator function of
range_merge(): any caller that would try otherwise would break
in weird ways since our internal call to ranges_can_merge() is
hard-coded to operate only on ranges, rather than paying
attention to the caller's comparator.

Better is to fix things so that callers don't have to care about
our internal comparator, by picking a function name and updating
the parameter type away from a gratuitous use of void*, to make
it obvious that we are operating specifically on a list of ranges
and not a generic list. Plus, refactoring the code here will
make it easier to plug a memory leak in the next patch.

range_compare() is now internal only, and moves to the .c file.

Backports commit 7c47959d0cb05db43014141a156ada0b6d53a750 from qemu
2018-02-25 00:02:42 -05:00
..
atomic.h atomics: do not emit consume barrier for atomic_rcu_read 2018-02-24 03:28:11 -05:00
bitmap.h memory: RCU ram_list.dirty_memory[] for safe RAM hotplug 2018-02-22 15:38:03 -05:00
bitops.h bitops.h: Implement half-shuffle and half-unshuffle ops 2018-02-24 19:02:36 -05:00
bswap.h Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h 2018-02-21 23:10:43 -05:00
compiler.h compiler.h: add QEMU_ALIGNED() to enforce struct alignment 2018-02-24 17:32:43 -05:00
crc32c.h import 2015-08-21 15:04:50 +08:00
cutils.h util: move declarations out of qemu-common.h 2018-02-22 09:25:48 -05:00
fprintf-fn.h Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00
host-utils.h host-util: Add power calculation functions 2018-02-17 15:23:35 -05:00
int128.h Automated leading tab to spaces conversion. 2017-01-21 12:28:22 +11:00
log.h log: move qemu_log_close/qemu_log_flush from header to log.c 2018-02-22 11:13:17 -05:00
mmap-alloc.h exec: factor out duplicate mmap code 2018-02-17 15:24:03 -05:00
module.h cleanup qemu/include/qemu/module.h 2017-01-25 00:20:08 +08:00
osdep.h osdep: Move default qemu_hw_version() value to a macro 2018-02-24 03:16:34 -05:00
queue.h import 2015-08-21 15:04:50 +08:00
range.h qapi: Simplify use of range.h 2018-02-25 00:02:42 -05:00
thread-posix.h remove mutex code 2017-01-20 15:44:03 +08:00
thread-win32.h remove mutex code 2017-01-20 15:44:03 +08:00
thread.h platform.h move #3 2017-01-21 00:13:21 +11:00
timer.h include: move CPU-related definitions out of qemu-common.h 2018-02-24 00:33:49 -05:00
typedefs.h include/qemu/osdep.h: Don't include qapi/error.h 2018-02-21 23:08:18 -05:00