aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index e96311f..75e919b 100644
--- a/cgit.h
+++ b/cgit.h
@@ -98,6 +98,21 @@ struct taginfo {
98 char *msg; 98 char *msg;
99}; 99};
100 100
101struct refinfo {
102 const char *refname;
103 struct object *object;
104 union {
105 struct taginfo *tag;
106 struct commitinfo *commit;
107 };
108};
109
110struct reflist {
111 struct refinfo **refs;
112 int alloc;
113 int count;
114};
115
101extern const char *cgit_version; 116extern const char *cgit_version;
102 117
103extern struct repolist cgit_repolist; 118extern struct repolist cgit_repolist;
@@ -162,6 +177,10 @@ extern int chk_non_negative(int result, char *msg);
162extern int hextoint(char c); 177extern int hextoint(char c);
163extern char *trim_end(const char *str, char c); 178extern char *trim_end(const char *str, char c);
164 179
180extern void cgit_add_ref(struct reflist *list, struct refinfo *ref);
181extern int cgit_refs_cb(const char *refname, const unsigned char *sha1,
182 int flags, void *cb_data);
183
165extern void *cgit_free_commitinfo(struct commitinfo *info); 184extern void *cgit_free_commitinfo(struct commitinfo *info);
166 185
167extern int cgit_diff_files(const unsigned char *old_sha1, 186extern int cgit_diff_files(const unsigned char *old_sha1,