blob: 371d388b552fb01824b4ec208abe7fdf11d95eec [file] [log] [blame]
Stefan Beller14ba97f2018-05-15 14:48:42 -07001#ifndef ALLOC_H
2#define ALLOC_H
3
Elijah Newrenef3ca952018-08-15 10:54:05 -07004struct alloc_state;
Stefan Beller14ba97f2018-05-15 14:48:42 -07005struct tree;
6struct commit;
7struct tag;
Elijah Newrenef3ca952018-08-15 10:54:05 -07008struct repository;
Stefan Beller14ba97f2018-05-15 14:48:42 -07009
10void *alloc_blob_node(struct repository *r);
11void *alloc_tree_node(struct repository *r);
Abhishek Kumar6da43d92020-06-17 14:44:08 +053012void init_commit_node(struct commit *c);
Stefan Beller14ba97f2018-05-15 14:48:42 -070013void *alloc_commit_node(struct repository *r);
14void *alloc_tag_node(struct repository *r);
15void *alloc_object_node(struct repository *r);
16void alloc_report(struct repository *r);
Stefan Beller14ba97f2018-05-15 14:48:42 -070017
Elijah Newren17313102018-08-15 10:54:06 -070018struct alloc_state *allocate_alloc_state(void);
Stefan Beller14ba97f2018-05-15 14:48:42 -070019void clear_alloc_state(struct alloc_state *s);
20
21#endif