gitout

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

index_writer.h (585B)


      1 #ifndef GITOUT_WRITER_INDEX_WRITER_H_
      2 #define GITOUT_WRITER_INDEX_WRITER_H_
      3 
      4 #include "git/repo.h"
      5 
      6 typedef enum {
      7   kIndexWriterTypeHtml,
      8   kIndexWriterTypeGopher,
      9 } IndexWriterType;
     10 
     11 typedef struct IndexWriter IndexWriter;
     12 
     13 IndexWriter* indexwriter_create(IndexWriterType type);
     14 void indexwriter_free(IndexWriter* writer);
     15 void indexwriter_set_me_url(IndexWriter* writer, const char* url);
     16 void indexwriter_begin(IndexWriter* writer);
     17 void indexwriter_add_repo(IndexWriter* writer, GitRepo* repo);
     18 void indexwriter_end(IndexWriter* writer);
     19 
     20 #endif  // GITOUT_WRITER_INDEX_WRITER_H_