sched.h: Explicitely mention size of task status buffer.
[paraslash.git] / sched.h
diff --git a/sched.h b/sched.h
index 86afc6fca3ed48defaaf164e929164d77a2d56fc..35b5c636d3d6670810cb1c58f9d6a21408d054a8 100644 (file)
--- a/sched.h
+++ b/sched.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -27,6 +27,8 @@ struct sched {
        fd_set wfds;
        /** Highest numbered file descriptor in any of the above fd sets. */
        int max_fileno;
+       /** In non-NULL, use this function instead of para_select. */
+       int (*select_function)(int, fd_set *, fd_set *, struct timeval *);
 };
 
 /**
@@ -61,7 +63,7 @@ struct task {
        /** Position of the task in the post_select list of the scheduler. */
        struct list_head post_select_node;
        /** Descriptive text and current status of the task. */
-       char status[MAXLINE];
+       char status[255];
 };
 
 /**
@@ -73,7 +75,6 @@ struct task {
 extern struct timeval *now;
 
 void register_task(struct task *t);
-void unregister_task(struct task *t);
 int schedule(struct sched *s);
 char *get_task_list(void);
 int kill_task(char *id);