X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=decorate.h;h=e7328044ff84a4acaaa7f5f4bc5f85375dc7a07a;hb=6e2a09d24b2634cdfec3395122cd4a07eb517b0d;hp=1fa4ad9beb08f23888814b99183487ab85378bfd;hpb=fae09a8084c9b51632726523b477a78dd28d7d7e;p=git.git diff --git a/decorate.h b/decorate.h index 1fa4ad9be..e7328044f 100644 --- a/decorate.h +++ b/decorate.h @@ -2,7 +2,7 @@ #define DECORATE_H struct object_decoration { - struct object *base; + const struct object *base; void *decoration; }; @@ -12,7 +12,7 @@ struct decoration { struct object_decoration *hash; }; -extern void *add_decoration(struct decoration *n, struct object *obj, void *decoration); -extern void *lookup_decoration(struct decoration *n, struct object *obj); +extern void *add_decoration(struct decoration *n, const struct object *obj, void *decoration); +extern void *lookup_decoration(struct decoration *n, const struct object *obj); #endif