From: Andre Noll Date: Thu, 31 Dec 2009 15:18:10 +0000 (+0100) Subject: Add execute handler to struct writer. X-Git-Tag: v0.4.2~227 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=cc2a6158eef6957769fd5739446916d3e5413ae1;p=paraslash.git Add execute handler to struct writer. --- diff --git a/alsa_write.c b/alsa_write.c index c7b09f3b..e1c5ce31 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -25,10 +25,10 @@ #include "list.h" #include "sched.h" #include "ggo.h" +#include "buffer_tree.h" #include "write.h" #include "alsa_write.cmdline.h" #include "error.h" -#include "buffer_tree.h" /** always use 16 bit little endian */ #define FORMAT SND_PCM_FORMAT_S16_LE diff --git a/file_write.c b/file_write.c index 9a4f0707..6ba80194 100644 --- a/file_write.c +++ b/file_write.c @@ -10,11 +10,13 @@ #include #include #include +#include #include "para.h" #include "list.h" #include "sched.h" #include "ggo.h" +#include "buffer_tree.h" #include "write.h" #include "string.h" #include "fd.h" diff --git a/oss_write.c b/oss_write.c index 7edd486f..bda0ad4c 100644 --- a/oss_write.c +++ b/oss_write.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "para.h" #include "fd.h" @@ -18,6 +19,7 @@ #include "list.h" #include "sched.h" #include "ggo.h" +#include "buffer_tree.h" #include "write.h" #include "oss_write.cmdline.h" #include "error.h" diff --git a/write.c b/write.c index 8b0e183f..b92dd972 100644 --- a/write.c +++ b/write.c @@ -18,11 +18,11 @@ #include "sched.h" #include "ggo.h" #include "stdin.h" +#include "buffer_tree.h" #include "write.h" #include "write_common.h" #include "fd.h" #include "error.h" -#include "buffer_tree.h" INIT_WRITE_ERRLISTS; diff --git a/write.h b/write.h index 66f21cfe..a88b3537 100644 --- a/write.h +++ b/write.h @@ -87,6 +87,7 @@ struct writer { */ void (*shutdown)(struct writer_node *); struct ggo_help help; + btr_command_handler execute; }; /** diff --git a/write_common.c b/write_common.c index 3f6c0bbe..8e4d5aa6 100644 --- a/write_common.c +++ b/write_common.c @@ -7,12 +7,14 @@ /** \file write_common.c common functions of para_audiod and para_write */ #include +#include #include "para.h" #include "string.h" #include "list.h" #include "sched.h" #include "ggo.h" +#include "buffer_tree.h" #include "write.h" #include "error.h"