projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdout.c: Add a flag to activate buffer tree API.
[paraslash.git]
/
stdout.h
diff --git
a/stdout.h
b/stdout.h
index
6a6400c
..
c3eb311
100644
(file)
--- a/
stdout.h
+++ b/
stdout.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2006-200
8
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-200
9
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-10,8
+10,8
@@
* The task structure used for writing to stdout.
*/
struct stdout_task {
* The task structure used for writing to stdout.
*/
struct stdout_task {
- /** Pointer to the data buffer. */
- char *
buf
;
+ /** Pointer to the data buffer
pointer
. */
+ char *
*bufp
;
/** Number of bytes loaded in \a buf. */
size_t *loaded;
/** Pointer to the error variable of the feeding task. */
/** Number of bytes loaded in \a buf. */
size_t *loaded;
/** Pointer to the error variable of the feeding task. */
@@
-20,6
+20,8
@@
struct stdout_task {
struct task task;
/** Whether \p STDOUT_FILENO was included in the write fd set. */
int check_fd;
struct task task;
/** Whether \p STDOUT_FILENO was included in the write fd set. */
int check_fd;
+ /** Whether to use the buffer tree API. */
+ bool use_buffer_tree;
};
void stdout_set_defaults(struct stdout_task *sot);
};
void stdout_set_defaults(struct stdout_task *sot);