]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - recv.h
Switch audiod over to the buffer tree API.
[paraslash.git] / recv.h
diff --git a/recv.h b/recv.h
index 0d1c180e0c9562339dc80793604512438d9fd730..3f13f108a98696e8b50ef53988bcb7f69d5d82c8 100644 (file)
--- a/recv.h
+++ b/recv.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -24,6 +24,8 @@ struct receiver_node {
        void *conf;
        /** The task associated with this instance. */
        struct task task;
+       /** The receiver node is always the root of the buffer tree. */
+       struct btr_node *btrn;
 };
 
 /**
@@ -54,6 +56,7 @@ struct receiver {
         * \a argc and \a argv.
         */
        void *(*parse_config)(int argc, char **argv);
+       void (*free_config)(void *conf);
        /**
         * Open one instance of the receiver.
         *
@@ -105,6 +108,7 @@ struct receiver {
         */
        void (*post_select)(struct sched *s, struct task *t);
 
+       /** The two help texts of this receiver. */
        struct ggo_help help;
 };
 
@@ -127,7 +131,10 @@ extern struct receiver receivers[];
        UDP_RECEIVER \
        {.name = NULL}};
 
+/** Iterate over all available receivers. */
 #define FOR_EACH_RECEIVER(i) for (i = 0; receivers[i].name; i++)
 
+void recv_init(void);
 void *check_receiver_arg(char *ra, int *receiver_num);
 void print_receiver_helps(int detailed);
+int generic_recv_pre_select(struct sched *s, struct task *t);