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

Takashi Sakamoto o-takashi at sakamocchi.jp
Wed Sep 17 00:07:03 CEST 2014


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 at sakamocchi.jp>
---
 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



More information about the Alsa-devel mailing list