decorate: allow const objects to be decorated
[git/git.git] / decorate.h
CommitLineData
a59b276e
LT
1#ifndef DECORATE_H
2#define DECORATE_H
3
4struct object_decoration {
54988bda 5 const struct object *base;
a59b276e
LT
6 void *decoration;
7};
8
9struct decoration {
10 const char *name;
11 unsigned int size, nr;
12 struct object_decoration *hash;
13};
14
54988bda
JK
15extern void *add_decoration(struct decoration *n, const struct object *obj, void *decoration);
16extern void *lookup_decoration(struct decoration *n, const struct object *obj);
a59b276e
LT
17
18#endif