write: Kill non-btr mode.
[paraslash.git] / stdout.h
1 /*
2  * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
3  *
4  * Licensed under the GPL v2. For licencing details see COPYING.
5  */
6
7 /** \file stdout.h The standard out task structure. */
8
9 /**
10  * The task structure used for writing to stdout.
11  */
12 struct stdout_task {
13         /** Pointer to the data buffer pointer. */
14         char **bufp;
15         /** Number of bytes loaded in \a buf. */
16         size_t *loaded;
17         /** Pointer to the error variable of the feeding task. */
18         int *input_error;
19         /** The task structure. */
20         struct task task;
21         /** Whether \p STDOUT_FILENO was included in the write fd set. */
22         int check_fd;
23         /** Non-null if buffer tree API should be used. */
24         struct btr_node *btrn;
25 };
26
27 void stdout_set_defaults(struct stdout_task *sot);