]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Remove our own poll handler implementation entirely
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Sep 2008 18:13:48 +0000 (20:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Sep 2008 18:25:39 +0000 (20:25 +0200)
Neither pcm_pulse.c nor ctl_pulse.c is using our poll handler implementation
anymore, so let's get rid of the common parts previously used by them, too

pulse/pulse.c
pulse/pulse.h

index 7bf0c7a09a1b3f7733b2aea454d3a7edf571790a..617851ea6e0c9e6d949ef2032802553db84f56b5 100644 (file)
@@ -287,27 +287,3 @@ void pulse_poll_deactivate(snd_pulse_t * p)
        /* Drain the pipe */
        while (read(p->main_fd, buf, sizeof(buf)) > 0);
 }
-
-int pulse_poll_descriptors_count(snd_pulse_t * p)
-{
-       assert(p);
-
-       if (p->main_fd >= 0)
-               return 1;
-       else
-               return 0;
-}
-
-int pulse_poll_descriptors(snd_pulse_t * p, struct pollfd *pfd,
-                          unsigned int space)
-{
-       assert(p);
-
-       assert(space >= 1);
-
-       pfd[0].fd = p->main_fd;
-       pfd[0].events = POLLIN;
-       pfd[0].revents = 0;
-
-       return 1;
-}
index 33723da573a4f59fdbbe4bee9f18d93bf4c91e9d..7bf1a5b353609ffdc9e4a821957bf7823cf8b5fa 100644 (file)
@@ -56,6 +56,3 @@ int pulse_connect(snd_pulse_t * p, const char *server);
 
 void pulse_poll_activate(snd_pulse_t * p);
 void pulse_poll_deactivate(snd_pulse_t * p);
-int pulse_poll_descriptors_count(snd_pulse_t * p);
-int pulse_poll_descriptors(snd_pulse_t * p, struct pollfd *pfd,
-                          unsigned int space);