summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-05-30 15:23:25 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-05-30 15:23:25 -0700
commit58c2cb3cf89a9eb1fa572051881256594a36eaac (patch)
tree045fb9e25df1945e4310821ffcdfce70b83fba33 /src/modules
parent249112803107d6341b5eb67caf5b730d3cc14d4f (diff)
til: s/til_module_randomize_setup/til_module_setup_randomize/
Mechanical rename just to make this consistent with til_module_setup()/til_module_setup_finalize() I should probably do a cleanup pass throughout the til APIs to standardize on a subject-verb-object or subject-object-verb order... Things have become a little inconsistent organically over time
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/montage/montage.c2
-rw-r--r--src/modules/rkt/rkt.c2
-rw-r--r--src/modules/rtv/rtv.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/montage/montage.c b/src/modules/montage/montage.c
index 301f323..08fd1b3 100644
--- a/src/modules/montage/montage.c
+++ b/src/modules/montage/montage.c
@@ -90,7 +90,7 @@ static til_module_context_t * montage_create_context(const til_module_t *module,
const til_module_t *module = ctxt->modules[i];
til_setup_t *setup = NULL;
- (void) til_module_randomize_setup(module, rand_r(&seed), &setup, NULL);
+ (void) til_module_setup_randomize(module, rand_r(&seed), &setup, NULL);
/* FIXME errors */
(void) til_module_create_context(module, stream, rand_r(&seed), ticks, 1, setup, &ctxt->contexts[i]);
diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c
index e76070a..77b3b49 100644
--- a/src/modules/rkt/rkt.c
+++ b/src/modules/rkt/rkt.c
@@ -75,7 +75,7 @@ static til_module_context_t * rkt_create_context(const til_module_t *module, til
{
til_setup_t *module_setup = NULL;
- (void) til_module_randomize_setup(ctxt->seq_module, rand_r(&seed), &module_setup, NULL);
+ (void) til_module_setup_randomize(ctxt->seq_module, rand_r(&seed), &module_setup, NULL);
(void) til_module_create_context(ctxt->seq_module, stream, rand_r(&seed), ticks, 0, module_setup, &ctxt->seq_module_ctxt);
til_setup_free(module_setup);
diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c
index c3555c5..9d006bc 100644
--- a/src/modules/rtv/rtv.c
+++ b/src/modules/rtv/rtv.c
@@ -174,7 +174,7 @@ static void setup_next_channel(rtv_context_t *ctxt, unsigned ticks)
char *settings_as_arg = NULL;
txt_t *caption;
- (void) til_module_randomize_setup(ctxt->channel->module, rand_r(&ctxt->til_module_context.seed), &ctxt->channel->module_setup, &settings_as_arg);
+ (void) til_module_setup_randomize(ctxt->channel->module, rand_r(&ctxt->til_module_context.seed), &ctxt->channel->module_setup, &settings_as_arg);
caption = txt_newf("Title: %s%s%s\nDescription: %s%s%s",
ctxt->channel->module->name,
ctxt->channel->module->author ? "\nAuthor: " : "",
© All Rights Reserved