Merge branch 'db/vcs-svn-incremental' into svn-fe
[git/gitweb.git] / vcs-svn / fast_export.h
blob9c522d177d4959266ae6756546a0b30789dbc681
1 #ifndef FAST_EXPORT_H_
2 #define FAST_EXPORT_H_
4 struct strbuf;
5 struct line_buffer;
7 void fast_export_init(int fd);
8 void fast_export_deinit(void);
9 void fast_export_reset(void);
11 void fast_export_delete(uint32_t depth, const uint32_t *path);
12 void fast_export_modify(uint32_t depth, const uint32_t *path,
13 uint32_t mode, const char *dataref);
14 void fast_export_begin_commit(uint32_t revision, const char *author,
15 const struct strbuf *log, const char *uuid,
16 const char *url, unsigned long timestamp);
17 void fast_export_end_commit(uint32_t revision);
18 void fast_export_data(uint32_t mode, uint32_t len, struct line_buffer *input);
20 /* If there is no such file at that rev, returns -1, errno == ENOENT. */
21 int fast_export_ls_rev(uint32_t rev, uint32_t depth, const uint32_t *path,
22 uint32_t *mode_out, struct strbuf *dataref_out);
23 int fast_export_ls(uint32_t depth, const uint32_t *path,
24 uint32_t *mode_out, struct strbuf *dataref_out);
26 #endif