Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 19 lines (14 sloc) 0.4 kB
a59b276 @torvalds Add a generic "object decorator" interface, and make object refs use it
torvalds authored
1 #ifndef DECORATE_H
2 #define DECORATE_H
3
4 struct object_decoration {
54988bd @peff decorate: allow const objects to be decorated
peff authored
5 const struct object *base;
a59b276 @torvalds Add a generic "object decorator" interface, and make object refs use it
torvalds authored
6 void *decoration;
7 };
8
9 struct decoration {
10 const char *name;
11 unsigned int size, nr;
12 struct object_decoration *hash;
13 };
14
54988bd @peff decorate: allow const objects to be decorated
peff authored
15 extern void *add_decoration(struct decoration *n, const struct object *obj, void *decoration);
16 extern void *lookup_decoration(struct decoration *n, const struct object *obj);
a59b276 @torvalds Add a generic "object decorator" interface, and make object refs use it
torvalds authored
17
18 #endif
Something went wrong with that request. Please try again.