repo_writer.h (919B)
1 #ifndef GITOUT_WRITER_HTML_REPO_WRITER_H_ 2 #define GITOUT_WRITER_HTML_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 HtmlRepoWriter HtmlRepoWriter; 12 13 HtmlRepoWriter* html_repowriter_create(const GitRepo* repo); 14 void html_repowriter_free(HtmlRepoWriter* writer); 15 void html_repowriter_set_log_cachefile(void* writer, const char* cachefile); 16 void html_repowriter_set_log_commit_limit(void* writer, size_t count); 17 void html_repowriter_set_baseurl(void* writer, const char* baseurl); 18 void html_repowriter_begin(void* writer); 19 void html_repowriter_add_commit(void* writer, const GitCommit* commit); 20 void html_repowriter_add_reference(void* writer, const GitReference* ref); 21 void html_repowriter_add_file(void* writer, const GitFile* file); 22 void html_repowriter_end(void* writer); 23 24 #endif // GITOUT_WRITER_HTML_REPO_WRITER_H_