apply: avoid out-of-bounds access in fuzzy_matchlines()
[git/raj.git] / vcs-svn / fast_export.h
blobc8b5adb811c7ba5652b94a6cf6f9ea54d6d9335f
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);
10 void fast_export_delete(const char *path);
11 void fast_export_modify(const char *path, uint32_t mode, const char *dataref);
12 void fast_export_note(const char *committish, const char *dataref);
13 void fast_export_begin_note(uint32_t revision, const char *author,
14 const char *log, unsigned long timestamp, const char *note_ref);
15 void fast_export_begin_commit(uint32_t revision, const char *author,
16 const struct strbuf *log, const char *uuid,const char *url,
17 unsigned long timestamp, const char *local_ref);
18 void fast_export_end_commit(uint32_t revision);
19 void fast_export_data(uint32_t mode, off_t len, struct line_buffer *input);
20 void fast_export_buf_to_data(const struct strbuf *data);
21 void fast_export_blob_delta(uint32_t mode,
22 uint32_t old_mode, const char *old_data,
23 off_t len, struct line_buffer *input);
25 /* If there is no such file at that rev, returns -1, errno == ENOENT. */
26 int fast_export_ls_rev(uint32_t rev, const char *path,
27 uint32_t *mode_out, struct strbuf *dataref_out);
28 int fast_export_ls(const char *path,
29 uint32_t *mode_out, struct strbuf *dataref_out);
31 #endif