Add execute handler to struct writer.
authorAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 15:18:10 +0000 (16:18 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 15:18:10 +0000 (16:18 +0100)
alsa_write.c
file_write.c
oss_write.c
write.c
write.h
write_common.c

index c7b09f3..e1c5ce3 100644 (file)
 #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
index 9a4f070..6ba8019 100644 (file)
 #include <sys/types.h>
 #include <dirent.h>
 #include <sys/time.h>
+#include <stdbool.h>
 
 #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"
index 7edd486..bda0ad4 100644 (file)
@@ -11,6 +11,7 @@
 #include <fcntl.h>
 #include <dirent.h>
 #include <sys/soundcard.h>
+#include <stdbool.h>
 
 #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 8b0e183..b92dd97 100644 (file)
--- a/write.c
+++ b/write.c
 #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 66f21cf..a88b353 100644 (file)
--- 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;
 };
 
 /**
index 3f6c0bb..8e4d5aa 100644 (file)
@@ -7,12 +7,14 @@
 /** \file write_common.c common functions of para_audiod and para_write */
 
 #include <regex.h>
+#include <stdbool.h>
 
 #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"