diff options
Diffstat (limited to 'resource.h')
-rw-r--r-- | resource.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resource.h b/resource.h new file mode 100644 index 0000000..44d0d74 --- /dev/null +++ b/resource.h @@ -0,0 +1,17 @@ +// Copyright (C) 2021 Russell King. +// Licensed under GPL version 2. See COPYING. +#ifndef RESOURCE_H +#define RESOURCE_h + +struct client; + +struct resource { + int (*get)(struct client *c, struct resource *r); + int (*update)(struct client *c, struct resource *r, const char *m); + void (*close)(struct client *c, struct resource *r); + void *data; +}; + +void resource_init(GHashTable *hash); + +#endif |