X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.h;h=b66a0026197e5b8efe1f4ca381ed399589e5bc3a;hp=f02483d1d9b286d3421b55d94e171952c7b33f50;hb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0;hpb=39ef1da5509461b18beb5b8f16ff6118c20c0ac6 diff --git a/stdout.h b/stdout.h index f02483d1..b66a0026 100644 --- a/stdout.h +++ b/stdout.h @@ -1,11 +1,21 @@ +/* + * Copyright (C) 2006-2012 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + +/** \file stdout.h Writing to stdout via buffer trees. */ + +/** + * The task structure used for writing to stdout. + * + * This is used by para_recv, para_filter and para_client. + */ struct stdout_task { - char *buf; - size_t *bufsize; - size_t *loaded; - int *eof; + /** The task structure used by the scheduler. */ struct task task; - int check_fd; + /** Stdout is always a leaf node in the buffer tree. */ + struct btr_node *btrn; }; -void stdout_pre_select(struct sched *s, struct task *t); -void stdout_post_select(struct sched *s, struct task *t); +void stdout_set_defaults(struct stdout_task *sot);