mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
module: begin_expose() and content() take a non-const module pointer
This commit is contained in:
parent
b579f97db7
commit
7f0f096ba4
9 changed files with 15 additions and 15 deletions
6
module.h
6
module.h
|
@ -29,8 +29,8 @@ struct module {
|
|||
int (*run)(struct module_run_context *ctx);
|
||||
void (*destroy)(struct module *module);
|
||||
|
||||
struct exposable *(*content)(const struct module *mod);
|
||||
struct module_expose_context (*begin_expose)(const struct module *mod, cairo_t *cr);
|
||||
struct exposable *(*content)(struct module *mod);
|
||||
struct module_expose_context (*begin_expose)(struct module *mod, cairo_t *cr);
|
||||
void (*expose)(const struct module *mod,
|
||||
const struct module_expose_context *ctx,
|
||||
cairo_t *cr, int x, int y, int height);
|
||||
|
@ -42,7 +42,7 @@ struct module *module_common_new(void);
|
|||
void module_default_destroy(struct module *mod);
|
||||
|
||||
struct module_expose_context module_default_begin_expose(
|
||||
const struct module *mod, cairo_t *cr);
|
||||
struct module *mod, cairo_t *cr);
|
||||
|
||||
void module_default_expose(
|
||||
const struct module *mod,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue