X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.h;h=bb64e3d52ba6f11756ca35f607e732530ac2755d;hp=4dafafdec596d3ff60fd70dbc2291482165f71d0;hb=d96c06ff93493c125b9f4d36655e77d7029ca309;hpb=2a8029478dfc65f0c935d864faf4aea9e3deb27d diff --git a/stdout.h b/stdout.h index 4dafafde..bb64e3d5 100644 --- a/stdout.h +++ b/stdout.h @@ -1,14 +1,21 @@ -/** \file stdout.h common code for uitlities that write to stdout */ +/* + * Copyright (C) 2006-2009 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 *input_eof; - 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);