blob: 3f4a0ad310a94bd026f48f48491985e3e2053ee2 [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);
Stefan Beller14ba97f2018-05-15 14:48:42 -070016
Elijah Newren17313102018-08-15 10:54:06 -070017struct alloc_state *allocate_alloc_state(void);
Stefan Beller14ba97f2018-05-15 14:48:42 -070018void clear_alloc_state(struct alloc_state *s);
19
Stefan Beller14ba97f2018-05-15 14:48:42 -070020#endif