]> git.tue.mpg.de Git - paraslash.git/commitdiff
sched: Rename new_post_select back to post_select.
authorAndre Noll <maan@systemlinux.org>
Sun, 31 Mar 2013 19:47:35 +0000 (19:47 +0000)
committerAndre Noll <maan@systemlinux.org>
Tue, 30 Apr 2013 12:12:46 +0000 (14:12 +0200)
42 files changed:
aacdec_filter.c
afh_recv.c
afs.c
alsa_write.c
amp_filter.c
ao_write.c
audioc.c
audiod.c
client.c
client_common.c
compress_filter.c
dccp_recv.c
fecdec_filter.c
file_write.c
filter.c
filter.h
flacdec_filter.c
grab_client.c
http_recv.c
interactive.c
mp3dec_filter.c
oggdec_filter.c
oss_write.c
osx_write.c
play.c
prebuffer_filter.c
recv.c
recv.h
resample_filter.c
sched.c
sched.h
server.c
spxdec_filter.c
stdin.c
stdout.c
udp_recv.c
vss.c
wav_filter.c
wmadec_filter.c
write.c
write.h
write_common.c

index 71654bf37513b036331082100d9f0024d2c43c3e..9eea045ca27cce9359201a19ab8cba1059664870 100644 (file)
@@ -218,6 +218,6 @@ void aacdec_filter_init(struct filter *f)
        f->open = aacdec_open;
        f->close = aacdec_close;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = aacdec_post_select;
+       f->post_select = aacdec_post_select;
        f->execute = aacdec_execute;
 }
index aa27c8b5c2688133cef3057cf947a453950f3aeb..774ae88c14fd048a9c3a6f1eff18d322b8090352 100644 (file)
@@ -252,7 +252,7 @@ void afh_recv_init(struct receiver *r)
        r->open = afh_recv_open;
        r->close = afh_recv_close;
        r->pre_select = afh_recv_pre_select;
-       r->new_post_select = afh_recv_post_select;
+       r->post_select = afh_recv_post_select;
        r->parse_config = afh_recv_parse_config;
        r->free_config = afh_recv_free_config;
        r->execute = afh_execute;
diff --git a/afs.c b/afs.c
index 9cc075f60195a889c68909705e1166c226eb2bb1..2f521291096eeb3703c9f091ebb739060e68bb6e 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -761,7 +761,7 @@ static void register_signal_task(struct sched *s)
        para_install_sighandler(SIGHUP);
 
        st->task.pre_select = signal_pre_select;
-       st->task.new_post_select = afs_signal_post_select;
+       st->task.post_select = afs_signal_post_select;
        sprintf(st->task.status, "signal task");
        register_task(s, &st->task);
 }
@@ -971,7 +971,7 @@ static void register_command_task(uint32_t cookie, struct sched *s)
        ct->cookie = cookie;
 
        ct->task.pre_select = command_pre_select;
-       ct->task.new_post_select = command_post_select;
+       ct->task.post_select = command_post_select;
        sprintf(ct->task.status, "afs command task");
        register_task(s, &ct->task);
 }
index 04a94f733aef71df6da073bfea868a47f258b32c..0563ba73ab5af59658a5a327ba762f0c8c26af63 100644 (file)
@@ -357,7 +357,7 @@ void alsa_write_init(struct writer *w)
        alsa_write_cmdline_parser_init(&dummy);
        w->close = alsa_close;
        w->pre_select = alsa_write_pre_select;
