-/**
- * the main task of audiod
- *
- * \sa struct task, struct sched
- */
-struct audiod_task {
- struct timeval *now;
- struct task task;
-};
-/**
- * the task for audiod's child (para_client stat)
- *
- * \sa struct task, struct sched
- */
-struct status_task {
- /** the output of the stat command is read from this fd */
- int fd;
- /** stat data is stored here */
- char buf[STRINGSIZE];
- /** number of bytes loaded in \a buf */
- unsigned loaded;
- /** the associated task structure */
- struct task task;
- /** do not restart client command until this time */
- struct timeval restart_barrier;
- int playing;
- int offset_seconds;
- int length_seconds;
- int sa_time_diff_sign;
- char *stat_item_values[NUM_STAT_ITEMS];
- struct timeval server_stream_start;
- struct timeval sa_time_diff;
-};
-extern struct status_task *stat_task;