gout

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

gout_index.h (640B)


      1 #ifndef GOUT_GOUT_INDEX_H_
      2 #define GOUT_GOUT_INDEX_H_
      3 
      4 #include "git/git.h"
      5 
      6 typedef enum {
      7   kIndexWriterTypeHtml,
      8   kIndexWriterTypeGopher,
      9   kIndexWriterTypeGemini,
     10 } IndexWriterType;
     11 
     12 typedef struct GoutIndexOptions {
     13   const char** repo_dirs;
     14   size_t repo_dir_count;
     15   const char* me_url;
     16   IndexWriterType writer_type;
     17 } GoutIndexOptions;
     18 
     19 GoutIndexOptions* gout_index_options_create(int argc, const char* argv[]);
     20 void gout_index_options_free(GoutIndexOptions* options);
     21 
     22 void gout_index_init(const GoutIndexOptions* options, Git* git);
     23 void gout_index_run(const GoutIndexOptions* options, Git* git);
     24 
     25 #endif  // GOUT_GOUT_INDEX_H_