-       w->new_post_select = alsa_write_post_select;
+       w->post_select = alsa_write_post_select;
        w->parse_config_or_die = alsa_parse_config_or_die;
        w->free_config = alsa_free_config;
        w->help = (struct ggo_help) {
index 186f87a52a8656eb6f42cc28913e5fbf31b9d251..a6bfca25acd3126562d14a198e64ac1459a1b988 100644 (file)
@@ -134,7 +134,7 @@ void amp_filter_init(struct filter *f)
        f->open = amp_open;
        f->close = amp_close;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = amp_post_select;
+       f->post_select = amp_post_select;
        f->parse_config = amp_parse_config;
        f->free_config = amp_free_config;
        f->help = (struct ggo_help) {
index 65ad02c0f7d7b5d190175a6aaec2c4b78623b549..9d204ff3b5220afebbf29efd14d3721411c60b17 100644 (file)
@@ -368,7 +368,7 @@ void ao_write_init(struct writer *w)
        ao_write_cmdline_parser_init(&dummy);
        w->close = aow_close;
        w->pre_select = aow_pre_select;
-       w->new_post_select = aow_post_select;
+       w->post_select = aow_post_select;
        w->parse_config_or_die = aow_parse_config_or_die;
        w->free_config = aow_free_config;
        w->help = (struct ggo_help) {
index f0c61cdf551d6e9f79ad4d0b91658cde6c7e84e8..74fb11cb0622cbab54f5c46ce28cbd5856efffe8 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -137,7 +137,7 @@ out:
 static struct audioc_task audioc_task = {
        .task = {
                .pre_select = audioc_pre_select,
-               .new_post_select = audioc_post_select,
+               .post_select = audioc_post_select,
                .status = "audioc task"
        },
 }, *at = &audioc_task;
index 0ff92e6f72c76d5bf0ac3996aa7923c8d61f502a..d2c66f2bfe5f5bd0d8ba1da88b048ad21d9ceb00 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -495,7 +495,7 @@ static void open_filters(struct slot_info *s)
                fn->filter_num = a->filter_nums[i];
                fn->conf = a->filter_conf[i];
                fn->task.pre_select = f->pre_select;
-               fn->task.new_post_select = f->new_post_select;
+               fn->task.post_select = f->post_select;
                fn->btrn = btr_new_node(&(struct btr_node_description)
                        EMBRACE(.name = f->name, .parent = parent,
                                .handler = f->execute, .context = fn));
@@ -559,7 +559,7 @@ static int open_receiver(int format)
        PARA_NOTICE_LOG("started %s: %s receiver in slot %d\n",
                audio_formats[format], r->name, slot_num);
        rn->task.pre_select = r->pre_select;
-       rn->task.new_post_select = r->new_post_select;
+       rn->task.post_select = r->post_select;
        sprintf(rn->task.status, "%s receiver node", r->name);
        register_task(&sched, &rn->task);
        return slot_num;
@@ -1009,7 +1009,7 @@ static int signal_post_select(struct sched *s, __a_unused struct task *t)
 static void signal_setup_default(struct signal_task *st)
 {
        st->task.pre_select = signal_pre_select;
-       st->task.new_post_select = signal_post_select;
+       st->task.post_select = signal_post_select;
        sprintf(st->task.status, "signal task");
 }
 
@@ -1042,7 +1042,7 @@ static int command_post_select(struct sched *s, struct task *t)
 static void init_command_task(struct command_task *ct)
 {
        ct->task.pre_select = command_pre_select;
-       ct->task.new_post_select = command_post_select;
+       ct->task.post_select = command_post_select;
        ct->task.error = 0;
        ct->fd = audiod_get_socket(); /* doesn't return on errors */
        sprintf(ct->task.status, "command task");
@@ -1272,7 +1272,7 @@ static void init_status_task(struct status_task *st)
 {
        memset(st, 0, sizeof(struct status_task));
        st->task.pre_select = status_pre_select;
-       st->task.new_post_select = status_post_select;
+       st->task.post_select = status_post_select;
        st->sa_time_diff_sign = 1;
        st->clock_diff_count = conf.clock_diff_count_arg;
        st->current_audio_format_num = -1;
index da075e09e2004c1b739ee87e68d2a932fa009315..90dc432b8829426cd9d4ce081e4f8e20a5fb194e 100644 (file)
--- a/client.c
+++ b/client.c
@@ -95,7 +95,7 @@ static int execute_client_command(const char *cmd, char **result)
        struct exec_task exec_task = {
                .task = {
                        .pre_select = exec_pre_select,
-                       .new_post_select = exec_post_select,
+                       .post_select = exec_post_select,
                        .status = "client exec task",
                },
                .result_buf = para_strdup(""),
@@ -548,7 +548,7 @@ static int supervisor_post_select(struct sched *s, __a_unused struct task *t)
 }
 
 static struct task svt = {
-       .new_post_select = supervisor_post_select,
+       .post_select = supervisor_post_select,
        .status = "supervisor task"
 };
 
index 8958cace8bf187ec2c09c2e8f98e8d27eaff06b3..8ea41922c6976996d039912ec9f754fc29fd197f 100644 (file)
@@ -601,7 +601,7 @@ int client_connect(struct client_task *ct, struct sched *s,
        ct->btrn = btr_new_node(&(struct btr_node_description)
                EMBRACE(.name = "client", .parent = parent, .child = child));
        ct->task.pre_select = client_pre_select;
-       ct->task.new_post_select = client_post_select;
+       ct->task.post_select = client_post_select;
        ct->task.error = 0;
        sprintf(ct->task.status, "client");
        register_task(s, &ct->task);
index a10e7c3561b030ca9bb63fa6dd2916bcb7a2a173..d7162791b86d372562f690b464779b250519cbeb 100644 (file)
@@ -150,7 +150,7 @@ void compress_filter_init(struct filter *f)
        f->open = compress_open;
        f->close = compress_close;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = compress_post_select;
+       f->post_select = compress_post_select;
        f->parse_config = compress_parse_config;
        f->free_config = compress_free_config;
        f->help = (struct ggo_help) {
index d5f3cadbcbd60fb6745b8e36d9701642d93994d6..1f9df18955306c2c2449444f3c5a0317d1358a4b 100644 (file)
@@ -178,7 +178,7 @@ void dccp_recv_init(struct receiver *r)
        r->open = dccp_recv_open;
        r->close = dccp_recv_close;
        r->pre_select = dccp_recv_pre_select;
-       r->new_post_select = dccp_recv_post_select;
+       r->post_select = dccp_recv_post_select;
        r->parse_config = dccp_recv_parse_config;
        r->free_config = dccp_recv_free_config;
        r->help = (struct ggo_help) {
index f1bd88595e3752397407c7afb8c4babe7f03baad..2f0a67467b88923d28d21225e936bfca3010848c 100644 (file)
@@ -491,5 +491,5 @@ void fecdec_filter_init(struct filter *f)
        f->close = fecdec_close;
        f->open = fecdec_open;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = fecdec_post_select;
+       f->post_select = fecdec_post_select;
 }
index c758dc11ae02365ccc3ed7081b457c5c37a9381a..28fddcb6a518fc2869271d26703dcaf02f73d481 100644 (file)
@@ -153,7 +153,7 @@ void file_write_init(struct writer *w)
 
        file_write_cmdline_parser_init(&dummy);
        w->pre_select = file_write_pre_select;
-       w->new_post_select = file_write_post_select;
+       w->post_select = file_write_post_select;
        w->parse_config_or_die = file_write_parse_config_or_die;
        w->free_config = file_write_free_config;
        w->close = file_write_close;
index 7a95b1ebce27427e72579c221eedd8748c73fafd..40e3779eab4d22620125294e5024a443b18e6296 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
                        EMBRACE(.name = f->name, .parent = parent,
                        .handler = f->execute, .context = fn));
                fn->task.pre_select = f->pre_select;
-               fn->task.new_post_select = f->new_post_select;
+               fn->task.post_select = f->post_select;
                f->open(fn);
                register_task(&s, &fn->task);
                parent = fn->btrn;
index 31f3ef15b8f4ea92e42caf8bf30cd992e0cf14be..9c57904e59eb73b59fb470bca1d2179384aed7f0 100644 (file)
--- a/filter.h
+++ b/filter.h
@@ -109,7 +109,7 @@ struct filter {
         * post_select function is supposed to set t->error to a (negative)
         * error code.
         */
-       int (*new_post_select)(struct sched *s, struct task *t);
+       int (*post_select)(struct sched *s, struct task *t);
        /**
         * Answer a buffer tree query.
         *
index d739094a0dfe85ea5a949bc16b38da8f818204ed..09b319a029a5c392a2d1616eb4fc5602be97d1cc 100644 (file)
@@ -296,6 +296,6 @@ void flacdec_filter_init(struct filter *f)
        f->open = flacdec_open;
        f->close = flacdec_close;
        f->pre_select = flacdec_pre_select;
-       f->new_post_select = flacdec_post_select;
+       f->post_select = flacdec_post_select;
        f->execute = flacdec_execute;
 }
index 39e9547139da99951c2bef013051d962705bfe17..ecc16fc89bd66d6a71b351b9e468d125bc8a1775 100644 (file)
@@ -130,7 +130,7 @@ static void gc_activate(struct grab_client *gc, struct sched *s)
        gc->btrn = btr_new_node(&(struct btr_node_description)
                EMBRACE(.name = name, .parent = parent));
        gc->task.pre_select = gc_pre_select;
-       gc->task.new_post_select = gc_post_select;
+       gc->task.post_select = gc_post_select;
        snprintf(gc->task.status, sizeof(gc->task.status) - 1, "%s", name);
        gc->task.status[sizeof(gc->task.status) - 1] = '\0';
        gc->task.error = 0;
index ad8e213c6f25372c70597286ec959a1dccf63eba..f1d8593068ad92bd7d86730bbf5d9dbc65d38376 100644 (file)
@@ -192,7 +192,7 @@ void http_recv_init(struct receiver *r)
        r->open = http_recv_open;
        r->close = http_recv_close;
        r->pre_select = http_recv_pre_select;
-       r->new_post_select = http_recv_post_select;
+       r->post_select = http_recv_post_select;
        r->parse_config = http_recv_parse_config;
        r->free_config = http_recv_free_config;
        r->help = (struct ggo_help) {
index cfc1d60663b28e615f31d3c70e6a64e906bdf650..f281901248e3aebe878553220dda938d1c3fbece 100644 (file)
@@ -447,7 +447,7 @@ int i9e_open(struct i9e_client_info *ici, struct sched *s)
        if (ret < 0)
                return ret;
        i9ep->task.pre_select = i9e_pre_select;
-       i9ep->task.new_post_select = i9e_post_select;
+       i9ep->task.post_select = i9e_post_select;
        sprintf(i9ep->task.status, "i9e");
        register_task(s, &i9ep->task);
        rl_readline_name = "para_i9e";
index b6e6e3620dd80bc6748adc068def70db09359956..98627504e22aef64664dade778463404ef641c8b 100644 (file)
@@ -219,7 +219,7 @@ void mp3dec_filter_init(struct filter *f)
        f->parse_config = mp3dec_parse_config;
        f->free_config = mp3dec_free_config;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = mp3dec_post_select;
+       f->post_select = mp3dec_post_select;
        f->execute = mp3dec_execute;
        f->help = (struct ggo_help) {
                .short_help = mp3dec_filter_args_info_help,
index b30abaa1f13cd14f2a019fd8aea862c43e1c4790..f41150f2638c62d4dd48fc23f9705f1dcf94ac4d 100644 (file)
@@ -272,6 +272,6 @@ void oggdec_filter_init(struct filter *f)
        f->open = ogg_open;
        f->close = ogg_close;
        f->pre_select = ogg_pre_select;
-       f->new_post_select = ogg_post_select;
+       f->post_select = ogg_post_select;
        f->execute = oggdec_execute;
 }
index 8a48b07a30e6450c6dd5cc547d27077f6ab6da58..cd327243bb008f912013c0de725b024885d24bf4 100644 (file)
@@ -232,7 +232,7 @@ void oss_write_init(struct writer *w)
        oss_write_cmdline_parser_init(&dummy);
        w->close = oss_close;
        w->pre_select = oss_pre_select;
-       w->new_post_select = oss_post_select;
+       w->post_select = oss_post_select;
        w->parse_config_or_die = oss_parse_config_or_die;
        w->free_config = oss_free_config;
        w->help = (struct ggo_help) {
index f961ca56c610cd6f3a4aba7fe160f0016773b5c8..41b190304471458884ac26bf74013e2c4a864b2a 100644 (file)
@@ -363,7 +363,7 @@ void osx_write_init(struct writer *w)
        osx_write_cmdline_parser_init(&dummy);
        w->close = osx_write_close;
        w->pre_select = osx_write_pre_select;
-       w->new_post_select = osx_write_post_select;
+       w->post_select = osx_write_post_select;
        w->parse_config_or_die = osx_write_parse_config_or_die;
        w->free_config = osx_free_config;
        w->help = (struct ggo_help) {
diff --git a/play.c b/play.c
index 9639501069baaed4e3a396eb03f98813a0380584..2cb0536dfc410eae63c0484ec9bd5535a50fe5ae 100644 (file)
--- a/play.c
+++ b/play.c
@@ -368,7 +368,7 @@ static int open_new_file(struct play_task *pt)
                tmp = NULL;
        }
        pt->rn.task.pre_select = afh_recv->pre_select;
-       pt->rn.task.new_post_select = afh_recv->new_post_select;
+       pt->rn.task.post_select = afh_recv->post_select;
        sprintf(pt->rn.task.status, "%s receiver node", afh_recv->name);
        return 1;
 fail:
@@ -409,7 +409,7 @@ static int load_file(struct play_task *pt)
        pt->fn.filter_num = ret;
        decoder = filters + ret;
        pt->fn.task.pre_select = decoder->pre_select;
-       pt->fn.task.new_post_select = decoder->new_post_select;
+       pt->fn.task.post_select = decoder->post_select;
        sprintf(pt->fn.task.status, "%s decoder", af);
        pt->fn.btrn = btr_new_node(&(struct btr_node_description)
                EMBRACE(.name = decoder->name, .parent = pt->rn.btrn,
@@ -1270,7 +1270,7 @@ int main(int argc, char *argv[])
        pt->current_file = conf.inputs_num - 1;
        pt->playing = true;
        pt->task.pre_select = play_pre_select;
-       pt->task.new_post_select = play_post_select;
+       pt->task.post_select = play_post_select;
        sprintf(pt->task.status, "play task");
        register_task(&sched, &pt->task);
        ret = schedule(&sched);
index 5ccfa456a72e3055b24b00eb06801a05cd7cef95..0759d678bc51ca90284108e3a5d5bc25a4c3fc4a 100644 (file)
@@ -122,7 +122,7 @@ void prebuffer_filter_init(struct filter *f)
        f->parse_config = prebuffer_parse_config;
        f->free_config = prebuffer_free_config;
        f->pre_select = prebuffer_pre_select;
-       f->new_post_select = prebuffer_post_select;
+       f->post_select = prebuffer_post_select;
        f->help = (struct ggo_help) {
                .short_help = prebuffer_filter_args_info_help,
                .detailed_help = prebuffer_filter_args_info_detailed_help
diff --git a/recv.c b/recv.c
index e46fa1a3f50008faffb5c1f66038e53d54b48c44..1fb5e25e700ea6bb6b2975fef7d6a34523b8cd9f 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -109,7 +109,7 @@ int main(int argc, char *argv[])
        register_task(&s, &sot.task);
 
        rn.task.pre_select = r->pre_select;
-       rn.task.new_post_select = r->new_post_select;
+       rn.task.post_select = r->post_select;
        sprintf(rn.task.status, "%s", r->name);
        register_task(&s, &rn.task);
 
diff --git a/recv.h b/recv.h
index 6222b93c28bd166110c4d709e81597e84013f4ec..cc44a602a9f3ca2f63c68c8c984fb83c87f82703 100644 (file)
--- a/recv.h
+++ b/recv.h
@@ -115,7 +115,7 @@ struct receiver {
         *
         * \sa select(2), struct receiver.
         */
-       int (*new_post_select)(struct sched *s, struct task *t);
+       int (*post_select)(struct sched *s, struct task *t);
 
        /** The two help texts of this receiver. */
        struct ggo_help help;
index 2055f69c9c85cef70636a5afaab2c63c9b3d9d44..bd8ece91ef13f27b389fa5385ac922784bb7124c 100644 (file)
@@ -306,7 +306,7 @@ void resample_filter_init(struct filter *f)
        f->close = resample_close;
        f->open = resample_open;
        f->pre_select = resample_pre_select;
-       f->new_post_select = resample_post_select;
+       f->post_select = resample_post_select;
        f->parse_config = resample_parse_config;
        f->free_config = resample_free_config;
        f->execute = resample_execute;
diff --git a/sched.c b/sched.c
index 50e87b54e46d71162103776a7e499dd9435cfb1d..d42e149801e4a7ecabd4f96cc1f79802eb7a4ff1 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -36,7 +36,7 @@ static void unregister_task(struct task *t)
                para_strerror(-t->error));
        if (t->pre_select)
                list_del(&t->pre_select_node);
-       if (t->new_post_select)
+       if (t->post_select)
                list_del(&t->post_select_node);
 }
 
@@ -62,13 +62,13 @@ static void sched_preselect(struct sched *s)
 static inline void call_post_select(struct sched *s, struct task *t)
 {
 #ifndef SCHED_DEBUG
-       t->error = t->new_post_select(s, t);
+       t->error = t->post_select(s, t);
 #else
        struct timeval t1, t2, diff;
        unsigned long pst;
 
        clock_get_realtime(&t1);
-       t->error = t->new_post_select(s, t);
+       t->error = t->post_select(s, t);
        clock_get_realtime(&t2);
        tv_diff(&t1, &t2, &diff);
        pst = tv2ms(&diff);
@@ -165,8 +165,8 @@ void register_task(struct sched *s, struct task *t)
                PARA_DEBUG_LOG("pre_select: %p\n", &t->pre_select);
                list_add_tail(&t->pre_select_node, &s->pre_select_list);
        }
-       if (t->new_post_select) {
-               PARA_DEBUG_LOG("post_select: %p\n", &t->new_post_select);
+       if (t->post_select) {
+               PARA_DEBUG_LOG("post_select: %p\n", &t->post_select);
                list_add_tail(&t->post_select_node, &s->post_select_list);
        }
 }
diff --git a/sched.h b/sched.h
index da20e3039c3572144486d8c2aefd54815ae314e2..9c5c098e0fbe38dbe7d5f2b77e33994ffa4ed1bc 100644 (file)
--- a/sched.h
+++ b/sched.h
@@ -55,12 +55,13 @@ struct task {
         */
        void (*pre_select)(struct sched *s, struct task *t);
        /**
-        * The newer variant of the post select hook of \a t.
+        * The post select hook of \a t.
         *
-        * This hook must return the error code rather than store it in
-        * t->error.
+        * Its purpose is to evaluate and act upon the results of the previous
+        * select call. If this function returns a negative value, the
+        * scheduler unregisters the task.
         */
-       int (*new_post_select)(struct sched *s, struct task *t);
+       int (*post_select)(struct sched *s, struct task *t);
        /** Whether this task is in error state. */
        int error;
        /** Position of the task in the pre_select list of the scheduler. */
index e963da7760465af02bcceec58730be2be4be84fd..f3d5237f19cfbc69e01ca17851f698fda1b41779 100644 (file)
--- a/server.c
+++ b/server.c
@@ -338,7 +338,7 @@ static void init_signal_task(void)
                *st = &signal_task_struct;
 
        st->task.pre_select = signal_pre_select;
-       st->task.new_post_select = signal_post_select;
+       st->task.post_select = signal_post_select;
        sprintf(st->task.status, "signal task");
 
        PARA_NOTICE_LOG("setting up signal handling\n");
@@ -422,7 +422,7 @@ static void init_server_command_task(int argc, char **argv)
 
        PARA_NOTICE_LOG("initializing tcp command socket\n");
        sct->task.pre_select = command_pre_select;
-       sct->task.new_post_select = command_post_select;
+       sct->task.post_select = command_post_select;
        sct->argc = argc;
        sct->argv = argv;
        ret = para_listen_simple(IPPROTO_TCP, conf.port_arg);
index e9c6df112aa3359c573ce9156e07f1bdad7b1039..9bba042c040c0687eb33f0fc156dbf62f06392c9 100644 (file)
@@ -304,6 +304,6 @@ void spxdec_filter_init(struct filter *f)
        f->open = spxdec_open;
        f->close = speexdec_close;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = speexdec_post_select;
+       f->post_select = speexdec_post_select;
        f->execute = speexdec_execute;
 }
diff --git a/stdin.c b/stdin.c
index ccd4487ae206ef11b2e0e96e424370c9129770b2..b25a0ba013fb03b19cb757d07ff483c9389a0d70 100644 (file)
--- a/stdin.c
+++ b/stdin.c
@@ -100,7 +100,7 @@ void stdin_set_defaults(struct stdin_task *sit)
        int ret;
 
        sit->task.pre_select = stdin_pre_select;
-       sit->task.new_post_select = stdin_post_select;
+       sit->task.post_select = stdin_post_select;
        sit->btrp = btr_pool_new("stdin", 128 * 1024);
        sprintf(sit->task.status, "stdin reader");
        ret = mark_fd_nonblocking(STDIN_FILENO);
index a0bbeb3e23a5307ffac58ea17ba8f77a395b171e..abf3d06f17a64249671ffbfb0470aa995a599578 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -89,7 +89,7 @@ void stdout_set_defaults(struct stdout_task *sot)
        int ret;
 
        sot->task.pre_select = stdout_pre_select;
-       sot->task.new_post_select = stdout_post_select;
+       sot->task.post_select = stdout_post_select;
        sprintf(sot->task.status, "stdout");
        ret = mark_fd_nonblocking(STDOUT_FILENO);
        if (ret >= 0)
index 27a392d5fc4c836c60c52e30601fbb0dea5187e9..f9c70ec83d9a32427574bd32984da14ee5269b7c 100644 (file)
@@ -223,7 +223,7 @@ void udp_recv_init(struct receiver *r)
        r->open = udp_recv_open;
        r->close = udp_recv_close;
        r->pre_select = udp_recv_pre_select;
-       r->new_post_select = udp_recv_post_select;
+       r->post_select = udp_recv_post_select;
        r->parse_config = udp_recv_parse_config;
        r->free_config = udp_recv_free_config;
        r->help = (struct ggo_help) {
diff --git a/vss.c b/vss.c
index e643805c340288b45366154fe655d819d80d95a4..aec357ab7e5bdd936e438412a3c94216c72bbff2 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -1174,7 +1174,7 @@ void init_vss_task(int afs_socket, struct sched *s)
        vsst->header_interval.tv_sec = 5; /* should this be configurable? */
        vsst->afs_socket = afs_socket;
        vsst->task.pre_select = vss_pre_select;
-       vsst->task.new_post_select = vss_post_select;
+       vsst->task.post_select = vss_post_select;
        ms2tv(announce_time, &vsst->announce_tv);
        PARA_INFO_LOG("announce timeval: %lums\n", tv2ms(&vsst->announce_tv));
        INIT_LIST_HEAD(&fec_client_list);
index c2a9329f15e931af76fa10cdcab9913e627b0a24..83b81fb2d5b4b9303feb1600cb808fe52accfa51 100644 (file)
@@ -131,5 +131,5 @@ void wav_filter_init(struct filter *f)
        f->close = wav_close;
        f->open = wav_open;
        f->pre_select = wav_pre_select;
-       f->new_post_select = wav_post_select;
+       f->post_select = wav_post_select;
 }
index e4592dda4cc708eff7572050186b28e254a09af4..8b751f04592eff0f7d6b3e5fe73ade1938c17382 100644 (file)
@@ -1285,5 +1285,5 @@ void wmadec_filter_init(struct filter *f)
        f->close = wmadec_close;
        f->execute = wmadec_execute;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = wmadec_post_select;
+       f->post_select = wmadec_post_select;
 }
diff --git a/write.c b/write.c
index b401b078f2a09f819b26981bd1111faa5e6bbdaa..866ea43327b3d1389993e18b7277e29201a223da 100644 (file)
--- a/write.c
+++ b/write.c
@@ -102,7 +102,7 @@ static int setup_and_schedule(void)
        struct write_task wt = {
                .task = {
                        .pre_select = write_pre_select,
-                       .new_post_select = write_post_select,
+                       .post_select = write_post_select,
                        .status = "write task",
                },
        };
diff --git a/write.h b/write.h
index 896f974c7c1aa2dcc871acd13c89b098274793a9..829216088c3c2ae16f1be035bd75a490e1989076 100644 (file)
--- a/write.h
+++ b/write.h
@@ -65,7 +65,7 @@ struct writer {
         *
         * Called from the post_select function of the writer node's task.
         */
-       int (*new_post_select)(struct sched *s, struct task *t);
+       int (*post_select)(struct sched *s, struct task *t);
        /**
         * Close one instance of the writer.
         *
index db4374fa955bcb1c4a3e4aa0289d70212a1ebf17..44ccf88a16aed816cb6054e09419b232d5690895 100644 (file)
@@ -114,7 +114,7 @@ void register_writer_node(struct writer_node *wn, struct btr_node *parent,
        strcpy(wn->task.status, name);
        free(name);
        wn->task.pre_select = w->pre_select;
-       wn->task.new_post_select = w->new_post_select;
+       wn->task.post_select = w->post_select;
        register_task(s, &wn->task);
 }