Unidiff1 files changed, 3 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index fc7c7d5..3359be9 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -50,64 +50,67 @@ typedef void (*filepair_fn)(struct diff_filepair *pair); |
50 | typedef void (*linediff_fn)(char *line, int len); |
50 | typedef void (*linediff_fn)(char *line, int len); |
51 | |
51 | |
52 | struct cgit_filter { |
52 | struct cgit_filter { |
53 | char *cmd; |
53 | char *cmd; |
54 | char **argv; |
54 | char **argv; |
55 | int old_stdout; |
55 | int old_stdout; |
56 | int pipe_fh[2]; |
56 | int pipe_fh[2]; |
57 | int pid; |
57 | int pid; |
58 | int exitstatus; |
58 | int exitstatus; |
59 | }; |
59 | }; |
60 | |
60 | |
61 | struct cgit_repo { |
61 | struct cgit_repo { |
62 | char *url; |
62 | char *url; |
63 | char *name; |
63 | char *name; |
64 | char *path; |
64 | char *path; |
65 | char *desc; |
65 | char *desc; |
66 | char *owner; |
66 | char *owner; |
67 | char *defbranch; |
67 | char *defbranch; |
68 | char *module_link; |
68 | char *module_link; |
69 | char *readme; |
69 | char *readme; |
70 | char *section; |
70 | char *section; |
71 | char *clone_url; |
71 | char *clone_url; |
72 | int snapshots; |
72 | int snapshots; |
73 | int enable_log_filecount; |
73 | int enable_log_filecount; |
74 | int enable_log_linecount; |
74 | int enable_log_linecount; |
75 | int max_stats; |
75 | int max_stats; |
76 | time_t mtime; |
76 | time_t mtime; |
77 | struct cgit_filter *about_filter; |
77 | struct cgit_filter *about_filter; |
78 | struct cgit_filter *commit_filter; |
78 | struct cgit_filter *commit_filter; |
79 | struct cgit_filter *source_filter; |
79 | struct cgit_filter *source_filter; |
80 | }; |
80 | }; |
81 | |
81 | |
| |
82 | typedef void (*repo_config_fn)(struct cgit_repo *repo, const char *name, |
| |
83 | const char *value); |
| |
84 | |
82 | struct cgit_repolist { |
85 | struct cgit_repolist { |
83 | int length; |
86 | int length; |
84 | int count; |
87 | int count; |
85 | struct cgit_repo *repos; |
88 | struct cgit_repo *repos; |
86 | }; |
89 | }; |
87 | |
90 | |
88 | struct commitinfo { |
91 | struct commitinfo { |
89 | struct commit *commit; |
92 | struct commit *commit; |
90 | char *author; |
93 | char *author; |
91 | char *author_email; |
94 | char *author_email; |
92 | unsigned long author_date; |
95 | unsigned long author_date; |
93 | char *committer; |
96 | char *committer; |
94 | char *committer_email; |
97 | char *committer_email; |
95 | unsigned long committer_date; |
98 | unsigned long committer_date; |
96 | char *subject; |
99 | char *subject; |
97 | char *msg; |
100 | char *msg; |
98 | char *msg_encoding; |
101 | char *msg_encoding; |
99 | }; |
102 | }; |
100 | |
103 | |
101 | struct taginfo { |
104 | struct taginfo { |
102 | char *tagger; |
105 | char *tagger; |
103 | char *tagger_email; |
106 | char *tagger_email; |
104 | unsigned long tagger_date; |
107 | unsigned long tagger_date; |
105 | char *msg; |
108 | char *msg; |
106 | }; |
109 | }; |
107 | |
110 | |
108 | struct refinfo { |
111 | struct refinfo { |
109 | const char *refname; |
112 | const char *refname; |
110 | struct object *object; |
113 | struct object *object; |
111 | union { |
114 | union { |
112 | struct taginfo *tag; |
115 | struct taginfo *tag; |
113 | struct commitinfo *commit; |
116 | struct commitinfo *commit; |
|