]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdout.c
Rename ->{pre,post}_select methods to ->{pre,post}_monitor.
[paraslash.git] / stdout.c
index f31b8675d2d85900f4abf88c948fc45bbfc8f128..ba5f19670fce6c3c04d256a2056477064f5df7d3 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -11,7 +11,7 @@
 #include "buffer_tree.h"
 
 /* Monitor STDOUT_FILENO if there is input data available. */
-static void stdout_pre_select(struct sched *s, void *context)
+static void stdout_pre_monitor(struct sched *s, void *context)
 {
        struct stdout_task *sot = context;
        int ret;
@@ -27,7 +27,7 @@ static void stdout_pre_select(struct sched *s, void *context)
  * If input from the buffer tree is available and STDOUT_FILENO is ready, write
  * as much as possible.
  */
-static int stdout_post_select(struct sched *s, void *context)
+static int stdout_post_monitor(struct sched *s, void *context)
 {
        struct stdout_task *sot = context;
        struct btr_node *btrn = sot->btrn;
@@ -79,8 +79,8 @@ void stdout_task_register(struct stdout_task *sot, struct sched *s)
 {
        int ret;
        struct task_info ti = {
-               .pre_select = stdout_pre_select,
-               .post_select = stdout_post_select,
+               .pre_monitor = stdout_pre_monitor,
+               .post_monitor = stdout_post_monitor,
                .context = sot,
                .name = "stdout",
        };