]> git.alsa-project.org Git - alsa-lib.git/commit
control.h: Fix ump header file detection
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Sep 2023 07:38:26 +0000 (09:38 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Sep 2023 07:38:28 +0000 (09:38 +0200)
commitfcce13a6726c52882bd8b7131c61c4eba308792c
treecc88e2e2852350a83eb8b8c0a6ac5affb2bb0467
parent9685505bf438467d9b11919b332b066d3a1c94d0
control.h: Fix ump header file detection

Apparently, the control.h is used from apps separately (outside
asoundlib.h). Avoid errors like:

/usr/include/alsa/control.h:417:47: error: ‘snd_ump_endpoint_info_t’ has not been declared
  417 | int snd_ctl_ump_endpoint_info(snd_ctl_t *ctl, snd_ump_endpoint_info_t *info);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/alsa/control.h:418:44: error: ‘snd_ump_block_info_t’ has not been declared
  418 | int snd_ctl_ump_block_info(snd_ctl_t *ctl, snd_ump_block_info_t *info);
      |                                            ^~~~~~~~~~~~~~~~~~~~

Fixes: https://github.com/alsa-project/alsa-lib/issues/348
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/control.h