|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH 45/46] Remove AUDIO_DRIVERS define |
Date: | Sun, 26 Jul 2009 08:24:19 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
malc wrote:
On Fri, 24 Jul 2009, Juan Quintela wrote:Signed-off-by: Juan Quintela <address@hidden> --- audio/audio.c | 25 ++++++++++++++++++++++++- configure | 3 --- 2 files changed, 24 insertions(+), 4 deletions(-)That's how it used to be before, i see no reason of going back to this style.
Right. The way to get rid of AUDIO_DRIVERS is to convert drvtab[] to be a list with an appropriate audio driver registration function.
Each .c file should have an audio_init() method that then registers the audio_driver structure. Individual audio drivers can be added/removed by simply building or not building the file.
Just like how the block infrastructure works. Regards, Anthony Liguori
[..snip..]
[Prev in Thread] | Current Thread | [Next in Thread] |