diff options
Diffstat (limited to 'src/modules/compose')
-rw-r--r-- | src/modules/compose/compose.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index b3e2dbc..adf638c 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -36,10 +36,10 @@ typedef struct compose_context_t { compose_layer_t layers[]; } compose_context_t; -static void * compose_create_context(unsigned ticks, unsigned num_cpus); +static void * compose_create_context(unsigned ticks, unsigned num_cpus, void *setup); static void compose_destroy_context(void *context); static void compose_prepare_frame(void *context, unsigned ticks, unsigned n_cpus, til_fb_fragment_t *fragment, til_fragmenter_t *res_fragmenter); -static int compose_setup(const til_settings_t *settings, til_setting_t **res_setting, const til_setting_desc_t **res_desc); +static int compose_setup(const til_settings_t *settings, til_setting_t **res_setting, const til_setting_desc_t **res_desc, void **res_setup); static char *compose_default_layers[] = { "drizzle", "stars", "spiro", "plato", NULL }; static char **compose_layers; @@ -55,7 +55,7 @@ til_module_t compose_module = { }; -static void * compose_create_context(unsigned ticks, unsigned num_cpus) +static void * compose_create_context(unsigned ticks, unsigned num_cpus, void *setup) { char **layers = compose_default_layers; compose_context_t *ctxt; @@ -78,7 +78,7 @@ static void * compose_create_context(unsigned ticks, unsigned num_cpus) module = til_lookup_module(layers[i]); ctxt->layers[i].module = module; - (void) til_module_create_context(module, ticks, &ctxt->layers[i].module_ctxt); + (void) til_module_create_context(module, ticks, NULL, &ctxt->layers[i].module_ctxt); ctxt->n_layers++; } @@ -108,7 +108,7 @@ static void compose_prepare_frame(void *context, unsigned ticks, unsigned n_cpus } -static int compose_setup(const til_settings_t *settings, til_setting_t **res_setting, const til_setting_desc_t **res_desc) +static int compose_setup(const til_settings_t *settings, til_setting_t **res_setting, const til_setting_desc_t **res_desc, void **res_setup) { const char *layers; int r; |