]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - recv.h
http_recv: Kill non-btr code.
[paraslash.git] / recv.h
diff --git a/recv.h b/recv.h
index dc49ef956e69779f518ad235c6c25e76b1761498..20dd9b86f70970b8d178605f46e2467a728352ef 100644 (file)
--- a/recv.h
+++ b/recv.h
@@ -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.
         *
@@ -75,12 +78,6 @@ struct receiver {
         * \sa receiver_node.
         */
        void (*close)(struct receiver_node *rn);
-       /**
-        * Deactivate the receiver.
-        *
-        * Clean up what init has allocated.
-        */
-       void (*shutdown)(void);
        /**
         * Add file descriptors to fd_sets and compute timeout for select(2).
         *
@@ -134,3 +131,4 @@ extern struct receiver receivers[];
 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);