summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/cgit.h b/cgit.h
index 6e95673..222c9c2 100644
--- a/cgit.h
+++ b/cgit.h
@@ -1,55 +1,67 @@
1#ifndef CGIT_H 1#ifndef CGIT_H
2#define CGIT_H 2#define CGIT_H
3 3
4#include "git.h" 4
5#include <openssl/sha.h> 5#include <git-compat-util.h>
6#include <ctype.h> 6#include <cache.h>
7#include <sched.h> 7#include <grep.h>
8#include <object.h>
9#include <tree.h>
10#include <commit.h>
11#include <tag.h>
12#include <diff.h>
13#include <diffcore.h>
14#include <refs.h>
15#include <revision.h>
16#include <log-tree.h>
17#include <archive.h>
18#include <xdiff/xdiff.h>
19
8 20
9typedef void (*configfn)(const char *name, const char *value); 21typedef void (*configfn)(const char *name, const char *value);
10 22
11struct cacheitem { 23struct cacheitem {
12 char *name; 24 char *name;
13 struct stat st; 25 struct stat st;
14 int ttl; 26 int ttl;
15 int fd; 27 int fd;
16}; 28};
17 29
18struct repoinfo { 30struct repoinfo {
19 char *url; 31 char *url;
20 char *name; 32 char *name;
21 char *path; 33 char *path;
22 char *desc; 34 char *desc;
23 char *owner; 35 char *owner;
24 int snapshots; 36 int snapshots;
25}; 37};
26 38
27struct repolist { 39struct repolist {
28 int length; 40 int length;
29 int count; 41 int count;
30 struct repoinfo *repos; 42 struct repoinfo *repos;
31}; 43};
32 44
33struct commitinfo { 45struct commitinfo {
34 struct commit *commit; 46 struct commit *commit;
35 char *author; 47 char *author;
36 char *author_email; 48 char *author_email;
37 unsigned long author_date; 49 unsigned long author_date;
38 char *committer; 50 char *committer;
39 char *committer_email; 51 char *committer_email;
40 unsigned long committer_date; 52 unsigned long committer_date;
41 char *subject; 53 char *subject;
42 char *msg; 54 char *msg;
43}; 55};
44 56
45struct taginfo { 57struct taginfo {
46 char *tagger; 58 char *tagger;
47 char *tagger_email; 59 char *tagger_email;
48 int tagger_date; 60 int tagger_date;
49 char *msg; 61 char *msg;
50}; 62};
51 63
52extern const char cgit_version[]; 64extern const char cgit_version[];
53 65
54extern struct repolist cgit_repolist; 66extern struct repolist cgit_repolist;
55extern struct repoinfo *cgit_repo; 67extern struct repoinfo *cgit_repo;