From: "Kővágó Zoltán" <dirty.ice.hu@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 11/12] coreaudio: do not use global variables where possible
Date: Wed, 03 Jun 2015 21:43:15 +0200 [thread overview]
Message-ID: <556F58D3.6060008@gmail.com> (raw)
In-Reply-To: <CAFEAcA_4sTJO46ZKe5+H66PnBy5+r6qse6Cx96Dz3a2b6PQcxA@mail.gmail.com>
2015-06-03 21:19 keltezéssel, Peter Maydell írta:
> On 3 June 2015 at 11:49, Kővágó, Zoltán <dirty.ice.hu@gmail.com> wrote:
>> Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
>> ---
>> audio/coreaudio.c | 43 ++++++++++++++++++++++++-------------------
>> 1 file changed, 24 insertions(+), 19 deletions(-)
>
>> +static CoreaudioConf glob_conf = {
>> + .buffer_frames = 512,
>> + .nbuffers = 4,
>> +};
>> +
>> static void *coreaudio_audio_init (void)
>> {
>> + CoreaudioConf *conf = g_malloc(sizeof(CoreaudioConf));
>> + *conf = glob_conf;
>> +
>> atexit(coreaudio_atexit);
>> - return &coreaudio_audio_init;
>> + return conf;
>> }
>>
>> static void coreaudio_audio_fini (void *opaque)
>> {
>> - (void) opaque;
>> + g_free(opaque);
>> }
>>
>> static struct audio_option coreaudio_options[] = {
>> {
>> .name = "BUFFER_SIZE",
>> .tag = AUD_OPT_INT,
>> - .valp = &conf.buffer_frames,
>> + .valp = &glob_conf.buffer_frames,
>> .descr = "Size of the buffer in frames"
>> },
>> {
>> .name = "BUFFER_COUNT",
>> .tag = AUD_OPT_INT,
>> - .valp = &conf.nbuffers,
>> + .valp = &glostconf.nbuffers,
>> .descr = "Number of buffers"
>> },
>
> /Users/pm215/src/qemu/audio/coreaudio.c:529:19: error: use of
> undeclared identifier 'glostconf'; did you mean 'glob_conf'?
> .valp = &glostconf.nbuffers,
> ^~~~~~~~~
> glob_conf
> /Users/pm215/src/qemu/audio/coreaudio.c:500:22: note: 'glob_conf' declared here
> static CoreaudioConf glob_conf = {
> ^
> 10 warnings and 1 error generated.
crap, i should used search & replace... does it work with glob_conf or
there are other problems?
Thanks,
Zoltan
next prev parent reply other threads:[~2015-06-03 19:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 10:49 [Qemu-devel] [PATCH v2 00/12] Audio backend cleanup Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 01/12] audio: remove esd backend Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 02/12] audio: remove fmod backend Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 03/12] audio: remove winwave audio driver Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 04/12] audio: expose drv_opaque to init_out and init_in Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 05/12] alsaaudio: do not use global variables Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 06/12] paaudio: " Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 07/12] ossaudio: " Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 08/12] wavaudio: " Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 09/12] dsoundaudio: " Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 10/12] paaudio: fix possible resource leak Kővágó, Zoltán
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 11/12] coreaudio: do not use global variables where possible Kővágó, Zoltán
2015-06-03 19:19 ` Peter Maydell
2015-06-03 19:43 ` Kővágó Zoltán [this message]
2015-06-03 10:49 ` [Qemu-devel] [PATCH v2 12/12] sdlaudio: do not allow multiple instances Kővágó, Zoltán
2015-06-03 11:37 ` [Qemu-devel] [PATCH v2 00/12] Audio backend cleanup Gerd Hoffmann
2015-06-03 11:44 ` Peter Maydell
2015-06-03 19:08 ` Peter Maydell
2015-06-03 19:41 ` Kővágó Zoltán
2015-06-03 20:43 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=556F58D3.6060008@gmail.com \
--to=dirty.ice.hu@gmail.com \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).