mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-21 18:05:38 +02:00
bar: remove struct bar_run_context; store abort_fd in bar struct
This commit is contained in:
parent
a4ce3372ce
commit
b195c19599
3 changed files with 11 additions and 19 deletions
10
bar.h
10
bar.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue