author | Michael Krelin <hacker@klever.net> | 2008-06-24 21:42:32 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-06-24 21:42:32 (UTC) |
commit | 42effc939090b2fbf1b2b76cd1d9c30fabcd230e (patch) (unidiff) | |
tree | ba75a2bc400a2a1dab6417b33b97a0d020fabf0f /cgit.h | |
parent | 01d2dce7e73e3f022d186de27dd5d15574144ca8 (diff) | |
download | cgit-42effc939090b2fbf1b2b76cd1d9c30fabcd230e.zip cgit-42effc939090b2fbf1b2b76cd1d9c30fabcd230e.tar.gz cgit-42effc939090b2fbf1b2b76cd1d9c30fabcd230e.tar.bz2 |
allow specification of directly linked blobs mimetypes
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -87,64 +87,65 @@ struct taginfo { | |||
87 | int tagger_date; | 87 | int tagger_date; |
88 | char *msg; | 88 | char *msg; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | struct refinfo { | 91 | struct refinfo { |
92 | const char *refname; | 92 | const char *refname; |
93 | struct object *object; | 93 | struct object *object; |
94 | union { | 94 | union { |
95 | struct taginfo *tag; | 95 | struct taginfo *tag; |
96 | struct commitinfo *commit; | 96 | struct commitinfo *commit; |
97 | }; | 97 | }; |
98 | }; | 98 | }; |
99 | 99 | ||
100 | struct reflist { | 100 | struct reflist { |
101 | struct refinfo **refs; | 101 | struct refinfo **refs; |
102 | int alloc; | 102 | int alloc; |
103 | int count; | 103 | int count; |
104 | }; | 104 | }; |
105 | 105 | ||
106 | struct cgit_query { | 106 | struct cgit_query { |
107 | int has_symref; | 107 | int has_symref; |
108 | int has_sha1; | 108 | int has_sha1; |
109 | char *raw; | 109 | char *raw; |
110 | char *repo; | 110 | char *repo; |
111 | char *page; | 111 | char *page; |
112 | char *search; | 112 | char *search; |
113 | char *grep; | 113 | char *grep; |
114 | char *head; | 114 | char *head; |
115 | char *sha1; | 115 | char *sha1; |
116 | char *sha2; | 116 | char *sha2; |
117 | char *path; | 117 | char *path; |
118 | char *name; | 118 | char *name; |
119 | char *mimetype; | ||
119 | int ofs; | 120 | int ofs; |
120 | }; | 121 | }; |
121 | 122 | ||
122 | struct cgit_config { | 123 | struct cgit_config { |
123 | char *agefile; | 124 | char *agefile; |
124 | char *cache_root; | 125 | char *cache_root; |
125 | char *clone_prefix; | 126 | char *clone_prefix; |
126 | char *css; | 127 | char *css; |
127 | char *index_header; | 128 | char *index_header; |
128 | char *index_info; | 129 | char *index_info; |
129 | char *logo; | 130 | char *logo; |
130 | char *logo_link; | 131 | char *logo_link; |
131 | char *module_link; | 132 | char *module_link; |
132 | char *repo_group; | 133 | char *repo_group; |
133 | char *robots; | 134 | char *robots; |
134 | char *root_title; | 135 | char *root_title; |
135 | char *root_desc; | 136 | char *root_desc; |
136 | char *root_readme; | 137 | char *root_readme; |
137 | char *script_name; | 138 | char *script_name; |
138 | char *virtual_root; | 139 | char *virtual_root; |
139 | int cache_size; | 140 | int cache_size; |
140 | int cache_dynamic_ttl; | 141 | int cache_dynamic_ttl; |
141 | int cache_max_create_time; | 142 | int cache_max_create_time; |
142 | int cache_repo_ttl; | 143 | int cache_repo_ttl; |
143 | int cache_root_ttl; | 144 | int cache_root_ttl; |
144 | int cache_static_ttl; | 145 | int cache_static_ttl; |
145 | int enable_index_links; | 146 | int enable_index_links; |
146 | int enable_log_filecount; | 147 | int enable_log_filecount; |
147 | int enable_log_linecount; | 148 | int enable_log_linecount; |
148 | int max_repo_count; | 149 | int max_repo_count; |
149 | int max_commit_count; | 150 | int max_commit_count; |
150 | int max_lock_attempts; | 151 | int max_lock_attempts; |