From cc2a6158eef6957769fd5739446916d3e5413ae1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 31 Dec 2009 16:18:10 +0100 Subject: [PATCH] Add execute handler to struct writer. --- alsa_write.c | 2 +- file_write.c | 2 ++ oss_write.c | 2 ++ write.c | 2 +- write.h | 1 + write_common.c | 2 ++ 6 files changed, 9 insertions(+), 2 deletions(-) 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" -- 2.39.5