]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 c7b09f3b06f65d73b79724b8fc04f970279efa3c..e1c5ce312e6ce8f6af6d81c9070b5899e40f1398 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 9a4f0707f6f213f1fc88346b0aa2c039bebfa003..6ba80194ae9362e5787a22d183c52f8f1072780f 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 7edd486fccc37a295700b3dedd9cc0da76976e24..bda0ad4cb7189fec9311c1cdfb9896e3fe9b7598 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 8b0e183f9fdf68908ec0dec8ee410295e577d261..b92dd972e88051dcb0f1a5159cfbed0504615e62 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 66f21cfe6e8256f088a1c9246a9b72b13a49b134..a88b3537d9545972234613f6f4eccf01b576350c 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 3f6c0bbea422bbbc44e16857000b78df6d45a5d8..8e4d5aa62a30e9c69d34dc31231da78afde193a5 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"