]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
stdout.c: Add a flag to activate buffer tree API.
authorAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 22:08:20 +0000 (23:08 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 22:08:20 +0000 (23:08 +0100)
Not used yet.

client.c
filter.c
stdout.c
stdout.h

index ebe33898bc0154665f7ae037e0102f163903b4ba..9bdd0e82fa48499fc61c1319ec1564d7ddb0f278 100644 (file)
--- a/client.c
+++ b/client.c
@@ -8,6 +8,7 @@
 
 #include <regex.h>
 #include <openssl/rc4.h>
 
 #include <regex.h>
 #include <openssl/rc4.h>
+#include <stdbool.h>
 
 #include "para.h"
 #include "list.h"
 
 #include "para.h"
 #include "list.h"
index 7dbc07851b00c78de96b4889663286f468611398..a1cc648d30a3e911f686a010595475f4bc9757ec 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -7,6 +7,7 @@
 /** \file filter.c The stand-alone filter program. */
 
 #include <regex.h>
 /** \file filter.c The stand-alone filter program. */
 
 #include <regex.h>
+#include <stdbool.h>
 
 #include "para.h"
 #include "filter.cmdline.h"
 
 #include "para.h"
 #include "filter.cmdline.h"
index d64586bccd9cdd12ffe743247680d8686ee1c002..4e3b6df9a2582e168c9f144aec44088eb9bc99cc 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -8,6 +8,7 @@
 
 #include <dirent.h> /* readdir() */
 #include <assert.h>
 
 #include <dirent.h> /* readdir() */
 #include <assert.h>
+#include <stdbool.h>
 
 #include "para.h"
 #include "list.h"
 
 #include "para.h"
 #include "list.h"
@@ -89,6 +90,7 @@ void stdout_set_defaults(struct stdout_task *sot)
 {
        int ret;
 
 {
        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");
        sot->task.pre_select = stdout_pre_select;
        sot->task.post_select = stdout_post_select;
        sprintf(sot->task.status, "stdout writer");
index cca12e5f61e2538d99c766f350ee4ef002bce801..c3eb311d5bfd80885d0eac5302fabfa3b47dcb7d 100644 (file)
--- 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;
        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);