gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

log.h (654B)


      1 #ifndef GOUT_WRITER_HTML_LOG_H_
      2 #define GOUT_WRITER_HTML_LOG_H_
      3 
      4 #include <stdbool.h>
      5 #include <stdio.h>
      6 
      7 #include "git/commit.h"
      8 #include "git/repo.h"
      9 #include "utils.h"
     10 
     11 typedef struct HtmlLog HtmlLog;
     12 
     13 HtmlLog* html_log_create(const GitRepo* repo, const FileSystem* fs);
     14 void html_log_free(HtmlLog* log);
     15 void html_log_set_cachefile(HtmlLog* log, const char* cachefile);
     16 void html_log_set_commit_limit(HtmlLog* log, size_t count);
     17 bool html_log_can_add_commits(const HtmlLog* log);
     18 void html_log_begin(HtmlLog* log);
     19 void html_log_add_commit(HtmlLog* log, const GitCommit* commit);
     20 void html_log_end(HtmlLog* log);
     21 
     22 #endif  // GOUT_WRITER_HTML_LOG_H_