module: remove module_run_context

Store abort_fd directly in the module struct instead. This then allows
us to pass the module pointer as-is to the modules' run functions.
This commit is contained in:
Daniel Eklöf 2019-01-13 15:34:59 +01:00
parent acdeff3b6e
commit 76d135e257
13 changed files with 57 additions and 77 deletions

View file

@ -22,18 +22,15 @@ struct module_info {
{NULL, false, NULL}
};
struct module_run_context {
struct module *module;
int abort_fd;
};
struct module {
const struct bar *bar;
int abort_fd;
mtx_t lock;
void *private;
int (*run)(struct module_run_context *ctx);
int (*run)(struct module *mod);
void (*destroy)(struct module *module);
/*