summaryrefslogtreecommitdiff
path: root/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'resource.h')
-rw-r--r--resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/resource.h b/resource.h
index c3a1907..657397b 100644
--- a/resource.h
+++ b/resource.h
@@ -9,11 +9,14 @@ struct resource;
struct resource_ops {
int (*get)(struct client *c, struct resource *r);
void (*close)(struct client *c, struct resource *r);
+ void (*update_open)(struct client *c, struct resource *r);
int (*update)(struct client *c, struct resource *r, const char *m);
+ void (*update_close)(struct client *c, struct resource *r);
};
struct resource {
const struct resource_ops *ops;
+ struct client *updater;
void *data;
};