1#ifndef FAST_EXPORT_H_
2#define FAST_EXPORT_H_
3
4struct strbuf;
5struct line_buffer;
6
7void fast_export_init(int fd);
8void fast_export_deinit(void);
9void fast_export_reset(void);
10
11void fast_export_delete(uint32_t depth, const uint32_t *path);
12void fast_export_modify(uint32_t depth, const uint32_t *path,
13 uint32_t mode, const char *dataref);
14void fast_export_begin_commit(uint32_t revision, uint32_t author, char *log,
15 uint32_t uuid, uint32_t url, unsigned long timestamp);
16void fast_export_end_commit(uint32_t revision);
17void fast_export_data(uint32_t mode, uint32_t len, struct line_buffer *input);
18
19/* If there is no such file at that rev, returns -1, errno == ENOENT. */
20int fast_export_ls_rev(uint32_t rev, uint32_t depth, const uint32_t *path,
21 uint32_t *mode_out, struct strbuf *dataref_out);
22int fast_export_ls(uint32_t depth, const uint32_t *path,
23 uint32_t *mode_out, struct strbuf *dataref_out);
24
25#endif