From 473a2eaba8c6aa632398bc777e475857b8db006b Mon Sep 17 00:00:00 2001 From: borine <32966433+borine@users.noreply.github.com> Date: Sat, 29 Jul 2023 16:02:58 +0100 Subject: [PATCH] doxygen: control: silence 'not documented' item warnings From: borine@github Link: https://github.com/alsa-project/alsa-lib/pull/340 Signed-off-by: Jaroslav Kysela --- src/control/control.c | 3 +++ src/control/control_hw.c | 3 ++- src/control/control_remap.c | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/control/control.c b/src/control/control.c index fe23dfd9..d77ab24c 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -428,6 +428,7 @@ int snd_ctl_elem_info(snd_ctl_t *ctl, snd_ctl_elem_info_t *info) return ctl->ops->element_info(ctl, info); } +#ifndef DOC_HIDDEN #if 0 /* deprecated */ static bool validate_element_member_dimension(snd_ctl_elem_info_t *info) { @@ -503,6 +504,8 @@ int __snd_ctl_add_elem_set(snd_ctl_t *ctl, snd_ctl_elem_info_t *info, return ctl->ops->element_add(ctl, info); } +#endif /* DOC_HIDDEN */ + /** * \brief Create and add some user-defined control elements of integer type. * \param ctl A handle of backend module for control interface. diff --git a/src/control/control_hw.c b/src/control/control_hw.c index d21ef226..a353767d 100644 --- a/src/control/control_hw.c +++ b/src/control/control_hw.c @@ -40,11 +40,12 @@ const char *_snd_module_control_hw = ""; #endif +#ifndef DOC_HIDDEN + #ifndef F_SETSIG #define F_SETSIG 10 #endif -#ifndef DOC_HIDDEN #define SNDRV_FILE_CONTROL ALSA_DEVICE_DIRECTORY "controlC%i" #define SNDRV_CTL_VERSION_MAX SNDRV_PROTOCOL_VERSION(2, 0, 4) diff --git a/src/control/control_remap.c b/src/control/control_remap.c index faf9a739..6fcb01f1 100644 --- a/src/control/control_remap.c +++ b/src/control/control_remap.c @@ -33,6 +33,7 @@ #include #include +#ifndef DOC_HIDDEN #if 0 #define REMAP_DEBUG 1 #define debug(format, args...) fprintf(stderr, format, ##args) @@ -48,6 +49,7 @@ #endif #define EREMAPNOTFOUND (888899) +#endif /* DOC_HIDDEN */ #ifndef PIC /* entry for static linking */ @@ -379,10 +381,12 @@ static int snd_ctl_remap_elem_list(snd_ctl_t *ctl, snd_ctl_elem_list_t *list) return 0; } +#ifndef DOC_HIDDEN #define ACCESS_BITS(bits) \ (bits & (SNDRV_CTL_ELEM_ACCESS_READWRITE|\ SNDRV_CTL_ELEM_ACCESS_VOLATILE|\ SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE)) +#endif /* DOC_HIDDEN */ static int remap_map_elem_info(snd_ctl_remap_t *priv, snd_ctl_elem_info_t *info) { @@ -1141,6 +1145,7 @@ static int parse_map(snd_ctl_remap_t *priv, snd_config_t *conf) * \param name Name of control device * \param remap Remap configuration * \param map Map configuration + * \param child child configuration root * \param mode Control handle mode * \retval zero on success otherwise a negative error code * \warning Using of this function might be dangerous in the sense @@ -1326,4 +1331,6 @@ int _snd_ctl_remap_open(snd_ctl_t **handlep, char *name, snd_config_t *root, snd snd_ctl_close(cctl); return err; } +#ifndef DOC_HIDDEN SND_DLSYM_BUILD_VERSION(_snd_ctl_remap_open, SND_CONTROL_DLSYM_VERSION); +#endif -- 2.47.1