Move mood methods to a separate file.
[paraslash.git] / stdin.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 stdin.h The standard in task structure. */
8
9 /** The task structure used for reading from stdin. */
10 struct stdin_task {
11         /** Input buffer. */
12         char *buf;
13         /** The size of \a buf. */
14         size_t bufsize;
15         /** Number of bytes currently loaded in \a buf. */
16         size_t loaded;
17         /** Pointer to the error member of the consumer. */
18         int *output_error;
19         /** Whether \p STDIN_FILENO was included in the read fd set. */
20         int check_fd;
21         /** The task structure. */
22         struct task task;
23 };
24
25 void stdin_set_defaults(struct stdin_task *sit);