diff mbox

[PATCH/alsa-lib,trivial] hwdep: add missing declaration for snd_hwdep_poll_descriptors_count()

Message ID 1410905223-7541-1-git-send-email-o-takashi@sakamocchi.jp (mailing list archive)
State Accepted
Delegated to: Takashi Iwai
Headers show

Commit Message

Takashi Sakamoto Sept. 16, 2014, 10:07 p.m. UTC
The alsa-lib has 'snd_hwdep_poll_descriptors_count()' but hwdep.h has no
declaration for the function. No applications can call the function just
by including the header.

This commit adds a line to the file for this function.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 include/hwdep.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Takashi Iwai Sept. 17, 2014, 5:55 a.m. UTC | #1
At Wed, 17 Sep 2014 07:07:03 +0900,
Takashi Sakamoto wrote:
> 
> The alsa-lib has 'snd_hwdep_poll_descriptors_count()' but hwdep.h has no
> declaration for the function. No applications can call the function just
> by including the header.
> 
> This commit adds a line to the file for this function.
> 
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

Thanks, applied.


Takashi

> ---
>  include/hwdep.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/hwdep.h b/include/hwdep.h
> index 6496fa2..ad8bb49 100644
> --- a/include/hwdep.h
> +++ b/include/hwdep.h
> @@ -102,6 +102,7 @@ typedef struct _snd_hwdep snd_hwdep_t;
>  int snd_hwdep_open(snd_hwdep_t **hwdep, const char *name, int mode);
>  int snd_hwdep_close(snd_hwdep_t *hwdep);
>  int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space);
> +int snd_hwdep_poll_descriptors_count(snd_hwdep_t *hwdep);
>  int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
>  int snd_hwdep_nonblock(snd_hwdep_t *hwdep, int nonblock);
>  int snd_hwdep_info(snd_hwdep_t *hwdep, snd_hwdep_info_t * info);
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/include/hwdep.h b/include/hwdep.h
index 6496fa2..ad8bb49 100644
--- a/include/hwdep.h
+++ b/include/hwdep.h
@@ -102,6 +102,7 @@  typedef struct _snd_hwdep snd_hwdep_t;
 int snd_hwdep_open(snd_hwdep_t **hwdep, const char *name, int mode);
 int snd_hwdep_close(snd_hwdep_t *hwdep);
 int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space);
+int snd_hwdep_poll_descriptors_count(snd_hwdep_t *hwdep);
 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
 int snd_hwdep_nonblock(snd_hwdep_t *hwdep, int nonblock);
 int snd_hwdep_info(snd_hwdep_t *hwdep, snd_hwdep_info_t * info);