[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v7 2/6] char: Add a QemuChrHandlers struct to in
From: |
Amit Shah |
Subject: |
[Qemu-devel] Re: [PATCH v7 2/6] char: Add a QemuChrHandlers struct to initialise chardev handlers |
Date: |
Wed, 5 May 2010 18:55:20 +0530 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On (Wed) May 05 2010 [08:13:58], Anthony Liguori wrote:
> On 05/04/2010 04:39 PM, Amit Shah wrote:
>> Instead of passing each handler in the qemu_add_handlers() function,
>> create a struct of handlers that can be passed to the function instead.
>>
>> Signed-off-by: Amit Shah<address@hidden>
>> - qemu_chr_add_handlers(chr, gdb_chr_can_receive, gdb_chr_receive,
>> - gdb_chr_event, NULL);
>> + qemu_chr_add_handlers(chr,&gdb_handlers, NULL);
>> }
>>
>
> This sort of change isn't a bad one but if we're making this change, we
> should change the signature of these functions to also take a
> QemuChrHandlers *.
What do you mean?
> Also, let's drop the qemu_ and Qemu prefixes while we're at it.
In a later series, please. -ETOOMANYRESENDS already..
Amit
- [Qemu-devel] Re: [PATCH v7 4/6] char: Add qemu_chr_write_nb() for nonblocking writes, (continued)
- [Qemu-devel] Re: [PATCH v7 4/6] char: Add qemu_chr_write_nb() for nonblocking writes, Gerd Hoffmann, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 4/6] char: Add qemu_chr_write_nb() for nonblocking writes, Anthony Liguori, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 3/6] char: Let writers know how much data was written in case of errors, Anthony Liguori, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 3/6] char: Let writers know how much data was written in case of errors, Amit Shah, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 3/6] char: Let writers know how much data was written in case of errors, Anthony Liguori, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 3/6] char: Let writers know how much data was written in case of errors, Amit Shah, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 2/6] char: Add a QemuChrHandlers struct to initialise chardev handlers, Anthony Liguori, 2010/05/05
- [Qemu-devel] Re: [PATCH v7 2/6] char: Add a QemuChrHandlers struct to initialise chardev handlers,
Amit Shah <=
- [Qemu-devel] Re: [PATCH v7 2/6] char: Add a QemuChrHandlers struct to initialise chardev handlers, Anthony Liguori, 2010/05/05
[Qemu-devel] Re: [PATCH v7 0/6] char: non-blocking writes, virtio-console flow control, Amit Shah, 2010/05/04
[Qemu-devel] Re: [PATCH v7 0/6], Juan Quintela, 2010/05/05