summaryrefslogtreecommitdiff
path: root/resource.h
blob: 44d0d743f175edb7754143020cf8173f73a767c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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