decorate.h 400 Bytes
Newer Older
1 2 3 4
#ifndef DECORATE_H
#define DECORATE_H

struct object_decoration {
5
	const struct object *base;
6 7 8 9 10 11 12 13 14
	void *decoration;
};

struct decoration {
	const char *name;
	unsigned int size, nr;
	struct object_decoration *hash;
};

15 16
extern void *add_decoration(struct decoration *n, const struct object *obj, void *decoration);
extern void *lookup_decoration(struct decoration *n, const struct object *obj);
17 18

#endif