]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fix doxygen warnings
authorClemens Ladisch <clemens@ladisch.de>
Wed, 12 Oct 2005 16:08:53 +0000 (16:08 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Wed, 12 Oct 2005 16:08:53 +0000 (16:08 +0000)
Fix some wrong parameter names, hide some undocumented functions, and
correctly escape <> characters.

src/conf.c
src/mixer/mixer.c
src/mixer/simple.c
src/mixer/simple_abst.c

index da8bc458b11b2655f47f6cd03ea4984678915430..9a8591fcebc364e78d25ad5acddf4d4dbf3498be 100644 (file)
@@ -364,7 +364,7 @@ Several built-in functions are available.</P>
 
 <P>A function is defined with the id \c \@func and the function name. All other
 values in the current compound are used as configuration for the function.
-If the compound func.<function_name> is defined in the root node, then the
+If the compound func.\<function_name\> is defined in the root node, then the
 library and function from this compound configuration are used, otherwise
 'snd_func_' is prefixed to the string and code from the ALSA library is used.
 The definition of a function looks like:</P> 
index 332982319109e3a400bcfd6e00cea9c958869a8a..5ef0ba79f11bbfa9803ade762fd5a604055215ec 100644 (file)
@@ -214,7 +214,7 @@ int snd_mixer_attach(snd_mixer_t *mixer, const char *name)
 /**
  * \brief Attach an HCTL to an opened mixer
  * \param mixer Mixer handle
- * \param name HCTL name (see #snd_hctl_open)
+ * \param hctl the HCTL to be attached
  * \return 0 on success otherwise a negative error code
  */
 int snd_mixer_attach_hctl(snd_mixer_t *mixer, snd_hctl_t *hctl)
@@ -645,7 +645,6 @@ static int mixer_compare(const void *a, const void *b)
        return mixer->compare(*(const snd_mixer_elem_t * const *)a, *(const snd_mixer_elem_t * const *)b);
 }
 
-typedef int (*qsort_func)(const void *, const void *);
 static int snd_mixer_sort(snd_mixer_t *mixer)
 {
        unsigned int k;
@@ -856,8 +855,8 @@ int snd_mixer_handle_events(snd_mixer_t *mixer)
 
 /**
  * \brief Set callback function for a mixer
- * \param mixer mixer handle
- * \param callback callback function
+ * \param obj mixer handle
+ * \param val callback function
  */
 void snd_mixer_set_callback(snd_mixer_t *obj, snd_mixer_callback_t val)
 {
@@ -868,7 +867,7 @@ void snd_mixer_set_callback(snd_mixer_t *obj, snd_mixer_callback_t val)
 /**
  * \brief Set callback private value for a mixer
  * \param mixer mixer handle
- * \param callback_private callback private value
+ * \param val callback private value
  */
 void snd_mixer_set_callback_private(snd_mixer_t *mixer, void * val)
 {
@@ -968,7 +967,7 @@ int snd_mixer_class_malloc(snd_mixer_class_t **ptr)
 
 /**
  * \brief frees a previously allocated #snd_mixer_class_t
- * \param pointer to object to free
+ * \param obj pointer to object to free
  */
 void snd_mixer_class_free(snd_mixer_class_t *obj)
 {
@@ -1075,6 +1074,7 @@ int snd_mixer_class_set_private_free(snd_mixer_class_t *obj, void (*private_free
 /**
  * \brief Set mixer compare callback to given mixer class
  * \param obj Mixer simple class identifier
+ * \param compare the compare callback to be used
  * \return zero if success, otherwise a negative error code
  */
 int snd_mixer_class_set_compare(snd_mixer_class_t *obj, snd_mixer_compare_t compare)
index 621ab219576133cd45650dc20466a3b6a1d932b4..2d90dfd4ccc4f84446e91d4c35de6e22775d503c 100644 (file)
@@ -79,6 +79,8 @@ int snd_mixer_selem_register(snd_mixer_t *mixer,
        return -ENXIO;
 }
 
+#ifndef DOC_HIDDEN
+
 #define CHECK_BASIC(xelem) \
 { \
        assert(xelem); \
@@ -108,6 +110,8 @@ int snd_mixer_selem_register(snd_mixer_t *mixer,
 #define COND_CAPS(xelem, what) \
        !!(((sm_selem_t *)(elem)->private_data)->caps & (what))
 
+#endif /* !DOC_HIDDEN */
+
 #ifndef DOC_HIDDEN
 int snd_mixer_selem_compare(const snd_mixer_elem_t *c1, const snd_mixer_elem_t *c2)
 {
@@ -931,7 +935,7 @@ int snd_mixer_selem_id_malloc(snd_mixer_selem_id_t **ptr)
 
 /**
  * \brief frees a previously allocated #snd_mixer_selem_id_t
- * \param pointer to object to free
+ * \param obj pointer to object to free
  */
 void snd_mixer_selem_id_free(snd_mixer_selem_id_t *obj)
 {
index 0a88dc098b576d56b6dfdddbd420d3164edba5f2..789216dc2fdce416a5c1b9cf607516be8ffd358c 100644 (file)
@@ -39,6 +39,8 @@
 #include "asoundlib.h"
 #include "mixer_simple.h"
 
+#ifndef DOC_HIDDEN
+
 #define SO_PATH PKGLIBDIR "/smixer"
 
 typedef struct _class_priv {
@@ -54,6 +56,8 @@ typedef struct _class_priv {
 
 typedef int (*snd_mixer_sbasic_init_t)(snd_mixer_class_t *class);
 
+#endif /* !DOC_HIDDEN */
+
 static int try_open(snd_mixer_class_t *class, const char *lib)
 {
        class_priv_t *priv = snd_mixer_class_get_private(class);
@@ -324,9 +328,9 @@ void snd_mixer_sbasic_set_private(const snd_mixer_class_t *class, void *private_
 }
 
 /**
- * \brief Set private data for basic abstraction
+ * \brief Set private data free callback for basic abstraction
  * \param class Mixer class
- * \param private_data Private data
+ * \param private_free free callback for private data
  */
 void snd_mixer_sbasic_set_private_free(const snd_mixer_class_t *class, void (*private_free)(snd_mixer_class_t *class))
 {