bar: remove struct bar_run_context; store abort_fd in bar struct

This commit is contained in:
Daniel Eklöf 2019-01-16 16:38:04 +01:00
parent a4ce3372ce
commit b195c19599
3 changed files with 11 additions and 19 deletions

10
bar.h
View file

@ -3,15 +3,11 @@
#include "color.h"
#include "module.h"
struct bar;
struct bar_run_context {
struct bar *bar;
int abort_fd;
};
struct bar {
int abort_fd;
void *private;
int (*run)(struct bar_run_context *ctx);
int (*run)(struct bar *bar);
void (*destroy)(struct bar *bar);
void (*refresh)(const struct bar *bar);