static int process_render(struct userdata *u) {
pa_assert(u);
-
if (u->memchunk.length <= 0)
pa_sink_render(u->sink, ioring->usable_buffer_space, &u->memchunk);
-
pa_assert(u->memchunk.length > 0);
xc_evtchn_notify(xce, xen_evtchn_port);
pa_thread_mq_install(&u->thread_mq);
- for(;;){
+ for(;;) {
struct pollfd *pollfd;
int ret;
}
-
static int alloc_gref(struct ioctl_gntalloc_alloc_gref *gref_, void **addr) {
int alloc_fd, dev_fd, rv;
return xs_read(xsh, 0, keybuf, &len);
}
-
static int publish_spec(pa_sample_spec *sample_spec) {
/* Publish spec and set state to XenbusStateInitWait*/
int ret;
return ret;
}
-
static int read_backend_default_spec(pa_sample_spec *sample_spec) {
/* Read spec from backend */
char *out;