repo_writer.h (953B)
1 #ifndef GITOUT_WRITER_GOPHER_REPO_WRITER_H_ 2 #define GITOUT_WRITER_GOPHER_REPO_WRITER_H_ 3 4 #include <stddef.h> 5 6 #include "git/commit.h" 7 #include "git/file.h" 8 #include "git/reference.h" 9 #include "git/repo.h" 10 11 typedef struct GopherRepoWriter GopherRepoWriter; 12 13 GopherRepoWriter* gopher_repowriter_create(const GitRepo* repo); 14 void gopher_repowriter_free(GopherRepoWriter* writer); 15 void gopher_repowriter_set_log_cachefile(void* writer, const char* cachefile); 16 void gopher_repowriter_set_log_commit_limit(void* writer, size_t count); 17 void gopher_repowriter_set_baseurl(void* writer, const char* baseurl); 18 void gopher_repowriter_begin(void* writer); 19 void gopher_repowriter_add_commit(void* writer, const GitCommit* commit); 20 void gopher_repowriter_add_reference(void* writer, const GitReference* ref); 21 void gopher_repowriter_add_file(void* writer, const GitFile* file); 22 void gopher_repowriter_end(void* writer); 23 24 #endif // GITOUT_WRITER_GOPHER_REPO_WRITER_H_