X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=write.h;h=cb73498881d1fb2d32e5d259d0bd21fd4227d8f4;hp=0cfcafdade93f8334a9b8236656ba967def148ec;hb=ece0cc264ef6551c2064489757c0efbe6d60aa97;hpb=027f2c1237051d2d569d6be7f381c886f659bac3 diff --git a/write.h b/write.h index 0cfcafda..cb734988 100644 --- a/write.h +++ b/write.h @@ -22,7 +22,7 @@ struct writer_node { /** The buffer tree node associated with this writer node. */ struct btr_node *btrn; /** The task of this writer node. */ - struct task task; + struct task *task; /** The minimal input queue size (size of one audio sample). */ size_t min_iqs; }; @@ -59,13 +59,13 @@ struct writer { * This is called from scheduler. It may use the sched pointer to add * any file descriptors or to decrease the select timeout. */ - void (*pre_select)(struct sched *s, struct task *t); + void (*pre_select)(struct sched *s, void *context); /** * Write audio data. * * Called from the post_select function of the writer node's task. */ - int (*post_select)(struct sched *s, struct task *t); + int (*post_select)(struct sched *s, void *context); /** * Close one instance of the writer. *