Linus Torvalds | a59b276 | 2007-04-16 16:03:15 -0700 | [diff] [blame] | 1 | #ifndef DECORATE_H |
| 2 | #define DECORATE_H |
| 3 | |
| 4 | struct object_decoration { |
Jeff King | 54988bd | 2008-08-20 13:55:33 -0400 | [diff] [blame] | 5 | const struct object *base; |
Linus Torvalds | a59b276 | 2007-04-16 16:03:15 -0700 | [diff] [blame] | 6 | void *decoration; |
| 7 | }; |
| 8 | |
| 9 | struct decoration { |
| 10 | const char *name; |
| 11 | unsigned int size, nr; |
| 12 | struct object_decoration *hash; |
| 13 | }; |
| 14 | |
Jeff King | 54988bd | 2008-08-20 13:55:33 -0400 | [diff] [blame] | 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); |
Linus Torvalds | a59b276 | 2007-04-16 16:03:15 -0700 | [diff] [blame] | 17 | |
| 18 | #endif |