pulse_poll_revents() has no real purpose, so let's remove it.
pa_threaded_mainloop_lock(ctl->p->mainloop);
- err = pulse_poll_revents(ctl->p, pfd, nfds, revents);
- if (err < 0)
- goto finish;
-
*revents = 0;
if (ctl->updated)
*revents |= POLLIN;
- finish:
pa_threaded_mainloop_unlock(ctl->p->mainloop);
return err;
pa_threaded_mainloop_lock(pcm->p->mainloop);
- err = pulse_poll_revents(pcm->p, pfd, nfds, revents);
- if (err < 0)
- goto finish;
-
*revents = 0;
/*
*revents |= POLLIN;
}
- finish:
pa_threaded_mainloop_unlock(pcm->p->mainloop);
return err;
return 1;
}
-
-int pulse_poll_revents(snd_pulse_t * p, struct pollfd *pfd,
- unsigned int nfds, unsigned short *revents)
-{
- assert(p);
-
- return 1;
-}
PULSE_STATE_INIT,
PULSE_STATE_READY,
} state;
+
} snd_pulse_t;
int pulse_check_connection(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);
-int pulse_poll_revents(snd_pulse_t * p, struct pollfd *pfd,
- unsigned int nfds, unsigned short *revents);