Change copyright year to 2014.
[paraslash.git] / stdout.h
1 /*
2 * Copyright (C) 2006-2014 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file stdout.h Writing to stdout via buffer trees. */
8
9 /**
10 * The task structure used for writing to stdout.
11 *
12 * This is used by para_recv, para_filter and para_client.
13 */
14 struct stdout_task {
15 /** The task structure used by the scheduler. */
16 struct task task;
17 /** Stdout is always a leaf node in the buffer tree. */
18 struct btr_node *btrn;
19 /** The descriptor flags of STDOUT at startup. */
20 int fd_flags;
21 /** Whether we have to set STDOUT to nonblocking mode. */
22 bool must_set_nonblock_flag;
23 };
24
25 void stdout_set_defaults(struct stdout_task *sot);