gout.h (669B)
1 #ifndef GOUT_GOUT_H_ 2 #define GOUT_GOUT_H_ 3 4 #include "git/git.h" 5 6 typedef enum { 7 kRepoWriterTypeHtml, 8 kRepoWriterTypeGopher, 9 kRepoWriterTypeGemini, 10 } RepoWriterType; 11 12 typedef struct GoutOptions { 13 const char* repodir; 14 long long log_commit_limit; /* -1 indicates not used */ 15 const char* cachefile_path; 16 const char* baseurl; /* base URL to make absolute RSS/Atom URI */ 17 RepoWriterType writer_type; 18 } GoutOptions; 19 20 GoutOptions* gout_options_create(int argc, const char* argv[]); 21 void gout_options_free(GoutOptions* options); 22 23 void gout_init(const GoutOptions* options, Git* git); 24 void gout_run(const GoutOptions* options, Git* git); 25 26 #endif // GOUT_GOUT_H_