qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 12/29] Include hw/irq.h a lot less


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v2 12/29] Include hw/irq.h a lot less
Date: Wed, 7 Aug 2019 22:09:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 8/7/19 9:27 PM, Markus Armbruster wrote:
>>>>  typedef void SaveStateHandler(QEMUFile *f, void *opaque);
>>>>  typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
>>>> +typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
>>
>> Should we prefer a consistent form for function pointer typedefs?  Here,
>> we've mixed 'rettype Name(params)' with 'rettype (*name)(params)'.
> 
> Which of the two difference I can see do you mean?

Eric asked about function type vs pointer-to-function type.

In usage,

  SaveStateHandler *variable;
vs
  qemu_irq_handler variable;


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]