All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abramo Bagnara <abramo.bagnara@libero.it>
To: Jaroslav Kysela <perex@perex.cz>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [alsa-cvslog] CVS: alsa-lib/src/pcm pcm.c,1.227,1.228
Date: Wed, 23 Oct 2002 19:31:15 +0200	[thread overview]
Message-ID: <3DB6DCE3.4452ABED@libero.it> (raw)
In-Reply-To: E180L07-0002h2-00@usw-pr-cvs1.sourceforge.net

Jaroslav Kysela wrote:
> 
> Added ommited clear() functions
> 
> Index: pcm.c
>  /**
> + * \brief clear snd_pcm_hw_params_t structure
> + * \param obj pointer to structure
> + */
> +void snd_pcm_hw_params_clear(snd_pcm_hw_params_t *obj)
> +{
> +       assert(obj);
> +       memset(obj, 0, snd_pcm_hw_params_sizeof());
> +}

Why that _clear functions?
What's the expected semantic for "clear"?

When we designed new API I took in consideration them, but the lack of
usefulness and the ambiguity of semantic has pushed me to avoid them.


-- 
Abramo Bagnara                       mailto:abramo.bagnara@libero.it

Opera Unica                          Phone: +39.546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en

       reply	other threads:[~2002-10-23 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E180L07-0002h2-00@usw-pr-cvs1.sourceforge.net>
2002-10-23 17:31 ` Abramo Bagnara [this message]
2002-10-23 17:38   ` [alsa-cvslog] CVS: alsa-lib/src/pcm pcm.c,1.227,1.228 Jaroslav Kysela
2002-10-23 17:46     ` Jaroslav Kysela
2002-10-23 17:51     ` Abramo Bagnara

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=3DB6DCE3.4452ABED@libero.it \
    --to=abramo.bagnara@libero.it \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@perex.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.