[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include f
From: |
Alex Bligh |
Subject: |
Re: [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include files |
Date: |
Mon, 12 Aug 2013 18:04:59 +0100 |
Jan,
On 12 Aug 2013, at 17:40, Jan Kiszka wrote:
> On 2013-08-11 18:43, Alex Bligh wrote:
>> include/qemu/timer.h has no need to include main-loop.h and
>> doing so causes an issue for the next patch. Unfortunately
>> various files assume including timers.h will pull in main-loop.h.
>> Untangle this mess.
>>
>
> Hmm, this triggers a double typedef of AioContext for me. I've resolved
> it like the QEMUTimer issue: moved the typedef to typedefs.h.
For clarity, you mean in include/block/aio.h:
typedef struct AioContext {
becomes
include/block/aio.h:struct AioContext {
and then in include/qemu/typedefs.h add:
typedef struct AioContext AioContext;
(just so I can get it right in v11 as I don't see your error here)
--
Alex Bligh
- [Qemu-devel] [RFC] [PATCHv10 07/31] aio / timers: Make qemu_run_timers and qemu_run_all_timers return progress, (continued)
- [Qemu-devel] [RFC] [PATCHv10 07/31] aio / timers: Make qemu_run_timers and qemu_run_all_timers return progress, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 04/31] aio / timers: Consistent treatment of disabled clocks for deadlines, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 11/31] aio / timers: Add QEMUTimerListGroup to AioContext, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 10/31] aio / timers: Add QEMUTimerListGroup and helper functions, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 12/31] aio / timers: Add a notify callback to QEMUTimerList, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 14/31] aio / timers: Add aio_timer_init & aio_timer_new wrappers, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 13/31] aio / timers: aio_ctx_prepare sets timeout from AioContext timers, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 15/31] aio / timers: Convert aio_poll to use AioContext timers' deadline, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include files, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 16/31] aio / timers: Convert mainloop to use timeout, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 18/31] aio / timers: Introduce new API timer_new and friends, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 17/31] aio / timers: On timer modification, qemu_notify or aio_notify, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 22/31] aio / timers: Remove legacy qemu_clock_deadline & qemu_timerlist_deadline, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 19/31] aio / timers: Use all timerlists in icount warp calculations, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 23/31] aio / timers: Add qemu_clock_get_ms and qemu_clock_get_ms, Alex Bligh, 2013/08/11