]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audioc.c
Rename ->{pre,post}_select methods to ->{pre,post}_monitor.
[paraslash.git] / audioc.c
index 248f6fb620291ff6ad05a21a8174a1635198b77c..932f0d30e016bde1d7bbbb021194582c05a7cb94 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -143,7 +143,7 @@ static struct i9e_completer audiod_completers[] = {
        {.name = NULL}
 };
 
-static void audioc_pre_select(struct sched *s, void *context)
+static void audioc_pre_monitor(struct sched *s, void *context)
 {
        struct audioc_task *at = context;
        int ret = btr_node_status(at->btrn, 0, BTR_NT_ROOT);
@@ -153,7 +153,7 @@ static void audioc_pre_select(struct sched *s, void *context)
        sched_monitor_readfd(at->fd, s);
 }
 
-static int audioc_post_select(struct sched *s, void *context)
+static int audioc_post_monitor(struct sched *s, void *context)
 {
        char *buf = NULL;
        struct audioc_task *at = context;
@@ -211,8 +211,8 @@ static int audioc_i9e_line_handler(char *line)
                EMBRACE(.name = "audioc line handler"));
        at->task = task_register(&(struct task_info) {
                .name = "audioc",
-               .pre_select = audioc_pre_select,
-               .post_select = audioc_post_select,
+               .pre_monitor = audioc_pre_monitor,
+               .post_monitor = audioc_post_monitor,
                .context = at,
        }, &sched);
        i9e_attach_to_stdout(at->btrn);