From dd2c3baf99ebebaf269e2825a2598a20529a4224 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 28 Dec 2009 23:08:20 +0100 Subject: [PATCH] stdout.c: Add a flag to activate buffer tree API. Not used yet. --- client.c | 1 + filter.c | 1 + stdout.c | 2 ++ stdout.h | 2 ++ 4 files changed, 6 insertions(+) diff --git a/client.c b/client.c index ebe33898..9bdd0e82 100644 --- a/client.c +++ b/client.c @@ -8,6 +8,7 @@ #include #include +#include #include "para.h" #include "list.h" diff --git a/filter.c b/filter.c index 7dbc0785..a1cc648d 100644 --- a/filter.c +++ b/filter.c @@ -7,6 +7,7 @@ /** \file filter.c The stand-alone filter program. */ #include +#include #include "para.h" #include "filter.cmdline.h" diff --git a/stdout.c b/stdout.c index d64586bc..4e3b6df9 100644 --- a/stdout.c +++ b/stdout.c @@ -8,6 +8,7 @@ #include /* readdir() */ #include +#include #include "para.h" #include "list.h" @@ -89,6 +90,7 @@ void stdout_set_defaults(struct stdout_task *sot) { int ret; + sot->use_buffer_tree = false; sot->task.pre_select = stdout_pre_select; sot->task.post_select = stdout_post_select; sprintf(sot->task.status, "stdout writer"); diff --git a/stdout.h b/stdout.h index cca12e5f..c3eb311d 100644 --- a/stdout.h +++ b/stdout.h @@ -20,6 +20,8 @@ struct stdout_task { 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); -- 2.39.5